Add local var methods to Binding #3372
Conversation
These are defined in MRI as of 2.1. I basically just copied these from the [RubyDocs](http://ruby-doc.org/core-2.1.0/Binding.html#method-i-local_variable_defined-3F). My implementation of Binding#local_variable_set assumes obj responds to #to_s, which may cause issues
No, we're not going to rely on rubinius/kernel/common/eval.rb Lines 109 to 112 in 7362475 Also, if we have any tagged specs for this they'll need to be untagged, otherwise new specs should be added. |
So my only question about using |
|
Are there specs for this? |
Don't think so, at least I can't find any in our repo. |
Fixed in 40f04c1, thanks for initially looking into this. |
These are defined in MRI as of 2.1.
I basically just copied these from the RubyDocs.
My implementation of
Binding#local_variable_set
assumes obj responds to #to_s, which may cause issues.