Class: ActiveOperation::Matcher::Execution::Base
- Inherits:
-
Object
- Object
- ActiveOperation::Matcher::Execution::Base
show all
- Defined in:
- lib/active_operation/matcher/execution.rb
Instance Method Summary
collapse
Instance Method Details
#and_return(result) ⇒ Object
5
6
7
8
|
# File 'lib/active_operation/matcher/execution.rb', line 5
def and_return(result)
@result = result
self
end
|
#failure_message ⇒ Object
15
16
17
|
# File 'lib/active_operation/matcher/execution.rb', line 15
def failure_message
raise NotImplementedError, "Expected #{self.class} to implement ##{__callee__}"
end
|
#failure_message_when_negated ⇒ Object
Also known as:
negative_failure_message
19
20
21
|
# File 'lib/active_operation/matcher/execution.rb', line 19
def failure_message_when_negated
raise NotImplementedError, "Expected #{self.class} to implement ##{__callee__}"
end
|
#when_initialized_with(*input) ⇒ Object
10
11
12
13
|
# File 'lib/active_operation/matcher/execution.rb', line 10
def when_initialized_with(*input)
@input = input
self
end
|