Class: Pact::Consumer::UpdatableInteractionsFilter

Inherits:
InteractionsFilter show all
Defined in:
lib/pact/consumer/interactions_filter.rb

Instance Method Summary collapse

Methods inherited from InteractionsFilter

#index_of, #initialize

Constructor Details

This class inherits a constructor from Pact::Consumer::InteractionsFilter

Instance Method Details

#<<(interaction) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/pact/consumer/interactions_filter.rb', line 17

def << interaction
   if (ndx = index_of(interaction))
      @interactions[ndx] = interaction
   else
      @interactions << interaction
   end
end