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