Class: Yalphabetize::OrderCheckers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yalphabetize/order_checkers/base.rb

Class Method Summary collapse

Class Method Details

.ordered?(string, other_string) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/yalphabetize/order_checkers/base.rb', line 6

def self.ordered?(string, other_string)
  !compare(string, other_string).positive?
end