aboutsummaryrefslogtreecommitdiffstats
path: root/pack.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-18 10:43:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-19 18:46:55 +0900
commitd863f4bccdd1b5566fbdbe87af766e54b995f8af (patch)
tree23f94a6dd5296847446a240615e2bc393457bf1d /pack.rb
parentc8703a17ceedae4a72f83c962a4d098731a85dda (diff)
downloadruby-d863f4bccdd1b5566fbdbe87af766e54b995f8af.tar.gz
[Feature #16254] Use `__builtin.func` style
Diffstat (limited to 'pack.rb')
-rw-r--r--pack.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/pack.rb b/pack.rb
index 3f921a93dd..53d06b9699 100644
--- a/pack.rb
+++ b/pack.rb
@@ -131,7 +131,7 @@ class Array
# X | --- | back up a byte
# x | --- | null byte
def pack(fmt, buffer: nil)
- __builtin_pack_pack(fmt, buffer)
+ __builtin.pack_pack(fmt, buffer)
end
end
@@ -254,7 +254,7 @@ class String
# * Q_, Q!, q_, and q! are available since Ruby 2.1.
# * I!<, i!<, I!>, and i!> are available since Ruby 1.9.3.
def unpack(fmt)
- __builtin_pack_unpack(fmt)
+ __builtin.pack_unpack(fmt)
end
# call-seq:
@@ -278,6 +278,6 @@ class String
# Thus unpack1 is convenient, makes clear the intention and signals
# the expected return value to those reading the code.
def unpack1(fmt)
- __builtin_pack_unpack1(fmt)
+ __builtin.pack_unpack1(fmt)
end
end