Class: NilClass
- Includes:
- Comparable
- Defined in:
- lib/mega/nilcomparable.rb
Instance Method Summary collapse
- #<=>(x) ⇒ Object (also: #cmp)
Instance Method Details
#<=>(x) ⇒ Object Also known as: cmp
65 66 67 |
# File 'lib/mega/nilcomparable.rb', line 65 def <=>(x) x.nil? ? 0 : -1 end |