Class: Smartest::Matcher

Inherits:
Object
  • Object
show all
Defined in:
lib/smartest/matchers.rb

Instance Method Summary collapse

Instance Method Details

#and(other_matcher) ⇒ Object



58
59
60
# File 'lib/smartest/matchers.rb', line 58

def and(other_matcher)
  AndMatcher.new(self, other_matcher)
end

#descriptionObject



66
67
68
# File 'lib/smartest/matchers.rb', line 66

def description
  self.class.name || "matcher"
end

#or(other_matcher) ⇒ Object



62
63
64
# File 'lib/smartest/matchers.rb', line 62

def or(other_matcher)
  OrMatcher.new(self, other_matcher)
end