Class: Twostroke::AST::Declaration
- Defined in:
- lib/twostroke/ast/declaration.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Twostroke::AST::Base
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/twostroke/ast/declaration.rb', line 3 def name @name end |
Instance Method Details
#collapse ⇒ Object
5 6 7 |
# File 'lib/twostroke/ast/declaration.rb', line 5 def collapse self end |
#walk {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/twostroke/ast/declaration.rb', line 9 def walk yield self end |