Class: Maven::Model::Repository
- Inherits:
-
Tag
- Object
- Tag
- Maven::Model::Repository
show all
- Defined in:
- lib/maven/model/model.rb
Instance Method Summary
collapse
Methods inherited from Tag
#_name, _tags, #comment, prepend_tags, tags
Constructor Details
#initialize(id, &block) ⇒ Repository
Returns a new instance of Repository.
589
590
591
592
593
594
595
596
|
# File 'lib/maven/model/model.rb', line 589
def initialize(id, &block)
super({})
self.id id
if block
block.call(self)
end
self
end
|
Instance Method Details
#releases(args = {}) ⇒ Object
598
599
600
|
# File 'lib/maven/model/model.rb', line 598
def releases(args = {})
@releases ||= args
end
|
#snapshots(args = {}) ⇒ Object
602
603
604
|
# File 'lib/maven/model/model.rb', line 602
def snapshots(args = {})
@snapshots ||= args
end
|
#to_xml(*args) ⇒ Object
606
607
608
|
# File 'lib/maven/model/model.rb', line 606
def to_xml(*args)
super
end
|