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



641
642
643
644
645
646
647
648
# File 'lib/feel/nodes.rb', line 641

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