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