Class: Pact::NullExpectation
- Inherits:
-
Object
- Object
- Pact::NullExpectation
- Defined in:
- lib/pact/shared/null_expectation.rb
Instance Method Summary collapse
- #==(other_object) ⇒ Object
- #===(other_object) ⇒ Object
- #empty? ⇒ Boolean
- #eql?(other_object) ⇒ Boolean
- #hash ⇒ Object
- #nil? ⇒ Boolean
- #to_s ⇒ Object
Instance Method Details
#==(other_object) ⇒ Object
7 8 9 |
# File 'lib/pact/shared/null_expectation.rb', line 7 def ==(other_object) other_object.is_a? NullExpectation end |
#===(other_object) ⇒ Object
11 12 13 |
# File 'lib/pact/shared/null_expectation.rb', line 11 def ===(other_object) other_object.is_a? NullExpectation end |
#empty? ⇒ Boolean
23 24 25 |
# File 'lib/pact/shared/null_expectation.rb', line 23 def empty? true end |
#eql?(other_object) ⇒ Boolean
15 16 17 |
# File 'lib/pact/shared/null_expectation.rb', line 15 def eql?(other_object) self == other_object end |
#hash ⇒ Object
19 20 21 |
# File 'lib/pact/shared/null_expectation.rb', line 19 def hash 2934820948209428748274238642672 end |
#nil? ⇒ Boolean
27 28 29 |
# File 'lib/pact/shared/null_expectation.rb', line 27 def nil? true end |
#to_s ⇒ Object
3 4 5 |
# File 'lib/pact/shared/null_expectation.rb', line 3 def to_s "<No expectation>" end |