Class: Scripref::Sorter
- Inherits:
-
Object
- Object
- Scripref::Sorter
- Includes:
- SortUpDown
- Defined in:
- lib/scripref/sorter.rb
Defined Under Namespace
Modules: SortUpDown, SortUpUp
Instance Method Summary collapse
-
#initialize(*mods) ⇒ Sorter
constructor
A new instance of Sorter.
- #sort(*references) ⇒ Object (also: #<<)
Methods included from SortUpDown
Constructor Details
#initialize(*mods) ⇒ Sorter
Returns a new instance of Sorter.
8 9 10 11 |
# File 'lib/scripref/sorter.rb', line 8 def initialize *mods @mods = mods mods.each {|m| extend m} end |