Module: Algorithmable::Sort

Defined in:
lib/algorithmable/sort.rb,
lib/algorithmable/sort/merge.rb,
lib/algorithmable/sort/bubble.rb

Defined Under Namespace

Classes: Bubble, Merge

Class Method Summary collapse

Class Method Details

.bubble(collection) ⇒ Object



11
12
13
# File 'lib/algorithmable/sort.rb', line 11

def bubble(collection)
  Bubble.sort(collection)
end

.merge(collection) ⇒ Object



7
8
9
# File 'lib/algorithmable/sort.rb', line 7

def merge(collection)
  Merge.sort(collection)
end