Parent

Class/Module Index [+]

Quicksearch

Fluent::Config::Section

Public Class Methods

name() click to toggle source
# File lib/fluent/config/section.rb, line 24
def self.name
  'Fluent::Config::Section'
end
new(params = {}) click to toggle source
# File lib/fluent/config/section.rb, line 28
def initialize(params = {})
  @klass = 'Fluent::Config::Section'
  @params = params
end

Public Instance Methods

+(other) click to toggle source
# File lib/fluent/config/section.rb, line 47
def +(other)
  Section.new(self.to_h.merge(other.to_h))
end
[](key) click to toggle source
# File lib/fluent/config/section.rb, line 60
def [](key)
  @params[key.to_sym]
end
inspect() click to toggle source
# File lib/fluent/config/section.rb, line 35
def inspect
  "<Fluent::Config::Section #{@params.to_json}>"
end
instance_of?(mod) click to toggle source
# File lib/fluent/config/section.rb, line 51
def instance_of?(mod)
  @klass == mod.name
end
is_a?(mod) click to toggle source
Alias for: kind_of?
kind_of?(mod) click to toggle source
# File lib/fluent/config/section.rb, line 55
def kind_of?(mod)
  @klass == mod.name || BasicObject == mod
end
Also aliased as: is_a?
method_missing(name, *args) click to toggle source
# File lib/fluent/config/section.rb, line 68
def method_missing(name, *args)
  if @params.has_key?(name)
    @params[name]
  else
    super
  end
end
nil?() click to toggle source
# File lib/fluent/config/section.rb, line 39
def nil?
  false
end
respond_to_missing?(symbol, include_private) click to toggle source
# File lib/fluent/config/section.rb, line 64
def respond_to_missing?(symbol, include_private)
  @params.has_key?(symbol)
end
to_h() click to toggle source
# File lib/fluent/config/section.rb, line 43
def to_h
  @params
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.