This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

local_variables

        # Binding.local_variables

(from ruby core)
---
    binding.local_variables -> Array

---

Returns the names of the binding's local variables as symbols.

    def foo
      a = 1
      2.times do |n|
        binding.local_variables #=> [:a, :n]
      end
    end

This method is the short version of the following code:

    binding.eval("local_variables")



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.