Class: XriResolver::Common

Inherits:
Object
  • Object
show all
Defined in:
lib/xri_resolver.rb

Class Method Summary collapse

Class Method Details

.prioritize(x, y) ⇒ Object



1136
1137
1138
# File 'lib/xri_resolver.rb', line 1136

def Common.prioritize(x, y)
  (x.to_i == y.to_i) ? (rand(3) - 1) : (x.to_i <=> y.to_i)
end