class Fluent::Config::Section
def self.name
def self.name 'Fluent::Config::Section' end
def +(other)
def +(other) Section.new(self.to_h.merge(other.to_h)) end
def [](key)
def [](key) @params[key.to_sym] end
def []=(key, value)
def []=(key, value) @params[key.to_sym] = value end
def class
def class Section end
def corresponding_config_element
def corresponding_config_element @corresponding_config_element end
def initialize(params = {}, config_element = nil)
def initialize(params = {}, config_element = nil) @klass = 'Fluent::Config::Section' @params = params @corresponding_config_element = config_element end
def inspect
def inspect "<Fluent::Config::Section #{@params.to_json}>" end
def instance_of?(mod)
def instance_of?(mod) @klass == mod.name end
def kind_of?(mod)
def kind_of?(mod) @klass == mod.name || BasicObject == mod end
def method_missing(name, *args)
def method_missing(name, *args) if @params.has_key?(name) @params[name] else ::Kernel.raise ::NoMethodError, "undefined method `#{name}' for #{self.inspect}" end end
def nil?
def nil? false end
def respond_to?(symbol, include_all=false)
def respond_to?(symbol, include_all=false) case symbol when :inspect, :nil?, :to_h, :+, :instance_of?, :kind_of?, :[], :respond_to?, :respond_to_missing? true when :!, :!= , :==, :equal?, :instance_eval, :instance_exec true when :method_missing, :singleton_method_added, :singleton_method_removed, :singleton_method_undefined include_all else false end end
def respond_to_missing?(symbol, include_private)
def respond_to_missing?(symbol, include_private) @params.has_key?(symbol) end
def to_h
def to_h @params end
def to_s
def to_s inspect end