Module: RR::DoubleDefinitions::DoubleDefinition::StateQueryMethods
- Included in:
- RR::DoubleDefinitions::DoubleDefinition
- Defined in:
- lib/rr/double_definitions/double_definition.rb
Instance Method Summary collapse
- #exact_match?(*arguments) ⇒ Boolean
- #expected_arguments ⇒ Object
- #implementation_is_original_method? ⇒ Boolean
- #ordered? ⇒ Boolean
- #terminal? ⇒ Boolean
- #verbose? ⇒ Boolean
- #wildcard_match?(*arguments) ⇒ Boolean
Instance Method Details
#exact_match?(*arguments) ⇒ Boolean
180 181 182 183 |
# File 'lib/rr/double_definitions/double_definition.rb', line 180 def exact_match?(*arguments) raise(Errors::DoubleDefinitionError, "#argument_expectation must be defined on #{inspect}") unless @argument_expectation @argument_expectation.exact_match?(*arguments) end |
#expected_arguments ⇒ Object
195 196 197 198 |
# File 'lib/rr/double_definitions/double_definition.rb', line 195 def expected_arguments return [] unless argument_expectation argument_expectation.expected_arguments end |
#implementation_is_original_method? ⇒ Boolean
200 201 202 |
# File 'lib/rr/double_definitions/double_definition.rb', line 200 def implementation_is_original_method? implementation_strategy.is_a?(Strategies::Implementation::Proxy) end |
#ordered? ⇒ Boolean
172 173 174 |
# File 'lib/rr/double_definitions/double_definition.rb', line 172 def ordered? @ordered end |
#terminal? ⇒ Boolean
190 191 192 193 |
# File 'lib/rr/double_definitions/double_definition.rb', line 190 def terminal? raise(Errors::DoubleDefinitionError, "#argument_expectation must be defined on #{inspect}") unless @times_matcher @times_matcher.terminal? end |
#verbose? ⇒ Boolean
176 177 178 |
# File 'lib/rr/double_definitions/double_definition.rb', line 176 def verbose? @verbose ? true : false end |
#wildcard_match?(*arguments) ⇒ Boolean
185 186 187 188 |
# File 'lib/rr/double_definitions/double_definition.rb', line 185 def wildcard_match?(*arguments) raise(Errors::DoubleDefinitionError, "#argument_expectation must be defined on #{inspect}") unless @argument_expectation @argument_expectation.wildcard_match?(*arguments) end |