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

local_variable_defined?

        # Binding.local_variable_defined?

(from ruby core)
---
    binding.local_variable_defined?(symbol) -> obj

---

Returns `true` if a local variable `symbol` exists.

    def foo
      a = 1
      binding.local_variable_defined?(:a) #=> true
      binding.local_variable_defined?(:b) #=> false
    end

This method is the short version of the following code:

    binding.eval("defined?(#{symbol}) == 'local-variable'")



      

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.