Class: Aspen::AST::Nodes::Statement

Inherits:
Object
  • Object
show all
Defined in:
lib/aspen/ast/nodes/statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#edgeObject (readonly)

Returns the value of attribute edge.



6
7
8
# File 'lib/aspen/ast/nodes/statement.rb', line 6

def edge
  @edge
end

#originObject (readonly)

Returns the value of attribute origin.



6
7
8
# File 'lib/aspen/ast/nodes/statement.rb', line 6

def origin
  @origin
end

#targetObject (readonly)

Returns the value of attribute target.



6
7
8
# File 'lib/aspen/ast/nodes/statement.rb', line 6

def target
  @target
end