Sha256: 116af61d7b24ec093fc8ce8021e00a1b7dfc937822aab297aa866073d29ef4e0

Contents?: true

Size: 248 Bytes

Versions: 15

Compression:

Stored size: 248 Bytes

Contents

# frozen_string_literal: true

class Grumlin::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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
grumlin-1.2.0 lib/grumlin/typed_value.rb
grumlin-1.1.0 lib/grumlin/typed_value.rb
grumlin-1.0.4 lib/grumlin/typed_value.rb
grumlin-1.0.3 lib/grumlin/typed_value.rb
grumlin-1.0.3.beta1 lib/grumlin/typed_value.rb
grumlin-1.0.2 lib/grumlin/typed_value.rb
grumlin-1.0.1 lib/grumlin/typed_value.rb
grumlin-1.0.0 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc7 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc6 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc5 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc4 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc3 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc2 lib/grumlin/typed_value.rb
grumlin-1.0.0.rc1 lib/grumlin/typed_value.rb