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

Returns:

  • (Boolean)


12
13
14
# File 'lib/calabash-extras/page_object_comparator.rb', line 12

def eql?(other)
  name == other.name
end

#hashObject



16
17
18
# File 'lib/calabash-extras/page_object_comparator.rb', line 16

def hash
  name.hash
end

#nameObject



4
5
6
# File 'lib/calabash-extras/page_object_comparator.rb', line 4

def name
  self.class.name.rpartition('::').last
end

#to_sObject



20
21
22
# File 'lib/calabash-extras/page_object_comparator.rb', line 20

def to_s
  name
end