Exception: Goto

Inherits:
Exception
  • Object
show all
Defined in:
lib/goto.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label) ⇒ Goto

Returns a new instance of Goto.



19
# File 'lib/goto.rb', line 19

def initialize(label); @label = label; end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



18
19
20
# File 'lib/goto.rb', line 18

def label
  @label
end