Class: Lookout::Expected::Regexp
- Defined in:
- lib/lookout-3.0/expected/regexp.rb
Overview
Represents expected Regexps.
Instance Method Summary collapse
-
#difference(actual) ⇒ Difference::Regexp?
A difference report between ACTUAL and #expected unless they’re ‘#==` or ACTUAL is matched by #expected.
Methods inherited from Object
Instance Method Details
#difference(actual) ⇒ Difference::Regexp?
Returns A difference report between ACTUAL and #expected unless they’re ‘#==` or ACTUAL is matched by #expected.
8 9 10 11 |
# File 'lib/lookout-3.0/expected/regexp.rb', line 8 def difference(actual) Lookout::Difference::Regexp.new(actual, expected) unless expected == actual or expected === actual end |