Class: SpotFeel::BooleanLiteral
- Defined in:
- lib/spot_feel/nodes.rb
Overview
-
Boolean literal = “true” | “false” ;
Instance Method Summary collapse
Methods inherited from Node
#qualified_names_in_context, #raise_evaluation_error
Instance Method Details
#eval(_context = {}) ⇒ Object
343 344 345 346 347 348 349 350 |
# File 'lib/spot_feel/nodes.rb', line 343 def eval(_context = {}) case text_value when "true" true when "false" false end end |