Yukihiro "Matz" Matsumoto
727f2485c9
Merge pull request #2999 from sagmor/better-docs
...
More Docs
2015-10-22 07:10:16 +09:00
Yukihiro "Matz" Matsumoto
48771a357c
loop() to return StopIteration#result; [ruby-bugs#11498]
2015-10-21 21:47:43 +09:00
Seba Gamboa
13b552538a
Remove obvious warnings from docs
2015-10-20 12:48:31 -03:00
Yukihiro "Matz" Matsumoto
418eec2c7d
remove a comment that no longer be true; 2cb6c27
2015-09-23 00:01:39 +09:00
Yukihiro "Matz" Matsumoto
2cb6c27781
String#index should no longer take integer argument
2015-09-22 19:10:48 +09:00
takahashim
f1c23a0f75
support String#[]= with 3 args
2015-09-16 18:50:03 +09:00
Yukihiro "Matz" Matsumoto
698b3c925d
add Hash#rehash to handle key modification; ref #2945
2015-09-10 23:03:53 +09:00
Yukihiro "Matz" Matsumoto
74696ffd96
Float << and >> should be more compatible to Fixnum
2015-09-02 22:29:01 +09:00
go.kikuta
85f0dd7da0
enum.rb: refactor code (remove redundant code)
2015-08-21 14:56:49 +09:00
go.kikuta
931a7223e6
array.rb: refactor (use onliner code if possible)
2015-08-21 14:56:49 +09:00
go.kikuta
11524f6f67
string.rb: refactor code (remove redundant code)
2015-08-21 14:54:01 +09:00
go.kikuta
cb870de2b5
numeric.rb: refactor code (Avoid using {...} for multi-line blocks, Surrounding space missing in default value assignment)
2015-08-21 14:54:00 +09:00
go.kikuta
cf588bd5cb
range.rb: refactor code (use ! instead of not, use favor modifier if and unless usage when having a single-line body)
2015-08-21 14:54:00 +09:00
go.kikuta
c326f065e1
array.rb: refactor some code
2015-08-19 16:17:06 +09:00
cremno
eec00ccf60
delete duplicate definition of Exception.exception
...
It overwrote the original definition in src/error.c, line 446.
2015-08-17 20:51:25 +02:00
Yukihiro "Matz" Matsumoto
95412aeb50
better hash value from enumerables; fix #2906
2015-08-03 13:24:04 +09:00
Jared Breeden
08c12ab7bf
Don't crash if pattern not found for sub
2015-07-16 15:33:07 -07:00
Franck Verrot
2588507285
Remove unnecessary backticks.
...
Dr Markus Kuhn published in 1999 an article [1] explaining in details
why we shouldn't use the ASCII grave accent (0x60) as a left quotation.
Backticks have been used most notably to produce nice-looking LaTeX
documents but it doesn't seem to be an issue on modern platforms and
for the oldest ones, there are workarounds as mentioned by Dr Kuhn.
[1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2015-06-24 13:07:07 +02:00
Tomoyuki Sahara
5dd2b8e16f
gsub/sub supports back references in substitutes. fixes #2816 .
...
This implementation is compatible with CRuby's String#gsub/sub
except \1 ... \9 and \+. They are useless without Regexp library.
2015-06-08 17:32:14 +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
8aba34301b
String#[]= should support negative position; close #2707
2015-01-19 22:13:34 +09:00
takahashim
bcceeba09b
fix infinite loop in String#match(arg) when arg is String
2015-01-14 02:18:56 +09:00
Yukihiro "Matz" Matsumoto
ef3bbd2e64
avoid block_given? in enum.rb to reduce method calls
2014-12-25 15:59:22 +09:00
TOMITA Masahiro
bbab89e730
Fix: Numeric#step infinite loop.
2014-11-26 01:34:07 +09:00
Hiroshi Mimaki
62c58d3dad
Change mrblib's source path to absolute path
2014-10-02 15:23:10 +09:00
Yukihiro "Matz" Matsumoto
90ba47ccfe
implement attr_reader and attr_writer in C; use cfunc closure to speed-up
2014-09-02 16:41:38 +09:00
Yukihiro "Matz" Matsumoto
7c49d56ce6
attr_reader and attr_writer should return nil
2014-09-01 16:58:04 +09:00
Yukihiro "Matz" Matsumoto
569c7dec5f
move StopIteration to core; close #2518
2014-08-08 16:08:53 +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
d3fda42eb6
Merge pull request #2359 from take-cheeze/src_gen_dep
...
Add generator script to dependency so that it will regenerate C codes when it's modified.
2014-06-06 16:38:11 +09:00
Yukihiro "Matz" Matsumoto
cc28f868f1
remove mrblib/print.rb that only raise NotImplementedError; ref #2354
2014-06-05 22:47:40 +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
take_cheeze
fb3c2f6b08
Add generator script to dependency so that it will regenerate C codes when it's modified.
2014-06-04 22:53:36 +09:00
take_cheeze
acec9d1ff1
Implement NoMethodError#args.
2014-06-02 22:38:02 +09:00
Jun Hiroe
012c32ad0a
Add comments to Hash methods
2014-05-10 18:11:07 +09:00
Yukihiro "Matz" Matsumoto
adea2ca371
Merge pull request #2223 from yui-knk/fix-nameerror
...
Delete unused NameError#new. And add test.
2014-05-10 13:11:00 +09:00
yui-knk
658a00ba49
Change to raise TypeError (Hash#merge, #merge!)
2014-05-10 10:18:15 +09:00
yui-knk
1a00a34cc2
Delete unused NameError#new. And add test.
2014-05-10 01:12:52 +09:00
ksss
d6b4cdb6ac
use Kernel#__send__ insteard of Kernel#send
2014-04-30 22:25:21 +09:00
Nobuyoshi Nakada
ab67c57f65
remove trailing spaces
2014-04-30 09:50:14 +09:00
Yukihiro "Matz" Matsumoto
855a3f5991
re-apply 3644f1b since we have fixed GC bug
2014-04-27 02:52:04 +09:00
Yukihiro "Matz" Matsumoto
b1b3ee4547
revert 3644f1b temporary since it caused SEGV only on Travis-CI
2014-04-26 11:06:53 +09:00
mirichi
3644f1ba36
Refactoring Comparable
2014-04-26 09:37:37 +09:00
mirichi
d2e4937cea
Refactoring Array#__svalue
2014-04-25 21:36:52 +09:00
ksss
209bf256aa
Range#each fixnums are special
2014-04-24 13:53:54 +00:00
Yukihiro "Matz" Matsumoto
3308177c4d
retrieve values in Hash#each to handle modified keys
2014-04-12 10:42:02 +09:00
Yukihiro "Matz" Matsumoto
4e2ae3e376
Hash#replace should copy default from original even when the default value of the original is not set
2014-04-07 02:02:53 +09:00
Yukihiro "Matz" Matsumoto
59cd24d41f
Hash#replace should copy default as well; close #2004
2014-04-04 12:14:23 +09:00
Yukihiro "Matz" Matsumoto
b9a4d64064
implement Hash#initialize in C
2014-04-04 11:03:26 +09:00