Class: FAM::Syntax::AST::RegisterNode

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(register) ⇒ RegisterNode

Returns a new instance of RegisterNode.



137
138
139
# File 'lib/fam/syntax/ast.rb', line 137

def initialize register
  @register = register.name[1..-1]
end

Instance Attribute Details

#registerObject

Returns the value of attribute register.



136
137
138
# File 'lib/fam/syntax/ast.rb', line 136

def register
  @register
end