Class: CheapSkate::Task

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/cheap_skate/tasks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :cheapskate) {|_self| ... } ⇒ Task

Returns a new instance of Task.

Yields:

  • (_self)

Yield Parameters:



6
7
8
9
10
11
# File 'lib/cheap_skate/tasks.rb', line 6

def initialize(name = :cheapskate)
  @name = name

  yield self if block_given?
  define_tasks
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/cheap_skate/tasks.rb', line 5

def name
  @name
end