Sha256: dd78efda4dae39abd3d7a27e4940e459d11b9f78a271b527dae803c323b31ba3

Contents?: true

Size: 302 Bytes

Versions: 10

Compression:

Stored size: 302 Bytes

Contents

class Hash::ValueChanger::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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
darthjee-core_ext-1.5.6 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.5.5 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.5.4 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.5.3 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.5.2 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.5.1 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.5.0 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.4.1 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.4.0 spec/support/models/hash/value_changer/dummy.rb
darthjee-core_ext-1.3.1 spec/support/models/hash/value_changer/dummy.rb