lib/grumlin/property.rb in grumlin-0.23.0 vs lib/grumlin/property.rb in grumlin-1.0.0.rc1

- old
+ new

@@ -1,24 +1,22 @@ # frozen_string_literal: true -module Grumlin - class Property - attr_reader :key, :value +class Grumlin::Property + attr_reader :key, :value - def initialize(value) - @key = value[:key] - @value = Typing.cast(value[:value]) - end + def initialize(value) + @key = value[:key] + @value = Grumlin::Typing.cast(value[:value]) + end - def inspect - "p[#{key}->#{value}]" - end + def inspect + "p[#{key}->#{value}]" + end - def to_s - inspect - end + def to_s + inspect + end - def ==(other) - self.class == other.class && @key == other.key && @value == other.value - end + def ==(other) + self.class == other.class && @key == other.key && @value == other.value end end