Class: Range

Inherits:
Object show all
Defined in:
lib/sequel/core_ext.rb

Overview

Range extensions

Instance Method Summary collapse

Instance Method Details

#intervalObject

Returns the interval between the beginning and end of the range.



13
14
15
# File 'lib/sequel/core_ext.rb', line 13

def interval
  last - first
end