class DataMapper::Visualizer::Rake::Task
Attributes
options[R]
Options for the DataMapper
Visualizer
.
Public Class Methods
new(options={}) { |self| ... }
click to toggle source
Creates a new task.
@param [Hash] options
Options for the DataMapper Visualizer.
@yield [task]
The given block will be passed the newly created task.
@yieldparam [Task] task
The new Task.
# File lib/dm-visualizer/rake/task.rb, line 23 def initialize(options={}) @options = {:bundle => File.file?('Gemfile')} @options.merge!(options) yield self if block_given? define() end
Public Instance Methods
define(&block)
click to toggle source
Defines a task within the ‘dm:doc` namespace.
# File lib/dm-visualizer/rake/task.rb, line 35 def define(&block) namespace :dm do namespace(:doc,&block) end task 'db:doc' => 'dm:doc' end