module Paperwork
globla namespace for paperwork
global paperwork namespace
Constants
- VERSION
Public Instance Methods
paperwork(task = nil, sources: [], **options)
click to toggle source
creates the document named by 'task'. if a hash is provided instead of task (like in regular task definitions in rake), the first key is used as name and it's associated values are treated as dependencies of that task.
# File lib/paperwork/tasks.rb, line 16 def paperwork(task = nil, sources: [], **options) dependencies = [] if task.nil? task = options.keys.first dependencies = options.delete(task) end doc = Paperwork::Tasks::Document.new(task, sources, *dependencies) doc.create_tasks end
paperwork_configure() { |instance| ... }
click to toggle source
# File lib/paperwork/tasks.rb, line 6 def paperwork_configure yield Paperwork::Config.instance end