Sha256: c68b08f6695bd740278c0e905e78380b097ea015552fead0d415e7acfd625d85
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Iterate through slices. If slice <tt>steps</tt> is not given, the arity of the block is used. - !ruby/struct:SM::Flow::VERB body: " x = []\n [1,2,3,4].each_by{ |a,b| x << [a,b] }\n x #=> [ [1,2], [3,4] ]\n\n x = []\n [1,2,3,4,5,6].each_by(3){ |a| x << a }\n x #=> [ [1,2,3], [4,5,6] ]\n" - !ruby/struct:SM::Flow::P body: This is just like each_slice, except that it will check the arity of the block. If each_slice ever suppots this this method can be deprecated. - !ruby/struct:SM::Flow::VERB body: " CREDIT: Trans\n" full_name: Enumerable#each_by is_singleton: false name: each_by params: (steps=nil, &block) visibility: public
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facets-2.4.3 | doc/ri/Enumerable/each_by-i.yaml |
facets-2.4.2 | doc/ri/Enumerable/each_by-i.yaml |