Sha256: af2ffa113dc4ad63c936dbb81c65142e124bc430bc4821a15e5085b519c6f023

Contents?: true

Size: 289 Bytes

Versions: 12

Compression:

Stored size: 289 Bytes

Contents

class Code
  class Node
    class Base8Number < Node
      def initialize(number)
        @number = number
      end

      def evaluate(**args)
        ::Code::Object::Integer.new(number)
      end

      private

      def number
        @number.to_s.to_i(8)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
template-ruby-0.4.0 lib/code/node/base_8_number.rb
code-ruby-0.4.0 lib/code/node/base_8_number.rb
template-ruby-0.3.1 lib/code/node/base_8_number.rb
code-ruby-0.3.1 lib/code/node/base_8_number.rb
template-ruby-0.3.0 lib/code/node/base_8_number.rb
code-ruby-0.3.0 lib/code/node/base_8_number.rb
code-ruby-0.2.4 lib/code/node/base_8_number.rb
template-ruby-0.2.4 lib/code/node/base_8_number.rb
template-ruby-0.2.3 lib/code/node/base_8_number.rb
template-ruby-0.2.2 lib/code/node/base_8_number.rb
template-ruby-0.2.1 lib/code/node/base_8_number.rb
template-ruby-0.2.0 lib/code/node/base_8_number.rb