Method: Indexable#body

Defined in:
lib/core/facets/indexable.rb

#bodyObject

Returns an array of the first element up to, but not including, the last element.

[1,2,3].body  #=> [1,2]

– Better name for this? (bulk, perhaps?) ++



61
62
63
# File 'lib/core/facets/indexable.rb', line 61

def body
  slice(0,size-1)
end