Class: Keisan::AST::Boolean
- Defined in:
- lib/keisan/ast/boolean.rb
Instance Attribute Summary collapse
-
#bool ⇒ Object
readonly
Returns the value of attribute bool.
Instance Method Summary collapse
-
#initialize(bool) ⇒ Boolean
constructor
A new instance of Boolean.
- #value(context = nil) ⇒ Object
Constructor Details
#initialize(bool) ⇒ Boolean
Returns a new instance of Boolean.
6 7 8 |
# File 'lib/keisan/ast/boolean.rb', line 6 def initialize(bool) @bool = bool end |
Instance Attribute Details
#bool ⇒ Object (readonly)
Returns the value of attribute bool.
4 5 6 |
# File 'lib/keisan/ast/boolean.rb', line 4 def bool @bool end |
Instance Method Details
#value(context = nil) ⇒ Object
10 11 12 |
# File 'lib/keisan/ast/boolean.rb', line 10 def value(context = nil) bool end |