Class: Spektr::Exp::Xstr

Inherits:
Base
  • Object
show all
Defined in:
lib/spektr/exp/xstr.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #ast, #body, #location, #name, #options, #type

Instance Method Summary collapse

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