method
match_or_compare

1.1.12 -
Show latest stable
-
0 notes -
Class: Spec::Matchers::Be
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0
- 1.3.1
- What's this?
match_or_compare(actual)
private
Hide source
# File lib/spec/matchers/be.rb, line 63 def match_or_compare(actual) case @expected when TrueClass @actual else @actual.__send__(comparison_method, @expected) end end