Class: CheapSkate::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- CheapSkate::Task
- Defined in:
- lib/cheap_skate/tasks.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = :cheapskate) {|_self| ... } ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name = :cheapskate) {|_self| ... } ⇒ Task
Returns a new instance of Task.
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
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/cheap_skate/tasks.rb', line 5 def name @name end |