Sha256: de599e0978ec7699b949fc05f83f5961a63515c472cf110aca9ba37da7287872
Contents?: true
Size: 398 Bytes
Versions: 31
Compression:
Stored size: 398 Bytes
Contents
# frozen_string_literal: true module Grumlin class Property attr_reader :key, :value def initialize(value) @key = value[:key] @value = Typing.cast(value[:value]) end def inspect "p[#{key}->#{value}]" end def to_s inspect end def ==(other) self.class == other.class && @key == other.key && @value == other.value end end end
Version data entries
31 entries across 31 versions & 1 rubygems