Class: Maven::Model::Exclusion
- Includes:
- Tools::Coordinate
- Defined in:
- lib/maven/model/dependencies.rb
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(*args) ⇒ Exclusion
constructor
A new instance of Exclusion.
Methods included from Tools::Coordinate
#gav, #group_artifact, #to_coordinate, #to_split_coordinate, #to_version
Methods inherited from Tag
#_name, _tags, #comment, prepend_tags, tags, #to_xml
Constructor Details
#initialize(*args) ⇒ Exclusion
Returns a new instance of Exclusion.
87 88 89 |
# File 'lib/maven/model/dependencies.rb', line 87 def initialize(*args) @group_id, @artifact_id = group_artifact(*args) end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
95 96 97 |
# File 'lib/maven/model/dependencies.rb', line 95 def ==(other) group_id == other.group_id && artifact_id == other.artifact_id end |
#hash ⇒ Object
91 92 93 |
# File 'lib/maven/model/dependencies.rb', line 91 def hash "#{group_id}:#{artifact_id}".hash end |