Module: Daitai::SortWith
- Included in:
- Daitai
- Defined in:
- lib/daitai/functions/sort_with.rb
Instance Method Summary collapse
Instance Method Details
#sort_with ⇒ Object
5 6 7 8 9 |
# File 'lib/daitai/functions/sort_with.rb', line 5 def sort_with lambda do |comparator, sortable| sortable.sort(&comparator) end.curry end |