Sha256: f120c0ca0770e8edb93017a07cfa979d3dc8743ff7c7995c1406144fe77f656a

Contents?: true

Size: 270 Bytes

Versions: 1

Compression:

Stored size: 270 Bytes

Contents

module Rung
  module ValueObject
    def ==(other)
      return false if self.class != other.class

      instance_variables.all? do |variable|
        instance_variable_get(variable) ==
          other.send(:instance_variable_get, variable)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rung-0.1 lib/rung/value_object.rb