Class: Kitchen::I18nString

Inherits:
String show all
Defined in:
lib/kitchen/i18n_string.rb

Overview

Compare one string with another

Returns 0 if first string equals second, 1 if first string is greater than the second and -1 if first string is less than the second.

Instance Method Summary collapse

Methods inherited from String

#uncapitalize

Instance Method Details

#<=>(other) ⇒ Object



12
13
14
# File 'lib/kitchen/i18n_string.rb', line 12

def <=>(other)
  I18n.sort_strings(self, other)
end