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.
933 934 935 936 |
# File 'lib/rubyhacks.rb', line 933 def initialize(name, block); @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
931 932 933 |
# File 'lib/rubyhacks.rb', line 931 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
930 931 932 |
# File 'lib/rubyhacks.rb', line 930 def name @name end |
Instance Method Details
#==(sym) ⇒ Object
938 939 940 |
# File 'lib/rubyhacks.rb', line 938 def ==(sym) @name == sym end |