diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-18 10:43:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-19 18:46:55 +0900 |
commit | d863f4bccdd1b5566fbdbe87af766e54b995f8af (patch) | |
tree | 23f94a6dd5296847446a240615e2bc393457bf1d /array.rb | |
parent | c8703a17ceedae4a72f83c962a4d098731a85dda (diff) |
[Feature #16254] Use `__builtin.func` style
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3165
Diffstat (limited to 'array.rb')
-rw-r--r-- | array.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,7 +13,7 @@ class Array # # a.shuffle!(random: Random.new(1)) #=> [1, 3, 2] def shuffle!(random: Random) - __builtin_rb_ary_shuffle_bang(random) + __builtin.rb_ary_shuffle_bang(random) end # call-seq: @@ -30,7 +30,7 @@ class Array # # a.shuffle(random: Random.new(1)) #=> [1, 3, 2] def shuffle(random: Random) - __builtin_rb_ary_shuffle(random) + __builtin.rb_ary_shuffle(random) end # call-seq: @@ -57,6 +57,6 @@ class Array # a.sample(random: Random.new(1)) #=> 6 # a.sample(4, random: Random.new(1)) #=> [6, 10, 9, 2] def sample(n = (ary = false), random: Random) - __builtin_rb_ary_sample(random, n, ary) + __builtin.rb_ary_sample(random, n, ary) end end |