Class: FEEL::List

Inherits:
Node
  • Object
show all
Defined in:
lib/feel/nodes.rb

Overview

  1. list = “[” [ expression , { “,” , expression } ] , “]” ;

Instance Method Summary collapse

Methods inherited from Node

#qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(context = {}) ⇒ Object



614
615
616
617
618
619
620
621
# File 'lib/feel/nodes.rb', line 614

def eval(context = {})
  return [] unless defined?(list_entries)
  if list_entries.present?
    list_entries.eval(context)
  else
    []
  end
end