Class: Estreet::Statement

Inherits:
Node
  • Object
show all
Defined in:
lib/estreet/statement.rb

Instance Attribute Summary

Attributes inherited from Node

#source_location

Instance Method Summary collapse

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_statementObject



3
4
5
# File 'lib/estreet/statement.rb', line 3

def to_statement
  self
end