Sha256: 45314420462aa9e00f7172dfee4540eba9caa75bd83adc3823bb4278f2db8041

Contents?: true

Size: 277 Bytes

Versions: 55

Compression:

Stored size: 277 Bytes

Contents

module VmShepherd
  module DataObject
    def ==(other_obj)
      return false unless self.class === other_obj

      instance_variables.all? do |ivar_name|
        self.instance_variable_get(ivar_name) == other_obj.instance_variable_get(ivar_name)
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
vm_shepherd-3.7.3 lib/vm_shepherd/data_object.rb
vm_shepherd-3.7.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.7.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.6.2 lib/vm_shepherd/data_object.rb
vm_shepherd-3.6.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.6.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.5.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.4.3 lib/vm_shepherd/data_object.rb
vm_shepherd-3.4.2 lib/vm_shepherd/data_object.rb
vm_shepherd-3.4.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.4.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.3.2 lib/vm_shepherd/data_object.rb
vm_shepherd-3.3.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.3.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.2.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.2.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.8 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.7 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.6 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.5 lib/vm_shepherd/data_object.rb