Class: PM::IRB

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/patchmaster/irb/irb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIRB

Returns a new instance of IRB.



14
15
16
17
18
# File 'lib/patchmaster/irb/irb.rb', line 14

def initialize
  @dsl = PM::DSL.new
  @dsl.song("IRB Song")
  @dsl.patch("IRB Patch")
end

Instance Attribute Details

#dslObject (readonly)

Returns the value of attribute dsl.



12
13
14
# File 'lib/patchmaster/irb/irb.rb', line 12

def dsl
  @dsl
end

Instance Method Details

#runObject

For bin/patchmaster.



21
22
23
# File 'lib/patchmaster/irb/irb.rb', line 21

def run
  ::IRB.start
end