Listing Local Variables
In Ruby 2.2, the binding
object gives us access to a method #local_variables
which returns the symbol names of the binding's local variables. We can see this in action with
which results in
Last updated
In Ruby 2.2, the binding
object gives us access to a method #local_variables
which returns the symbol names of the binding's local variables. We can see this in action with
which results in
Last updated