Class: Aspen::AST::Nodes::Statement
- Inherits:
-
Object
- Object
- Aspen::AST::Nodes::Statement
- Defined in:
- lib/aspen/ast/nodes/statement.rb
Instance Attribute Summary collapse
-
#edge ⇒ Object
readonly
Returns the value of attribute edge.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(origin: nil, edge: nil, target: nil) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(origin: nil, edge: nil, target: nil) ⇒ Statement
Returns a new instance of Statement.
8 9 10 11 12 |
# File 'lib/aspen/ast/nodes/statement.rb', line 8 def initialize(origin: nil, edge: nil, target: nil) @origin = origin @edge = edge @target = target end |
Instance Attribute Details
#edge ⇒ Object (readonly)
Returns the value of attribute edge.
6 7 8 |
# File 'lib/aspen/ast/nodes/statement.rb', line 6 def edge @edge end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
6 7 8 |
# File 'lib/aspen/ast/nodes/statement.rb', line 6 def origin @origin end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
6 7 8 |
# File 'lib/aspen/ast/nodes/statement.rb', line 6 def target @target end |