<=>

module other_module â -1, 0, +1, or nil
Instance Public methods

ComparisonâReturns -1, 0, +1 or nil depending on whether module includes other_module, they are the same, or if module is included by other_module. This is the basis for the tests in Comparable.

Returns nil if module has no relationship with other_module, if other_module is not a module, or if the two values are incomparable.

doc_ruby_on_rails
2015-04-19 02:06:26
Comments
Leave a Comment

Please login to continue.