Class: Shoe::Tasks::Task
- Inherits:
-
Object
- Object
- Shoe::Tasks::Task
- Defined in:
- lib/shoe/tasks/task.rb
Instance Attribute Summary collapse
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
Instance Method Summary collapse
-
#initialize(spec) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(spec) ⇒ Task
Returns a new instance of Task.
7 8 9 10 11 |
# File 'lib/shoe/tasks/task.rb', line 7 def initialize(spec) @spec = Gem::Specification.load(spec) @spec.extend(Extensions::Specification) define if active? end |
Instance Attribute Details
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
5 6 7 |
# File 'lib/shoe/tasks/task.rb', line 5 def spec @spec end |