Class: Estreet::Statement
Direct Known Subclasses
BlockStatement, BreakStatement, EmptyStatement, ExpressionStatement, ForStatement, FunctionDeclaration, IfStatement, LabeledStatement, ReturnStatement, SwitchStatement, ThrowStatement, VariableDeclaration, WhileStatement
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#<<(statement) ⇒ Object
Returns a block where the receiver is the first statment and ‘statement` is the second.
- #to_statement ⇒ Object
Methods inherited from Node
#as_json, #initialize, #loc, #type
Constructor Details
This class inherits a constructor from Estreet::Node
Instance Method Details
#<<(statement) ⇒ Object
Returns a block where the receiver is the first statment and ‘statement` is the second
8 9 10 |
# File 'lib/estreet/statement.rb', line 8 def <<(statement) BlockStatement.flatten(self, statement) end |
#to_statement ⇒ Object
3 4 5 |
# File 'lib/estreet/statement.rb', line 3 def to_statement self end |