Module: Calabash::Extras::PageObjectComparator
- Defined in:
- lib/calabash-extras/page_object_comparator.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
8 9 10 |
# File 'lib/calabash-extras/page_object_comparator.rb', line 8 def ==(other) name == other.name end |
#eql?(other) ⇒ Boolean
12 13 14 |
# File 'lib/calabash-extras/page_object_comparator.rb', line 12 def eql?(other) name == other.name end |
#hash ⇒ Object
16 17 18 |
# File 'lib/calabash-extras/page_object_comparator.rb', line 16 def hash name.hash end |
#name ⇒ Object
4 5 6 |
# File 'lib/calabash-extras/page_object_comparator.rb', line 4 def name self.class.name.rpartition('::').last end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/calabash-extras/page_object_comparator.rb', line 20 def to_s name end |