Class: GoTo::Label
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(sym) ⇒ Object
-
#initialize(name, block) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(name, block) ⇒ Label
Returns a new instance of Label.
922 923 924 925 |
# File 'lib/rubyhacks.rb', line 922 def initialize(name, block); @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
920 921 922 |
# File 'lib/rubyhacks.rb', line 920 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
919 920 921 |
# File 'lib/rubyhacks.rb', line 919 def name @name end |
Instance Method Details
#==(sym) ⇒ Object
927 928 929 |
# File 'lib/rubyhacks.rb', line 927 def ==(sym) @name == sym end |