Skip to content

Instantly share code, notes, and snippets.

@nofxx
Created August 9, 2008 11:36
Show Gist options
  • Save nofxx/4669 to your computer and use it in GitHub Desktop.
Save nofxx/4669 to your computer and use it in GitHub Desktop.
def <=>(other)
raise("Comparing a revision to #{other.class} is not supported") unless other.is_a? Revision
@number <=> other.number
end
# from cruisecontrol code...
# ruby = poem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment