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.



922
923
924
925
# File 'lib/rubyhacks.rb', line 922

def initialize(name, block);
	@name = name
	@block = block
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



920
921
922
# File 'lib/rubyhacks.rb', line 920

def block
  @block
end

#nameObject

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