Sha256: af66874b8ffd58147f29c55f6083520af8d8862e8b3240549862eb2b301be04d

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

class Hash::ValueChanger::Dummy
  attr_reader :value

  delegate :+, to: :value

  def initialize(value)
    @value = value
  end

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
darthjee-core_ext-1.3.0 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.2.6 spec/support/models/hash/value_changer/dummy.rb
bidu-core_ext-1.2.5 spec/support/models/hash/value_changer/dummy.rb