Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • irb/inspector.rb

Parent

IRB::Inspector

Public Class Methods

new(inspect_proc, init_proc = nil) click to toggle source
 
               # File irb/inspector.rb, line 20
def initialize(inspect_proc, init_proc = nil)
  @init = init_proc
  @inspect = inspect_proc
end
            

Public Instance Methods

init() click to toggle source
 
               # File irb/inspector.rb, line 25
def init
  @init.call if @init
end
            
inspect_value(v) click to toggle source
 
               # File irb/inspector.rb, line 29
def inspect_value(v)
  @inspect.call(v)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.