Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

<=> operator in rails

a <=> b :=
  if a < b then return -1
  if a = b then return  0
  if a > b then return  1
  if a and b are not comparable then return nil
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #operator #rails
ADD COMMENT
Topic
Name
9+8 =