Class: Range

Inherits:
Object
  • Object
show all
Includes:
NaturalSort
Defined in:
lib/natural_sort_kernel.rb

Overview

Add NaturalSort methods.

require 'natural_sort_kernel'

(1..21).alphanum_sort         #=> [1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 21, 3, 4, 5, 6, 7, 8, 9]

Constant Summary

Constants included from NaturalSort

NaturalSort::VERSION

Method Summary

Methods included from NaturalSort

#natural_sort, naturalsort