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, #qualified_names_in_context, #raise_evaluation_error

Instance Method Details

#eval(_context = {}) ⇒ Object



415
416
417
418
419
420
421
422
# File 'lib/feel/nodes.rb', line 415

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