class Configurator::Loader
Attributes
data[R]
path[R]
Public Class Methods
new(path, _binding = nil)
click to toggle source
# File lib/configurator/loader.rb, line 28 def initialize(path, _binding = nil) @path = Pathname.new(path).realpath @binding = _binding @data = nil end
Public Instance Methods
[](env)
click to toggle source
# File lib/configurator/loader.rb, line 34 def [](env) data[env] end
load(environment)
click to toggle source
# File lib/configurator/loader.rb, line 48 def load(environment) data[environment.to_s] end
reload!(environment)
click to toggle source
# File lib/configurator/loader.rb, line 52 def reload!(environment) data(true)[environment.to_s] end