Class: VCR::UnusedCassettes::MethodIndex
- Inherits:
-
Object
- Object
- VCR::UnusedCassettes::MethodIndex
- Defined in:
- lib/vcr/unused_cassettes/method_index.rb
Instance Method Summary collapse
- #call_arguments_for(method_name) ⇒ Object
-
#initialize(root_node) ⇒ MethodIndex
constructor
A new instance of MethodIndex.
Constructor Details
#initialize(root_node) ⇒ MethodIndex
Returns a new instance of MethodIndex.
7 8 9 10 11 12 |
# File 'lib/vcr/unused_cassettes/method_index.rb', line 7 def initialize(root_node) @definitions = {} @call_arguments = Hash.new { |h, k| h[k] = [] } collect_definitions(root_node) collect_calls(root_node, CallContext.new) unless @definitions.empty? end |
Instance Method Details
#call_arguments_for(method_name) ⇒ Object
14 15 16 |
# File 'lib/vcr/unused_cassettes/method_index.rb', line 14 def call_arguments_for(method_name) @call_arguments[method_name] || [] end |