Sha256: 91ccd9ed946ba02625668fd9cfc19790df79dc406e9cbe0be46c82e3f5bc5add

Contents?: true

Size: 284 Bytes

Versions: 25

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class TypedValue
    attr_reader :type, :value

    def initialize(type: nil, value: nil)
      @type = type
      @value = value
    end

    def inspect
      "<#{type}.#{value}>"
    end

    def to_s
      inspect
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
grumlin-0.23.0 lib/grumlin/typed_value.rb
grumlin-0.22.5 lib/grumlin/typed_value.rb
grumlin-0.22.4 lib/grumlin/typed_value.rb
grumlin-0.22.3 lib/grumlin/typed_value.rb
grumlin-0.22.2 lib/grumlin/typed_value.rb
grumlin-0.22.1 lib/grumlin/typed_value.rb
grumlin-0.22.0 lib/grumlin/typed_value.rb
grumlin-0.21.1 lib/grumlin/typed_value.rb
grumlin-0.21.0 lib/grumlin/typed_value.rb
grumlin-0.20.2 lib/grumlin/typed_value.rb
grumlin-0.20.1 lib/grumlin/typed_value.rb
grumlin-0.20.0 lib/grumlin/typed_value.rb
grumlin-0.19.7 lib/grumlin/typed_value.rb
grumlin-0.19.6 lib/grumlin/typed_value.rb
grumlin-0.19.5 lib/grumlin/typed_value.rb
grumlin-0.19.4 lib/grumlin/typed_value.rb
grumlin-0.19.3 lib/grumlin/typed_value.rb
grumlin-0.19.2 lib/grumlin/typed_value.rb
grumlin-0.19.1 lib/grumlin/typed_value.rb
grumlin-0.19.0 lib/grumlin/typed_value.rb