Sha256: ed7b613fa8b00161922b31be1b79e29dc770c83dd8dba531cd12423ea8e88341

Contents?: true

Size: 288 Bytes

Versions: 6

Compression:

Stored size: 288 Bytes

Contents

module ConfigFiles
  class FileFactory
    class << self
      private
      def loader(file_name, options)
        LoaderFactory.(file_name, options)
      end

      public
      def call(file_name, options={})
        loader(file_name, options).(file_name)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
config_files-0.1.7 lib/config_files/file_factory.rb
config_files-0.1.6 lib/config_files/file_factory.rb
config_files-0.1.5 lib/config_files/file_factory.rb
config_files-0.1.3 lib/config_files/file_factory.rb
config_files-0.1.2 lib/config_files/file_factory.rb
config_files-0.1.1 lib/config_files/file_factory.rb