Class: Photish::Rake::Task

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/photish/rake/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_name = "photish", desc = "Run photish") {|_self| ... } ⇒ Task

Returns a new instance of Task.

Yields:

  • (_self)

Yield Parameters:



10
11
12
13
14
15
# File 'lib/photish/rake/task.rb', line 10

def initialize(task_name = "photish", desc = "Run photish")
  @task_name = task_name
  @desc = desc
  yield self if block_given?
  define_task
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



8
9
10
# File 'lib/photish/rake/task.rb', line 8

def options
  @options
end