Class: FAM::Syntax::AST::AddressNode
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize(address) ⇒ AddressNode
constructor
A new instance of AddressNode.
Methods inherited from Node
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
#address ⇒ Object
Returns the value of attribute address.
122 123 124 |
# File 'lib/fam/syntax/ast.rb', line 122 def address @address end |