+(other)
click to toggle source
def +(other)
Section.new(self.to_h.merge(other.to_h))
end
[](key)
click to toggle source
def [](key)
@params[key.to_sym]
end
inspect()
click to toggle source
def inspect
"<Fluent::Config::Section #{@params.to_json}>"
end
instance_of?(mod)
click to toggle source
def instance_of?(mod)
@klass == mod.name
end
kind_of?(mod)
click to toggle source
def kind_of?(mod)
@klass == mod.name || BasicObject == mod
end
method_missing(name, *args)
click to toggle source
Calls superclass method
def method_missing(name, *args)
if @params.has_key?(name)
@params[name]
else
super
end
end
nil?()
click to toggle source
respond_to_missing?(symbol, include_private)
click to toggle source
def respond_to_missing?(symbol, include_private)
@params.has_key?(symbol)
end
to_h()
click to toggle source