Class: Pact::Doc::SortInteractions

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/doc/sort_interactions.rb

Class Method Summary collapse

Class Method Details

.call(interactions) ⇒ Object



4
5
6
# File 'lib/pact/doc/sort_interactions.rb', line 4

def self.call interactions
  interactions.sort{|a, b| sortable_id(a) <=> sortable_id(b)}
end