Class: PersonifyLanguage::Parameter

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/personify/parser/personify_node_classes.rb

Instance Method Summary collapse

Instance Method Details

#eval(env = {}) ⇒ Object



112
113
114
# File 'lib/personify/parser/personify_node_classes.rb', line 112

def eval(env={})
  self.parameters.map{|param| param.eval(env) }
end

#parametersObject



115
116
117
# File 'lib/personify/parser/personify_node_classes.rb', line 115

def parameters
  (self.first_param.respond_to?(:eval) ? [first_param] : []) + more_expressions.elements.map {|elt| elt.expression_or_string}
end