local_variables() public

Returns the names of the current local variables.

fred = 1
for i in 1..10
   # ...
end
local_variables   #=> ["fred", "i"]
Show source
Register or log in to add new notes.