class Webpacker::FileLoader
Provides a base singleton-configuration pattern for loading a file, given a path
Attributes
data[RW]
Public Class Methods
load(path = file_path)
click to toggle source
# File lib/webpacker/file_loader.rb, line 10 def load(path = file_path) self.instance = new(path) end
new(path)
click to toggle source
# File lib/webpacker/file_loader.rb, line 16 def initialize(path) @path = path @data = load end
Private Instance Methods
load()
click to toggle source
# File lib/webpacker/file_loader.rb, line 21 def load {}.freeze end