Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Implement Binding#local_variables and Binding#receiver"
Browse files Browse the repository at this point in the history
This reverts commit 25a735a.

See my notes at #3352.
Yorick Peterse committed Mar 10, 2015
1 parent 8cb3959 commit 40888a9
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kernel/common/binding.rb
Original file line number Diff line number Diff line change
@@ -54,12 +54,4 @@ def eval(expr, filename=nil, lineno=nil)

Kernel.eval(expr, self, filename, lineno)
end

def local_variables
eval('local_variables')
end

def receiver
@self
end
end
5 changes: 5 additions & 0 deletions spec/tags/ruby/core/binding/local_variables_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fails:Binding#local_variables returns an Array
fails:Binding#local_variables includes local variables in the current scope
fails:Binding#local_variables includes local variables defined after calling binding.local_variables
fails:Binding#local_variables includes local variables of inherited scopes and eval'ed context
fails:Binding#local_variables includes shadowed local variables only once
1 change: 1 addition & 0 deletions spec/tags/ruby/core/binding/receiver_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Binding#receiver returns the object to which binding is bound

0 comments on commit 40888a9

Please sign in to comment.