Sha256: 6e1b155c8c60472b832926128cedc843f9674f797b40653e1723a10266880798
Contents?: true
Size: 322 Bytes
Versions: 3
Compression:
Stored size: 322 Bytes
Contents
# frozen_string_literal: true class Code class Node class Base16 < Node def initialize(parsed) return if parsed.blank? @base_16 = parsed.presence end def evaluate(**_args) @base_16 ? Object::Integer.new(@base_16.to_i(16)) : Object::Nothing.new end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
code-ruby-0.13.1 | lib/code/node/base_16.rb |
code-ruby-0.13.0 | lib/code/node/base_16.rb |
code-ruby-0.12.0 | lib/code/node/base_16.rb |