Class: Jars::MavenVersion
- Inherits:
-
String
- Object
- String
- Jars::MavenVersion
- Defined in:
- lib/jars/gemspec_artifacts.rb
Class Method Summary collapse
Class Method Details
.new(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jars/gemspec_artifacts.rb', line 3 def self.new(*args) if args.empty? || (args.size == 1 && args[0].nil?) nil else low, high = convert(args[0]) low, high = convert(args[1], low, high) if args[1] =~ /[=~><]/ if low == high low else super "#{low || '[0'},#{high || ')'}" end end end |