--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Alternate name for comparison operator #&lt;=&gt;."
- !ruby/struct:SM::Flow::VERB 
  body: "  3.cmp(1)   #=&gt;  1\n  3.cmp(3)   #=&gt;  0\n  3.cmp(10)  #=&gt; -1\n"
- !ruby/struct:SM::Flow::P 
  body: This fundamental compare method is used to keep comparison compatible with <tt>#succ</tt>.
- !ruby/struct:SM::Flow::P 
  body: "CREDIT: Peter Vanbroekhoven"
full_name: Comparable#cmp
is_singleton: false
name: cmp
params: (o)
visibility: public
