Class: Pubid::Core::Entity

Inherits:
Object
  • Object
show all
Defined in:
lib/pubid/core/entity.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/pubid/core/entity.rb', line 3

def ==(other)
  instance_variables.map do |var|
    return false unless instance_variable_get(var) == other.instance_variable_get(var)
  end

  true
end