Class: FAM::Syntax::AST::DataNode

Inherits:
Node show all
Defined in:
lib/fam/syntax/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_s

Constructor Details

#initialize(name, initial) ⇒ DataNode

Returns a new instance of DataNode.



63
64
65
66
# File 'lib/fam/syntax/ast.rb', line 63

def initialize name, initial
  @name = name
  @initial = initial
end

Instance Attribute Details

#initialObject

Returns the value of attribute initial.



62
63
64
# File 'lib/fam/syntax/ast.rb', line 62

def initial
  @initial
end

#nameObject

Returns the value of attribute name.



62
63
64
# File 'lib/fam/syntax/ast.rb', line 62

def name
  @name
end