Class: Query::Node::Base2
- Inherits:
-
Query::Node
- Object
- Query::Node
- Query::Node::Base2
- Defined in:
- lib/query/node/base_2.rb
Instance Attribute Summary collapse
-
#base_2 ⇒ Object
Returns the value of attribute base_2.
Instance Method Summary collapse
- #evaluate(**_args) ⇒ Object
-
#initialize(parsed) ⇒ Base2
constructor
A new instance of Base2.
Constructor Details
#initialize(parsed) ⇒ Base2
8 9 10 |
# File 'lib/query/node/base_2.rb', line 8 def initialize(parsed) self.base_2 = parsed end |
Instance Attribute Details
#base_2 ⇒ Object
Returns the value of attribute base_2.
6 7 8 |
# File 'lib/query/node/base_2.rb', line 6 def base_2 @base_2 end |
Instance Method Details
#evaluate(**_args) ⇒ Object
12 13 14 |
# File 'lib/query/node/base_2.rb', line 12 def evaluate(**_args) base_2.to_i(2) end |