Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a2db439c95ef
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8cb3959f232a
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Mar 10, 2015

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    25a735a View commit details
  2. Merge pull request #3352 from ruipserra/implement_new_binding_methods

    Implement Binding#local_variables and Binding#receiver
    jemc committed Mar 10, 2015
    Copy the full SHA
    8cb3959 View commit details
Showing with 8 additions and 6 deletions.
  1. +8 −0 kernel/common/binding.rb
  2. +0 −5 spec/tags/ruby/core/binding/local_variables_tags.txt
  3. +0 −1 spec/tags/ruby/core/binding/receiver_tags.txt
8 changes: 8 additions & 0 deletions kernel/common/binding.rb
Original file line number Diff line number Diff line change
@@ -54,4 +54,12 @@ 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: 0 additions & 5 deletions spec/tags/ruby/core/binding/local_variables_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/tags/ruby/core/binding/receiver_tags.txt

This file was deleted.