Flowdock
method

<=>

Importance_1
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveModel::Name
<=> public

Equivalent to String#<=>.

class BlogPost
  extend ActiveModel::Naming
end

BlogPost.model_name <=> 'BlogPost'  # => 0
BlogPost.model_name <=> 'Blog'      # => 1
BlogPost.model_name <=> 'BlogPosts' # => -1
Show source
Register or log in to add new notes.