Sha256: d3ae8c0a53227adbaec2f733749c462e510f8e371f138d364acd65e03bd0c4f1
Contents?: true
Size: 548 Bytes
Versions: 7
Compression:
Stored size: 548 Bytes
Contents
module Fluent module DataReader def data_path=(path) @data_path = path end def data_path return @data_path if @data_path return default_data_path if self.respond_to? :default_data_path end # The data_source name here must match the name used for the # class accessor in the data builder. It is this data_source # variable that connects the reader and the builder. def load(file) @data_source = YAML.load_file "#{data_path}/#{file}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems