Sha256: 489d278d7e3d79cc0768285f04274a24e61f99f0683e122dde295434c38d8d15

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

module ToFactory
  module Finders
    class Factory
      def call
        all = []

        parsed_files.each do |r|
          all = Collation.representations_from(all, r)
        end

        all
      end

      private

      def parsed_files
        Dir.glob(File.join(ToFactory.factories, "**/*.rb")).map do |f|
          ToFactory::Parsing::File.parse(f)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_factory-2.0.0 lib/to_factory/finders/factory.rb
to_factory-0.2.1 lib/to_factory/finders/factory.rb
to_factory-0.2.0 lib/to_factory/finders/factory.rb