Class: Impersonator::MethodMatchingConfiguration
- Inherits:
-
Object
- Object
- Impersonator::MethodMatchingConfiguration
- Defined in:
- lib/impersonator/method_matching_configuration.rb
Overview
Configuration options for matching methods
Instance Attribute Summary collapse
-
#ignored_positions ⇒ Object
readonly
Returns the value of attribute ignored_positions.
Instance Method Summary collapse
-
#ignore_arguments_at(*positions) ⇒ Object
Configure positions to ignore.
-
#initialize ⇒ MethodMatchingConfiguration
constructor
A new instance of MethodMatchingConfiguration.
Constructor Details
#initialize ⇒ MethodMatchingConfiguration
Returns a new instance of MethodMatchingConfiguration.
6 7 8 |
# File 'lib/impersonator/method_matching_configuration.rb', line 6 def initialize @ignored_positions = [] end |
Instance Attribute Details
#ignored_positions ⇒ Object (readonly)
Returns the value of attribute ignored_positions.
4 5 6 |
# File 'lib/impersonator/method_matching_configuration.rb', line 4 def ignored_positions @ignored_positions end |
Instance Method Details
#ignore_arguments_at(*positions) ⇒ Object
Configure positions to ignore
13 14 15 |
# File 'lib/impersonator/method_matching_configuration.rb', line 13 def ignore_arguments_at(*positions) ignored_positions.push(*positions) end |