Class: Bindy::Language::ArgList

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/bindy/language_interpreters.rb

Instance Method Summary collapse

Instance Method Details

#to_aObject



47
48
49
# File 'lib/bindy/language_interpreters.rb', line 47

def to_a
  [expression] | (arg_list.respond_to?(:to_a) ? arg_list.to_a : [arg_list])
end