Methods

Class/Module Index [+]

Quicksearch

Fluent::Config::DSL::Parser

Public Class Methods

parse(source, source_path="config.rb") click to toggle source
# File lib/fluent/config/dsl.rb, line 13
def self.parse(source, source_path="config.rb")
  Proxy.new('ROOT', nil).eval(source, source_path).to_config_element
end
read(path) click to toggle source
# File lib/fluent/config/dsl.rb, line 7
def self.read(path)
  path = File.expand_path(path)
  data = File.read(path)
  parse(data, path)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.