Class: Code::Node::Base16
- Inherits:
-
Code::Node
- Object
- Code::Node
- Code::Node::Base16
- Defined in:
- lib/code/node/base_16.rb
Instance Method Summary collapse
- #evaluate(**_args) ⇒ Object
-
#initialize(parsed) ⇒ Base16
constructor
A new instance of Base16.
Methods inherited from Code::Node
Constructor Details
#initialize(parsed) ⇒ Base16
Returns a new instance of Base16.
6 7 8 |
# File 'lib/code/node/base_16.rb', line 6 def initialize(parsed) @base_16 = parsed end |
Instance Method Details
#evaluate(**_args) ⇒ Object
10 11 12 |
# File 'lib/code/node/base_16.rb', line 10 def evaluate(**_args) ::Code::Object::Integer.new(@base_16.to_i(16)) end |