Class: Maven::Tools::ArtifactPassthrough
- Inherits:
-
Object
- Object
- Maven::Tools::ArtifactPassthrough
- Defined in:
- lib/maven/tools/maven_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.
30 31 32 |
# File 'lib/maven/tools/maven_project.rb', line 30 def initialize(&block) @block = block end |
Instance Method Details
#add_artifact(a) ⇒ Object
34 35 36 |
# File 'lib/maven/tools/maven_project.rb', line 34 def add_artifact(a) @block.call(a) end |
#add_repository(name, url) ⇒ Object
38 39 |
# File 'lib/maven/tools/maven_project.rb', line 38 def add_repository(name, url) end |