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