Sha256: 55bde37d395e866ad09a1dcecbd44018854f1be484ada61168980b12255ba476
Contents?: true
Size: 365 Bytes
Versions: 15
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true class Grumlin::Property attr_reader :key, :value def initialize(value) @key = value[:key] @value = Grumlin::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
Version data entries
15 entries across 15 versions & 1 rubygems