Sha256: 9ee8d887819ec6f7b39da808a4802f214837ca2636bf179b9812f5192e395c95

Contents?: true

Size: 148 Bytes

Versions: 2

Compression:

Stored size: 148 Bytes

Contents

# encoding: utf-8

class Array
  # Returns the tail of the array
  def butfirst
    if empty?
      []
    else
      self[1..-1]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inactive_support-1.3.0 lib/inactive_support/array/butfirst.rb
inactive_support-1.2.0 lib/inactive_support/array/butfirst.rb