Class: Maven::Tools::ArtifactPassthrough
- Inherits:
-
Object
- Object
- Maven::Tools::ArtifactPassthrough
- Defined in:
- lib/maven/tools/gem_project.rb
Instance Method Summary collapse
- #add_artifact(a) ⇒ Object
- #add_repository(name, url) ⇒ Object
-
#initialize(&block) ⇒ ArtifactPassthrough
constructor
A new instance of ArtifactPassthrough.
Constructor Details
#initialize(&block) ⇒ ArtifactPassthrough
Returns a new instance of ArtifactPassthrough.
32 33 34 |
# File 'lib/maven/tools/gem_project.rb', line 32 def initialize(&block) @block = block end |
Instance Method Details
#add_artifact(a) ⇒ Object
36 37 38 |
# File 'lib/maven/tools/gem_project.rb', line 36 def add_artifact(a) @block.call(a) end |
#add_repository(name, url) ⇒ Object
40 41 |
# File 'lib/maven/tools/gem_project.rb', line 40 def add_repository(name, url) end |