class Confix::Config
A simple Config
object, which is created if people access a intermediate setting.
Public Class Methods
name()
click to toggle source
# File lib/confix.rb, line 399 def self.name "Confix::Config(#{key_from_root})" end
new(parent = nil)
click to toggle source
# File lib/confix.rb, line 384 def initialize(parent = nil) @parent = parent end
Public Instance Methods
child?()
click to toggle source
# File lib/confix.rb, line 392 def child? true end
config_root()
click to toggle source
Resolves the root configuration object.
# File lib/confix.rb, line 389 def config_root @config_root ||= @parent ? @parent.config_root : self end
inspect()
click to toggle source
Calls superclass method
# File lib/confix.rb, line 403 def inspect super.sub(/#<Class:0x[a-f0-9]+>/, "#<#{self.class.name}>") end