Module: Tyrion::Document::InstanceMethods

Defined in:
lib/tyrion/document.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ true, false

Checks for equality.

Examples:

Compare two objects

object == other

Parameters:

  • The (Object)

    other object to compare with

Returns:

  • (true, false)

    True if objects’ attributes are the same, false otherwise.



23
24
25
# File 'lib/tyrion/document.rb', line 23

def == other
  other.attributes == attributes
end