class Range

Public Instance Methods

to_seq() click to toggle source
# File lib/apricot/ruby_ext.rb, line 182
def to_seq
  if first > last || (first == last && exclude_end?)
    nil
  else
    Seq.new(first, last, exclude_end?)
  end
end