Class Spec::Matchers::BaseOperatorMatcher
In: lib/spec/matchers/operator_matcher.rb
Parent: Object

Methods

<   <=   ==   ===   =~   >   >=   fail_with_message   new  

Public Class methods

[Source]

   # File lib/spec/matchers/operator_matcher.rb, line 5
5:       def initialize(target)
6:         @target = target
7:       end

Public Instance methods

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 34
34:       def <(expected)
35:         @expected = expected
36:         __delegate_method_missing_to_target("<", expected)
37:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 39
39:       def <=(expected)
40:         @expected = expected
41:         __delegate_method_missing_to_target("<=", expected)
42:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 9
 9:       def ==(expected)
10:         @expected = expected
11:         __delegate_method_missing_to_target("==", expected)
12:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 14
14:       def ===(expected)
15:         @expected = expected
16:         __delegate_method_missing_to_target("===", expected)
17:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 19
19:       def =~(expected)
20:         @expected = expected
21:         __delegate_method_missing_to_target("=~", expected)
22:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 24
24:       def >(expected)
25:         @expected = expected
26:         __delegate_method_missing_to_target(">", expected)
27:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 29
29:       def >=(expected)
30:         @expected = expected
31:         __delegate_method_missing_to_target(">=", expected)
32:       end

[Source]

    # File lib/spec/matchers/operator_matcher.rb, line 44
44:       def fail_with_message(message)
45:         Spec::Expectations.fail_with(message, @expected, @target)
46:       end

[Validate]