Flowdock
inspect() public

No documentation

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

Hide source
# File lib/irb/context.rb, line 234
    def inspect
      array = []
      for ivar in instance_variables.sort{|e1, e2| e1 <=> e2}
        name = ivar.sub(/^@(.*)$/){$1}
        val = instance_eval(ivar)
        case ivar
        when *NOPRINTING_IVARS
          array.push format("conf.%s=%s", name, "...")
        when *NO_INSPECTING_IVARS
          array.push format("conf.%s=%s", name, val.to_s)
        when *IDNAME_IVARS
          array.push format("conf.%s=:%s", name, val.id2name)
        else
          array.push format("conf.%s=%s", name, val.inspect)
        end
      end
      array.join("\n")
    end
Register or log in to add new notes.