Method: Dokkit::TaskLib::Render#initialize
- Defined in:
- lib/dokkit/tasklib/render.rb
#initialize(ns = 'render') {|_self| ... } ⇒ Render
Initialize a set of tasks that transform resources.
namespace-
is the namespace for the tasks defined in the library.
logger-
is the logger instance.
factory-
is a factory class that creates document instances.
document_fns-
is an array of source filenames.
data_fns-
is an array of data files.
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/dokkit/tasklib/render.rb', line 26 def initialize(ns = 'render') super yield self if block_given? @document_fns ||= [] @data_fns ||= [] define_tasks end |