Class: Spektr::Exp::Xstr
Instance Attribute Summary
Attributes inherited from Base
#arguments, #ast, #body, #location, #name, #options, #type
Instance Method Summary collapse
-
#initialize(ast) ⇒ Xstr
constructor
A new instance of Xstr.
Methods inherited from Base
#handler_missing, #process, #send?
Constructor Details
#initialize(ast) ⇒ Xstr
Returns a new instance of Xstr.
4 5 6 7 8 9 |
# File 'lib/spektr/exp/xstr.rb', line 4 def initialize(ast) super ast.children[1..].each do |child| @arguments << Argument.new(child) end end |