Skip to content

Commit 40888a9

Browse files
author
Yorick Peterse
committed
Revert "Implement Binding#local_variables and Binding#receiver"
This reverts commit 25a735a. See my notes at #3352.
1 parent 8cb3959 commit 40888a9

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

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
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
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)