Class: Module
Instance Method Summary collapse
-
#DefineEquality(*accessors) ⇒ Object
In ‘include DefineEquality(:foo)` * this method is called first * it sets the equality_accessors list of accessors * that returns self (the module DefineEquality) * which is then included and overrides the equality and hash methods.
Instance Method Details
#DefineEquality(*accessors) ⇒ Object
In ‘include DefineEquality(:foo)`
-
this method is called first
-
it sets the equality_accessors list of accessors
-
that returns self (the module DefineEquality)
-
which is then included and overrides the equality and hash methods
42 43 44 |
# File 'lib/ruby_peter_v/define_equality.rb', line 42 def DefineEquality(*accessors) DefineEquality.identify(self, *accessors) end |