Class: Jeweler::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Jeweler::Tasks
- Defined in:
- lib/jeweler/tasks.rb
Instance Attribute Summary collapse
-
#gemspec ⇒ Object
Returns the value of attribute gemspec.
-
#jeweler ⇒ Object
Returns the value of attribute jeweler.
Instance Method Summary collapse
-
#initialize(gemspec = nil) {|@gemspec| ... } ⇒ Tasks
constructor
A new instance of Tasks.
Constructor Details
#initialize(gemspec = nil) {|@gemspec| ... } ⇒ Tasks
Returns a new instance of Tasks.
8 9 10 11 12 13 14 15 |
# File 'lib/jeweler/tasks.rb', line 8 def initialize(gemspec = nil, &block) @gemspec = gemspec || Gem::Specification.new() yield @gemspec if block_given? @jeweler = Jeweler.new(@gemspec) define end |
Instance Attribute Details
#gemspec ⇒ Object
Returns the value of attribute gemspec.
6 7 8 |
# File 'lib/jeweler/tasks.rb', line 6 def gemspec @gemspec end |
#jeweler ⇒ Object
Returns the value of attribute jeweler.
6 7 8 |
# File 'lib/jeweler/tasks.rb', line 6 def jeweler @jeweler end |