Class: SpotFeel::List

Inherits:
Node
  • Object
show all
Defined in:
lib/spot_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



585
586
587
588
589
590
591
592
# File 'lib/spot_feel/nodes.rb', line 585

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