class Fluent::Config::YamlParser::Loader::Visitor
Public Class Methods
new(scanner, class_loader)
click to toggle source
Calls superclass method
# File lib/fluent/config/yaml_parser/loader.rb, line 81 def initialize(scanner, class_loader) super(scanner, class_loader) end
Public Instance Methods
_register_domain(name, &block)
click to toggle source
# File lib/fluent/config/yaml_parser/loader.rb, line 85 def _register_domain(name, &block) @domain_types.merge!({ name => [name, block] }) end
revive_hash(hash, o)
click to toggle source
Calls superclass method
# File lib/fluent/config/yaml_parser/loader.rb, line 89 def revive_hash(hash, o) super(hash, o).tap do |r| if r[SHOVEL].is_a?(Hash) h2 = {} r.each do |k, v| if k == SHOVEL h2.merge!(v) else h2[k] = v end end r.replace(h2) end end end