Class: Ptolemy::TOML::BooleanLiteral
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Ptolemy::TOML::BooleanLiteral
- Defined in:
- lib/ptolemy/nodes.rb
Overview
Represents a Boolean
Instance Method Summary collapse
-
#to_value ⇒ true, false
Evaluate a boolean by checking whether its text value matches true.
Instance Method Details
#to_value ⇒ true, false
Evaluate a boolean by checking whether its text value matches true
153 154 155 |
# File 'lib/ptolemy/nodes.rb', line 153 def to_value text_value == 'true' end |