Class: Confuscript::Nodes::Values::BooleanNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/confuscript/nodes/values/boolean_node.rb

Instance Method Summary collapse

Methods inherited from BaseNode

#find_node

Instance Method Details

#evaluate(context) ⇒ Object



5
6
7
8
9
10
# File 'lib/confuscript/nodes/values/boolean_node.rb', line 5

def evaluate(context)
  # Return the value of the boolean
  # I don't know if this is even correct but since it's working
  # I'm going to leave it alone for now.
  text_value == "true"
end