Nobuyoshi Nakada
1589add171
[DOC] Move packed_data from rdoc to markdown
...
To use tables mainly.
2026-05-31 17:32:47 +09:00
Stan Lo
4cd6661e18
Reorganize page documentations ( #15154 )
...
Re-organize page docs
2025-11-27 20:12:24 +00:00
BurdetteLamar
43e26d02df
[DOC] Tweaks for String#unpack
2025-11-16 13:26:11 -08:00
BurdetteLamar
00521434a4
[DOC] Tweaks for String#unpack1
2025-11-16 13:24:48 -08:00
Nobuyoshi Nakada
65a0795c3f
[DOC] Mention block mode of String#unpack
2024-09-29 19:09:59 +09:00
Koichi Sasada
9180e33ca3
show warning for unused block
...
With verbopse mode (-w), the interpreter shows a warning if
a block is passed to a method which does not use the given block.
Warning on:
* the invoked method is written in C
* the invoked method is not `initialize`
* not invoked with `super`
* the first time on the call-site with the invoked method
(`obj.foo{}` will be warned once if `foo` is same method)
[Feature #15554 ]
`Primitive.attr! :use_block` is introduced to declare that primitive
functions (written in C) will use passed block.
For minitest, test needs some tweak, so use
https://github.com/minitest/minitest/commit/ea9caafc0754b1d6236a490d59e624b53209734a
for `test-bundled-gems`.
2024-04-15 12:08:07 +09:00
Burdette Lamar and Peter Zhu
d67b6310d3
[DOC] Link to packed data doc ( #6567 )
...
* Link to packed data doc
* Update pack.rb
Co-authored-by: Peter Zhu <peter@peterzhu.ca >
* Update pack.rb
Co-authored-by: Peter Zhu <peter@peterzhu.ca >
* Update pack.rb
Co-authored-by: Peter Zhu <peter@peterzhu.ca >
Co-authored-by: Peter Zhu <peter@peterzhu.ca >
2022-10-18 10:16:22 -05:00
Burdette Lamar
f918f6e4e7
[DOC] Repair format and links in What's Here sections ( #5711 )
...
* Repair format and links in What's Here for Comparable and Array
* Repair format for What's Here in enum.c
2022-03-25 10:52:06 -05:00
Victor Shepelev
0b999bef29
[DOC] Fix String#unpack and #unpack1 docs ( #5331 )
2021-12-23 21:58:13 +01:00
Jean Boussier
e5319dc985
pack.c: add an offset argument to unpack and unpack1
...
[Feature #18254 ]
This is useful to avoid repeteadly copying strings when parsing binary formats
2021-10-26 22:27:30 +02:00
Tanaka Akira
b74f9d656a
add example for buffer: argument of pack.
2021-10-25 12:25:13 +09:00
Marcus Stollsteimer
3108ad7bf3
[DOC] Fix grammar: "is same as" -> "is the same as"
2021-01-05 15:13:53 +01:00
Nobuyoshi Nakada
0f37f384d4
[DOC] Fixed a typo [ci skip]
2020-11-16 22:14:59 +09:00
Nobuyoshi Nakada
63aadc237f
[Feature #16254 ] Use Primitive.func style
2020-06-19 18:46:55 +09:00
Nobuyoshi Nakada
d863f4bccd
[Feature #16254 ] Use __builtin.func style
2020-06-19 18:46:55 +09:00
Yusuke Endoh
a3141e3c76
Rubified the APIs of pack.c
2019-11-08 23:51:51 +09:00