summaryrefslogtreecommitdiff
path: root/kernel.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2020-05-31 15:52:32 +0900
committerNobuyoshi Nakada <[email protected]>2020-06-19 18:46:55 +0900
commit63aadc237f48be23803acae724401f8b4221fa38 ()
tree96ea77c66f42685bacacca4e69ac64139d93620d /kernel.rb
parent49f0fd21e468e567dc122547d516eef42c0ce0d3 (diff)
[Feature #16254] Use `Primitive.func` style
Notes: Merged: https://.com/ruby/ruby/pull/3165
-rw-r--r--kernel.rb4
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ module Kernel
# the class.
#
def clone(freeze: nil)
- __builtin.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)
end
end