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.1.4 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.3 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.2 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.1.0 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.8 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.7 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.6 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.5 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.4 lib/vm_shepherd/data_object.rb
vm_shepherd-1.12.7 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.3 lib/vm_shepherd/data_object.rb
vm_shepherd-1.12.6 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.2 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.1 lib/vm_shepherd/data_object.rb
vm_shepherd-3.0.0 lib/vm_shepherd/data_object.rb
vm_shepherd-2.0.3 lib/vm_shepherd/data_object.rb
vm_shepherd-2.0.2 lib/vm_shepherd/data_object.rb
vm_shepherd-2.0.1 lib/vm_shepherd/data_object.rb
vm_shepherd-2.0.0 lib/vm_shepherd/data_object.rb