Sha256: ee3fc8a0a943c5cce5ca8a434b18b031b1cf7acf37925eef5f64102613acdc9b

Contents?: true

Size: 291 Bytes

Versions: 13

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module Orthoses
  # use Orthoses::Sort
  class Sort
    def initialize(loader)
      @loader = loader
    end

    def call
      @loader.call.tap do |store|
        store.each do |name, content|
          content.sort!
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
orthoses-1.17.0 lib/orthoses/sort.rb
orthoses-1.16.0 lib/orthoses/sort.rb
orthoses-1.15.0 lib/orthoses/sort.rb
orthoses-1.14.0 lib/orthoses/sort.rb
orthoses-1.13.0 lib/orthoses/sort.rb
orthoses-1.12.0 lib/orthoses/sort.rb
orthoses-1.11.0 lib/orthoses/sort.rb
orthoses-1.10.0 lib/orthoses/sort.rb
orthoses-1.9.0 lib/orthoses/sort.rb
orthoses-1.8.0 lib/orthoses/sort.rb
orthoses-1.7.0 lib/orthoses/sort.rb
orthoses-1.6.0 lib/orthoses/sort.rb
orthoses-1.5.0 lib/orthoses/sort.rb