X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/Array
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Array
/
📄
%26-i.yaml
(417 B)
📄
%2a-i.yaml
(582 B)
📄
%2b-i.yaml
(433 B)
📄
%2d-i.yaml
(527 B)
📄
%3c%3c-i.yaml
(566 B)
📄
%3c%3d%3e-i.yaml
(1015 B)
📄
%3d%3d-i.yaml
(746 B)
📄
%5b%5d%3d-i.yaml
(1.65 KB)
📄
%5b%5d-c.yaml
(367 B)
📄
%5b%5d-i.yaml
(1.47 KB)
📄
%7c-i.yaml
(550 B)
ðŸ“
..
📄
abbrev-i.yaml
(747 B)
📄
assoc-i.yaml
(949 B)
📄
at-i.yaml
(708 B)
📄
cdesc-Array.yaml
(5.07 KB)
📄
choice-i.yaml
(269 B)
📄
clear-i.yaml
(421 B)
📄
collect%21-i.yaml
(704 B)
📄
collect-i.yaml
(784 B)
📄
combination-i.yaml
(1.11 KB)
📄
compact%21-i.yaml
(583 B)
📄
compact-i.yaml
(502 B)
📄
concat-i.yaml
(485 B)
📄
count-i.yaml
(654 B)
📄
cycle-i.yaml
(713 B)
📄
dclone-i.yaml
(165 B)
📄
delete-i.yaml
(916 B)
📄
delete_at-i.yaml
(624 B)
📄
delete_if-i.yaml
(511 B)
📄
drop-i.yaml
(428 B)
📄
drop_while-i.yaml
(533 B)
📄
each-i.yaml
(588 B)
📄
each_index-i.yaml
(609 B)
📄
empty%3f-i.yaml
(372 B)
📄
eql%3f-i.yaml
(357 B)
📄
fetch-i.yaml
(918 B)
📄
fill-i.yaml
(1.42 KB)
📄
find_index-i.yaml
(843 B)
📄
first-i.yaml
(694 B)
📄
flatten%21-i.yaml
(749 B)
📄
flatten-i.yaml
(898 B)
📄
frozen%3f-i.yaml
(326 B)
📄
hash-i.yaml
(360 B)
📄
include%3f-i.yaml
(585 B)
📄
index-i.yaml
(833 B)
📄
indexes-i.yaml
(341 B)
📄
indices-i.yaml
(341 B)
📄
initialize_copy-i.yaml
(712 B)
📄
insert-i.yaml
(604 B)
📄
inspect-i.yaml
(276 B)
📄
join-i.yaml
(561 B)
📄
last-i.yaml
(502 B)
📄
length-i.yaml
(407 B)
📄
map%21-i.yaml
(696 B)
📄
map-i.yaml
(776 B)
📄
new-c.yaml
(1.19 KB)
📄
nitems-i.yaml
(424 B)
📄
pack-i.yaml
(4.52 KB)
📄
permutation-i.yaml
(1.33 KB)
📄
pop-i.yaml
(748 B)
📄
pretty_print-i.yaml
(178 B)
📄
pretty_print_cycle-i.yaml
(190 B)
📄
product-i.yaml
(810 B)
📄
push-i.yaml
(647 B)
📄
rassoc-i.yaml
(729 B)
📄
reject%21-i.yaml
(455 B)
📄
reject-i.yaml
(336 B)
📄
replace-i.yaml
(696 B)
📄
reverse%21-i.yaml
(513 B)
📄
reverse-i.yaml
(505 B)
📄
reverse_each-i.yaml
(573 B)
📄
rindex-i.yaml
(727 B)
📄
select-i.yaml
(586 B)
📄
shelljoin-i.yaml
(414 B)
📄
shift-i.yaml
(959 B)
📄
shuffle%21-i.yaml
(290 B)
📄
shuffle-i.yaml
(425 B)
📄
size-i.yaml
(217 B)
📄
slice%21-i.yaml
(981 B)
📄
slice-i.yaml
(1.48 KB)
📄
sort%21-i.yaml
(903 B)
📄
sort-i.yaml
(939 B)
📄
take-i.yaml
(391 B)
📄
take_while-i.yaml
(503 B)
📄
to_a-i.yaml
(322 B)
📄
to_ary-i.yaml
(248 B)
📄
to_s-i.yaml
(397 B)
📄
to_yaml-i.yaml
(178 B)
📄
transpose-i.yaml
(443 B)
📄
uniq%21-i.yaml
(632 B)
📄
uniq-i.yaml
(485 B)
📄
unshift-i.yaml
(604 B)
📄
values_at-i.yaml
(620 B)
📄
yaml_initialize-i.yaml
(193 B)
📄
zip-i.yaml
(1019 B)
Editing: pack-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Packs the contents of <em>arr</em> into a binary sequence according to the directives in <em>aTemplateString</em> (see the table below) Directives ``A,'' ``a,'' and ``Z'' may be followed by a count, which gives the width of the resulting field. The remaining directives also may take a count, indicating the number of array elements to convert. If the count is an asterisk (``<tt>*</tt>''), all remaining array elements will be converted. Any of the directives ``<tt>sSiIlL</tt>'' may be followed by an underscore (``<tt>_</tt>'') to use the underlying platform's native size for the specified type; otherwise, they use a platform-independent size. Spaces are ignored in the template string. See also <tt>String#unpack</tt>. - !ruby/struct:SM::Flow::VERB body: " a = [ "a", "b", "c" ]\n n = [ 65, 66, 67 ]\n a.pack("A3A3A3") #=> "a b c "\n a.pack("a3a3a3") #=> "a\\000\\000b\\000\\000c\\000\\000"\n n.pack("ccc") #=> "ABC"\n" - !ruby/struct:SM::Flow::P body: Directives for <tt>pack</tt>. - !ruby/struct:SM::Flow::VERB body: " Integer | Array |\n Directive | Element | Meaning\n ------------------------------------------------------------------------\n C | Integer | 8-bit unsigned integer (unsigned char)\n S | Integer | 16-bit unsigned integer, native endian (uint16_t)\n L | Integer | 32-bit unsigned integer, native endian (uint32_t)\n Q | Integer | 64-bit unsigned integer, native endian (uint64_t)\n | |\n c | Integer | 8-bit signed integer (char)\n s | Integer | 16-bit signed integer, native endian (int16_t)\n l | Integer | 32-bit signed integer, native endian (int32_t)\n q | Integer | 64-bit signed integer, native endian (int64_t)\n | |\n S_ | Integer | unsigned short, native endian\n I, I_ | Integer | unsigned int, native endian\n L_ | Integer | unsigned long, native endian\n | |\n s_ | Integer | signed short, native endian\n i, i_ | Integer | signed int, native endian\n l_ | Integer | signed long, native endian\n | |\n n | Integer | 16-bit unsigned integer, network (big-endian) byte order\n N | Integer | 32-bit unsigned integer, network (big-endian) byte order\n v | Integer | 16-bit unsigned integer, VAX (little-endian) byte order\n V | Integer | 32-bit unsigned integer, VAX (little-endian) byte order\n | |\n U | Integer | UTF-8 character\n w | Integer | BER-compressed integer\n\n Float | |\n Directive | | Meaning\n ------------------------------------------------------------------------\n D, d | Float | double-precision float, native format\n F, f | Float | single-precision float, native format\n E | Float | double-precision float, little-endian byte order\n e | Float | single-precision float, little-endian byte order\n G | Float | double-precision float, network (big-endian) byte order\n g | Float | single-precision float, network (big-endian) byte order\n\n String | |\n Directive | | Meaning\n ------------------------------------------------------------------------\n A | String | arbitrary binary string (space padded, count is width)\n a | String | arbitrary binary string (null padded, count is width)\n Z | String | same as ``a'', except that null is added with *\n B | String | bit string (MSB first)\n b | String | bit string (LSB first)\n H | String | hex string (high nibble first)\n h | String | hex string (low nibble first)\n u | String | UU-encoded string\n M | String | quoted printable, MIME encoding (see RFC2045)\n m | String | base64 encoded string (see RFC 2045, count is width)\n P | String | pointer to a structure (fixed-length string)\n p | String | pointer to a null-terminated string\n\n Misc. | |\n Directive | | Meaning\n ------------------------------------------------------------------------\n @ | --- | moves to absolute position\n X | --- | back up a byte\n x | --- | null byte\n" full_name: Array#pack is_singleton: false name: pack params: | arr.pack ( aTemplateString ) -> aBinaryString visibility: public
Upload File
Create Folder