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