Class: FEEL::BooleanLiteral

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

Overview

  1. Boolean literal = “true” | “false” ;

Instance Method Summary collapse

Methods inherited from Node

#access_property, #contains_input_placeholder?, #qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(_context = {}) ⇒ Object



433
434
435
436
437
438
439
440
# File 'lib/feel/nodes.rb', line 433

def eval(_context = {})
  case text_value
  when "true"
    true
  when "false"
    false
  end
end