Flowdock
method

debug_variable_info

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: DEBUGGER__::Context

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

These similar methods exist in v1_9_3_392:

debug_variable_info(input, binding) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/debug.rb, line 190
  def debug_variable_info(input, binding)
    case input
    when /^\s*g(?:lobal)?\s*$/
      var_list(global_variables, binding)

    when /^\s*l(?:ocal)?\s*$/
      var_list(eval("local_variables", binding), binding)

    when /^\s*i(?:nstance)?\s+/
      obj = debug_eval($', binding)
      var_list(obj.instance_variables, obj.instance_eval{binding()})

    when /^\s*c(?:onst(?:ant)?)?\s+/
      obj = debug_eval($', binding)
      unless obj.kind_of? Module
        stdout.print "Should be Class/Module: ", $', "\n"
      else
        var_list(obj.constants, obj.module_eval{binding()})
      end
    end
  end
Register or log in to add new notes.