Class: Rabbit::GemBuilder
- Inherits:
-
Object
- Object
- Rabbit::GemBuilder
- Defined in:
- lib/rabbit/gem-builder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(spec) ⇒ GemBuilder
constructor
A new instance of GemBuilder.
Constructor Details
#initialize(spec) ⇒ GemBuilder
Returns a new instance of GemBuilder.
27 28 29 |
# File 'lib/rabbit/gem-builder.rb', line 27 def initialize(spec) @spec = spec end |
Class Method Details
.build(spec) ⇒ Object
22 23 24 |
# File 'lib/rabbit/gem-builder.rb', line 22 def build(spec) new(spec).build end |
Instance Method Details
#build ⇒ Object
32 33 34 |
# File 'lib/rabbit/gem-builder.rb', line 32 def build Gem::Builder.new(@spec).build end |