Class: Rake::GemGhostTask
- Inherits:
-
TaskLib
- Object
- TaskLib
- Rake::GemGhostTask
- Defined in:
- lib/rake/gem_ghost_task.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ GemGhostTask
constructor
A new instance of GemGhostTask.
Constructor Details
#initialize(name = nil) ⇒ GemGhostTask
Returns a new instance of GemGhostTask.
7 8 9 10 |
# File 'lib/rake/gem_ghost_task.rb', line 7 def initialize(name = nil) @name = name || Pathname.getwd.basename.to_s define end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/rake/gem_ghost_task.rb', line 6 def name @name end |