Skip to content

Instantly share code, notes, and snippets.

@yangsu
Created January 28, 2013 03:51
Show Gist options
  • Save yangsu/4652879 to your computer and use it in GitHub Desktop.
Save yangsu/4652879 to your computer and use it in GitHub Desktop.
Ruby Comparable
'begin' <=> 'end' # => -1
'same' <=> 'same' # => 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment