Matchy::ExpectationBuilder

Public Class Methods

build_expectation(match, exp, obj) click to toggle source
   # File lib/matchy/expectation_builder.rb, line 3
3:     def self.build_expectation(match, exp, obj)
4:       return Matchy::Expectations::OperatorExpectation.new(obj, match) unless exp
5:       
6:       (exp.matches?(obj) != match) ? exp.fail!(match) : exp.pass!(match)
7:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.