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.
584
585
586
587
588
589
590
591
|
# File 'lib/maven/model/model.rb', line 584
def initialize(id, &block)
super({})
self.id id
if block
block.call(self)
end
self
end
|
Instance Method Details
#releases(args = {}) ⇒ Object
593
594
595
|
# File 'lib/maven/model/model.rb', line 593
def releases(args = {})
@releases ||= OHash.new.replace(args)
end
|
#snapshots(args = {}) ⇒ Object
597
598
599
|
# File 'lib/maven/model/model.rb', line 597
def snapshots(args = {})
@snapshots ||= OHash.new.replace(args)
end
|
#to_xml(*args) ⇒ Object
601
602
603
|
# File 'lib/maven/model/model.rb', line 601
def to_xml(*args)
super
end
|