Class: Twostroke::AST::Throw
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
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
#expression ⇒ Object
Returns the value of attribute expression.
3 4 5 |
# File 'lib/twostroke/ast/throw.rb', line 3 def expression @expression end |
Instance Method Details
#collapse ⇒ Object
5 6 7 |
# File 'lib/twostroke/ast/throw.rb', line 5 def collapse self.class.new expression: expression.collapse end |
#walk(&bk) ⇒ Object
9 10 11 12 13 |
# File 'lib/twostroke/ast/throw.rb', line 9 def walk(&bk) if yield self expression.walk &bk end end |