Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3257023

Browse files
committedMar 10, 2015
Revert "Implement Binding#local_variables and Binding#receiver"
1 parent 8cb3959 commit 3257023

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed
 

Diff for: ‎kernel/common/binding.rb

-8
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,4 @@ def eval(expr, filename=nil, lineno=nil)
5454

5555
Kernel.eval(expr, self, filename, lineno)
5656
end
57-
58-
def local_variables
59-
eval('local_variables')
60-
end
61-
62-
def receiver
63-
@self
64-
end
6557
end

Diff for: ‎spec/tags/ruby/core/binding/local_variables_tags.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fails:Binding#local_variables returns an Array
2+
fails:Binding#local_variables includes local variables in the current scope
3+
fails:Binding#local_variables includes local variables defined after calling binding.local_variables
4+
fails:Binding#local_variables includes local variables of inherited scopes and eval'ed context
5+
fails:Binding#local_variables includes shadowed local variables only once

Diff for: ‎spec/tags/ruby/core/binding/receiver_tags.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fails:Binding#receiver returns the object to which binding is bound

0 commit comments

Comments
 (0)
Please sign in to comment.