Method: SemanticVersioning::Segment#<=>
- Defined in:
- lib/semantic_versioning/segment.rb
#<=>(other) ⇒ Object
17 18 19 20 21 |
# File 'lib/semantic_versioning/segment.rb', line 17 def <=>(other) return nil unless other.is_a?(Segment) scores = scores_vs(other) scores.compact.detect { |s| s.abs == 1 } end |