Sha256: 64734cbc8f102a338dd79118dec03de9abb0b525a3a5ee418b0e3b8a063b6698

Contents?: true

Size: 472 Bytes

Versions: 4

Compression:

Stored size: 472 Bytes

Contents

# Provides a base singleton-configuration pattern for loading a file, given a path
class WebpackerLite::FileLoader
  class NotFoundError < StandardError; end
  class FileLoaderError < StandardError; end

  class_attribute :instance
  attr_accessor :data

  class << self
    def load(path = file_path)
      self.instance = new(path)
    end
  end

  private
    def initialize(path)
      @path = path
      @data = load
    end

    def load
      {}.freeze
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
webpacker_lite-1.0.0 lib/webpacker_lite/file_loader.rb
webpacker_lite-0.0.5 lib/webpacker_lite/file_loader.rb
webpacker_lite-0.0.4 lib/webpacker_lite/file_loader.rb
webpacker_lite-0.0.3 lib/webpacker_lite/file_loader.rb