Class: Orthoses::Sort
- Inherits:
-
Object
- Object
- Orthoses::Sort
- Defined in:
- lib/orthoses/sort.rb
Overview
use Orthoses::Sort
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(loader) ⇒ Sort
constructor
A new instance of Sort.
Constructor Details
#initialize(loader) ⇒ Sort
6 7 8 |
# File 'lib/orthoses/sort.rb', line 6 def initialize(loader) @loader = loader end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/orthoses/sort.rb', line 10 def call @loader.call.tap do |store| store.each do |name, content| content.sort! end end end |