Class: GoTo::Label

Inherits:
Object show all
Defined in:
lib/rubyhacks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



931
932
933
# File 'lib/rubyhacks.rb', line 931

def block
  @block
end

#nameObject

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