Sha256: 334c6f2e67ccb2bd666bdbdcef589c1d881429c215f7ca36955fed02c06ab9ed
Contents?: true
Size: 471 Bytes
Versions: 1
Compression:
Stored size: 471 Bytes
Contents
class Array # Returns an array of the first element upto, # but not including, the last element. # # [1,2,3].bulk #=> [1,2] # def body slice(0,length-1) end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # =begin test require 'test/unit' class TCArray < Test::Unit::TestCase def test_body a = [1,2,3,4,5] assert_equal( [1,2,3,4], a.body ) end end =end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | lib/nano/array/body.rb |