lib/maven/tools/artifact.rb in maven-tools-1.0.7 vs lib/maven/tools/artifact.rb in maven-tools-1.0.8
- old
+ new
@@ -159,10 +159,12 @@
end
end
end
private :prepare
- ATTRS = :type=, :group_id=, :artifact_id=, :version=, :classifier=, :exclusions=, :scope=
+ unless defined? ATTRS
+ ATTRS = :type=, :group_id=, :artifact_id=, :version=, :classifier=, :exclusions=, :scope=
+ end
def method_missing( m, arg = nil )
if ATTRS.member? m
# setter
self[ m.to_s[ 0..-2].to_sym ] = arg
elsif ATTRS.member?( "#{m}=".to_sym )