Skip to content

Commit

Permalink
Revert "Implement Binding#local_variables and Binding#receiver"
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc committed Mar 10, 2015
1 parent 8cb3959 commit 3257023
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kernel/common/binding.rb
Expand Up @@ -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
@@ -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
@@ -0,0 +1 @@
fails:Binding#receiver returns the object to which binding is bound

0 comments on commit 3257023

Please sign in to comment.