Class: FAM::Syntax::AST::AddressNode

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(address) ⇒ AddressNode

Returns a new instance of AddressNode.



123
124
125
# File 'lib/fam/syntax/ast.rb', line 123

def initialize address
  @address = address.name[1..-1].to_i
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



122
123
124
# File 'lib/fam/syntax/ast.rb', line 122

def address
  @address
end