Class: Rake::GemGhostTask

Inherits:
TaskLib
  • Object
show all
Defined in:
lib/rake/gem_ghost_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/rake/gem_ghost_task.rb', line 6

def name
  @name
end