aboutsummaryrefslogtreecommitdiffstats
path: root/kernel.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-31 15:52:32 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-19 18:46:55 +0900
commit63aadc237f48be23803acae724401f8b4221fa38 (patch)
tree96ea77c66f42685bacacca4e69ac64139d93620d /kernel.rb
parent49f0fd21e468e567dc122547d516eef42c0ce0d3 (diff)
downloadruby-63aadc237f48be23803acae724401f8b4221fa38.tar.gz
[Feature #16254] Use `Primitive.func` style
Diffstat (limited to 'kernel.rb')
-rw-r--r--kernel.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel.rb b/kernel.rb
index e4bee9b8a8..e7d955fe45 100644
--- a/kernel.rb
+++ b/kernel.rb
@@ -24,7 +24,7 @@ module Kernel
# the class.
#
def clone(freeze: nil)
- __builtin.rb_obj_clone2(freeze)
+ Primitive.rb_obj_clone2(freeze)
end
module_function
@@ -48,6 +48,6 @@ module Kernel
# Float("123.0_badstring", exception: false) #=> nil
#
def Float(arg, exception: true)
- __builtin.rb_f_float(arg, exception)
+ Primitive.rb_f_float(arg, exception)
end
end