Sha256: dce9d9348ce201689e4a7f3b633a406411d76ef3df1ee53248b170b347b64c52

Contents?: true

Size: 111 Bytes

Versions: 10

Compression:

Stored size: 111 Bytes

Contents

class Array
  # strip the last element
  #   [1,2,3].body
  #   => [1,2]
  def body
    self[0..-2]
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ludy-0.1.2 lib/ludy/array/body.rb
ludy-0.1.0 lib/ludy/array/body.rb
ludy-0.1.1 lib/ludy/array/body.rb
ludy-0.1.9 lib/ludy/array/body.rb
ludy-0.1.3 lib/ludy/array/body.rb
ludy-0.1.5 lib/ludy/array/body.rb
ludy-0.1.6 lib/ludy/array/body.rb
ludy-0.1.8 lib/ludy/array/body.rb
ludy-0.1.4 lib/ludy/array/body.rb
ludy-0.1.7 lib/ludy/array/body.rb