Class: ComposableOperations::Matcher::Execution::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/composable_operations/matcher/execution.rb

Instance Method Summary collapse

Instance Method Details

#and_return(result) ⇒ Object



7
8
9
10
# File 'lib/composable_operations/matcher/execution.rb', line 7

def and_return(result)
  @result = result
  self
end

#failure_messageObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/composable_operations/matcher/execution.rb', line 17

def failure_message
  raise NotImplementedError, "Expected #{self.class} to implement ##{__callee__}"
end

#failure_message_when_negatedObject Also known as: negative_failure_message

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/composable_operations/matcher/execution.rb', line 21

def failure_message_when_negated
  raise NotImplementedError, "Expected #{self.class} to implement ##{__callee__}"
end

#when_initialized_with(*input) ⇒ Object



12
13
14
15
# File 'lib/composable_operations/matcher/execution.rb', line 12

def when_initialized_with(*input)
  @input = input
  self
end