Class: Jeweler::Tasks

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/jeweler/tasks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gemspec = nil) {|@gemspec| ... } ⇒ Tasks

Returns a new instance of Tasks.

Yields:



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

#gemspecObject

Returns the value of attribute gemspec.



6
7
8
# File 'lib/jeweler/tasks.rb', line 6

def gemspec
  @gemspec
end

#jewelerObject

Returns the value of attribute jeweler.



6
7
8
# File 'lib/jeweler/tasks.rb', line 6

def jeweler
  @jeweler
end