Sha256: afc4a71ad443d9b53bcfe319edfa6e141d75a56dfdfdf5319cf0eb897c76a46a
Contents?: true
Size: 318 Bytes
Versions: 29
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true class Code class Node class Base2 < Node def initialize(parsed) return if parsed.blank? @base_2 = parsed.presence end def evaluate(**_args) @base_2 ? Object::Integer.new(@base_2.to_i(2)) : Object::Nothing.new end end end end
Version data entries
29 entries across 29 versions & 1 rubygems