Sha256: cb928c6439899b4aa45feeaf41e9fe2ca37258be2c5453f749ea40ad4100d5a2

Contents?: true

Size: 415 Bytes

Versions: 9

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

class Hash
  class ValueChanger
    class Dummy
      attr_reader :value

      delegate :+, to: :value

      def initialize(value)
        @value = value
      end

      def as_json
        { val: value }
      end

      def eql?(other)
        return true if equals?(other)
        return false unless other.is_a?(self.class)
        a.value == value
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
darthjee-core_ext-2.0.0 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.7.4 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.7.3 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.7.2 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.7.1 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.7.0 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.6.2 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.6.1 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.6.0 spec/support/models/hash/value_changer/dummy.rb