Module: Kernel

Defined in:
lib/sorting/convenience.rb

Overview

Note:

you have to require 'sorting/convenience' to load this

The 'sorting/convenience' file patches the Kernel module and adds global asc() and desc() methods, which work like Sorting::Helpers.asc and Sorting::Helpers.desc

Class Method Summary collapse

Class Method Details

.asc(*args, &lazy) ⇒ Object

Note:

This method is a module function, and as such also available as a private instance method.


# File 'lib/sorting/convenience.rb', line 24

.desc(*args, &lazy) ⇒ Object

Note:

This method is a module function, and as such also available as a private instance method.


# File 'lib/sorting/convenience.rb', line 32