module Confix::RootInstanceMethods
Root instance methods
Public Instance Methods
assigns()
click to toggle source
@!attribute [r] assigns @return [Hash]
Assignment variables. These are available as interpolation arguments in any string setting. You can modify this hash.
# File lib/confix.rb, line 112 def assigns @assigns ||= {} end
child?()
click to toggle source
Determines whether this configuration is a child configuration.
# File lib/confix.rb, line 117 def child? false end
config_root()
click to toggle source
Gets the config root (this object).
# File lib/confix.rb, line 129 def config_root self end
configs()
click to toggle source
Gets a hash containing intermediate configuration objects.
# File lib/confix.rb, line 139 def configs @configs ||= {} end
fetch(name, default)
click to toggle source
# File lib/confix.rb, line 121 def fetch(name, default) value = values[name] value = default if value.nil? value = value % assigns if value.is_a?(String) value end
values()
click to toggle source
Gets all configuration values.
# File lib/confix.rb, line 134 def values @values ||= {} end