Class: Twostroke::AST::Break

Inherits:
Base
  • Object
show all
Defined in:
lib/twostroke/ast/break.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#line

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Twostroke::AST::Base

Instance Attribute Details

#labelObject

Returns the value of attribute label.



3
4
5
# File 'lib/twostroke/ast/break.rb', line 3

def label
  @label
end

Instance Method Details

#collapseObject



5
6
7
# File 'lib/twostroke/ast/break.rb', line 5

def collapse
  self
end

#walk {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



9
10
11
# File 'lib/twostroke/ast/break.rb', line 9

def walk
  yield self
end