Class: IRB::Irb

Inherits:
Object
  • Object
show all
Defined in:
lib/tap/tasks/console.rb

Overview

Instance Method Summary collapse

Constructor Details

#initialize(workspace = nil, *args) ⇒ Irb

Returns a new instance of Irb.



8
9
10
11
12
# File 'lib/tap/tasks/console.rb', line 8

def initialize(workspace = nil, *args)
  default = IRB.conf[:DEFAULT_OBJECT]
  workspace ||= IRB::WorkSpace.new(default) if default
  initialize_orig(workspace, *args)
end

Instance Method Details

#initialize_origObject



7
# File 'lib/tap/tasks/console.rb', line 7

alias initialize_orig initialize