Module: Bumbleworks::Support::WrapperComparison
- Included in:
- Expression, Process, Bumbleworks::Schedule, Task, Tracker, Workitem
- Defined in:
- lib/bumbleworks/support/wrapper_comparison.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 |
# File 'lib/bumbleworks/support/wrapper_comparison.rb', line 12 def ==(other) other.is_a?(self.class) && identifier_for_comparison && identifier_for_comparison == other.identifier_for_comparison end |
#eql?(other) ⇒ Boolean
18 19 20 |
# File 'lib/bumbleworks/support/wrapper_comparison.rb', line 18 def eql?(other) self == other end |
#hash ⇒ Object
8 9 10 |
# File 'lib/bumbleworks/support/wrapper_comparison.rb', line 8 def hash identifier_for_comparison.hash end |
#identifier_for_comparison ⇒ Object
4 5 6 |
# File 'lib/bumbleworks/support/wrapper_comparison.rb', line 4 def identifier_for_comparison id end |