Sha256: ff660ea053ca2d54fb19f677d7e41429d014aa26eda199c67022a02a82eb0b8e

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns the middle element(s) of an array. Even-sized arrays, not having an exact middle, returns a two-element array of the two middle elements.
- !ruby/struct:SM::Flow::VERB 
  body: "  [1,2,3,4,5].middle        #=> 3\n  [1,2,3,4,5,6].middle      #=> [3,4]\n"
- !ruby/struct:SM::Flow::P 
  body: "In contrast to #mid which utilizes an offset."
full_name: Indexable#middle
is_singleton: false
name: middle
params: ()
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.3 doc/ri/Indexable/middle-i.yaml
facets-2.4.2 doc/ri/Indexable/middle-i.yaml