Module: Ramcrest::EqualTo

Defined in:
lib/ramcrest/equal_to.rb

Defined Under Namespace

Classes: Matcher

Class Method Summary collapse

Class Method Details

.equal_to(expected) ⇒ Object



12
13
14
# File 'lib/ramcrest/equal_to.rb', line 12

def equal_to(expected)
  Matcher.new(expected)
end

.to_matcher(possible_matcher) ⇒ Object



5
6
7
8
# File 'lib/ramcrest/equal_to.rb', line 5

def self.to_matcher(possible_matcher)
  return possible_matcher if Ramcrest.is_matcher?(possible_matcher)
  Ramcrest::EqualTo.equal_to(possible_matcher)
end