Yukihiro "Matz" Matsumoto
ec1f9860b1
mrblib: add parentheses to method calls with used return values
...
added parentheses to all `to_enum` and `super` calls where the return
value is used (returned, assigned, or passed to another method). this
makes the code style consistent with the guideline that method calls
should use parentheses when their return values are consumed.
changes:
- return to_enum :symbol -> return to_enum(:symbol)
- return to_enum :symbol, arg -> return to_enum(:symbol, arg)
- super message, name -> super(message, name)
affected files: 10error.rb, array.rb, enum.rb, hash.rb, kernel.rb,
numeric.rb, range.rb
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-11 18:09:06 +09:00
Yukihiro "Matz" Matsumoto
95b30a38dc
kernel.rb: make Kernel#loop private
2025-03-07 17:17:44 +09:00
Yukihiro "Matz" Matsumoto
fc9fffc5b5
kernel.rb (_inspect): _inspect method no longer needed
2023-06-22 23:32:31 +09:00
Yukihiro "Matz" Matsumoto
d605b72c1d
Merge branch 'master' into i110/inspect-recursion
2019-07-17 10:35:41 +09:00
Yukihiro "Matz" Matsumoto
2be42aef0f
Fix ISO/JIS section numbers.
2018-09-01 09:35:46 +09:00
Ichito Nagata
2af92d0ebc
Let inspect recursion do the right thing
2018-06-04 11:25:10 +09:00
Yukihiro "Matz" Matsumoto
48771a357c
loop() to return StopIteration#result; [ruby-bugs#11498]
2015-10-21 21:47:43 +09:00
Yukihiro "Matz" Matsumoto
b05d736b49
update mrblib/*.rb files to conform (some of) Rubocop checks
2015-05-29 17:01:52 +09:00
Yukihiro "Matz" Matsumoto
02b54e5379
avoid block_given? in loop method for simplicity
2015-01-31 10:44:58 +09:00
Yukihiro "Matz" Matsumoto
79fb18445d
rescue SystemStackError that comes from inspecting self-referencing Hashes and Arrays; fix #2461
2014-07-12 23:22:20 +09:00
Yukihiro "Matz" Matsumoto
799c9b30f6
remove eval (that only raises NotImplementedError) from the core; ref #2354
2014-06-05 21:41:28 +09:00
Tomoyuki Sahara
4b4784f96f
rescue StopIteration only.
2014-03-18 19:02:38 +09:00
Yukihiro "Matz" Matsumoto
113ab60784
mruby-enumerator: move definitions in core_mod.rb to mrblib core
2014-03-14 02:41:22 +09:00
Yukihiro "Matz" Matsumoto
3ff9aad22f
move version info from gems to core; ref #576 #1684
2014-02-07 12:18:55 +09:00
Yukihiro "Matz" Matsumoto
5172f4797f
add RUBY_VERSION to notify syntax compatible version
2014-02-05 13:27:30 +09:00
Tomoyuki Sahara
83413218a5
add operator "!~".
2014-01-10 13:41:41 +09:00
h2so5
5a8e76cc7b
Add NotImplementedError for Kernel. and Kernel#
2013-04-09 14:04:58 +09:00
Yukihiro Matsumoto
6f22a61135
__send__ added
2012-06-20 15:42:51 +09:00
Yukihiro Matsumoto
b11d4647e9
ISO conforming lambda
2012-06-20 15:41:22 +09:00
Yukihiro Matsumoto
a74ab0c2da
Kernel.eval to raise NotImplementedError
2012-06-12 23:39:54 +09:00
Yukihiro Matsumoto
b5ffbea4c2
remove Ruby version of Kernel#instance_eval
2012-06-12 18:32:42 +09:00
Yukihiro Matsumoto
30556ad921
remove print and puts from kernel.rb
2012-06-02 00:00:12 +09:00
Yukihiro Matsumoto
2d1f303ec2
remove Ruby define send from kernel.rb
2012-06-01 23:58:09 +09:00
Yuichiro MASUI
481d2874f1
add Kernel#send
2012-06-01 04:39:48 +09:00
Yukihiro Matsumoto
9bed29bf96
define print and printf in mrblib
2012-05-07 17:56:55 +09:00
Daniel Bovensiepen
1906d6eb33
Add ISO mark to Kernel.lambda
2012-05-06 18:28:52 +08:00
Daniel Bovensiepen
580b0267a8
Some fixes for the Documentation of Hash and Kernel
2012-05-06 18:24:39 +08:00
Daniel Bovensiepen
55f143d4e3
Add documentation to Kernel
2012-05-06 18:15:38 +08:00
mimaki
e0d6430f63
add mruby sources
2012-04-20 09:39:03 +09:00