summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-08-26 10:17:12 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2025-08-26 10:17:52 -0700
commit63a99113cdc40ec488142f99f0c4174ad13e6e60 (patch)
treea8da9ec270e3259d4ef798bb4999d098fbd91fbc
parent238aaa4cda14add04f7ecb4ff6fc52719589e89d (diff)
ZJIT: Avoid documenting internal methods
A different doc-test fix from 238aaa4cda14add04f7ecb4ff6fc52719589e89d. They're not supposed to be public in the first place.
-rw-r--r--zjit.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/zjit.rb b/zjit.rb
index 3da68b380d..b20c110046 100644
--- a/zjit.rb
+++ b/zjit.rb
@@ -61,7 +61,14 @@ class << RubyVM::ZJIT
buf
end
- # Outputs counters into +buf+.
+ # Assert that any future ZJIT compilation will return a function pointer
+ def assert_compiles # :nodoc:
+ Primitive.rb_zjit_assert_compiles
+ end
+
+ # :stopdoc:
+ private
+
def print_counters(keys, buf:, stats:)
left_pad = keys.map(&:size).max + 1
keys.each do |key|
@@ -83,7 +90,6 @@ class << RubyVM::ZJIT
end
end
- # Similar to #print_counters but only includes keys that start with +prefix+.
def print_counters_with_prefix(buf:, stats:, prefix:, prompt:)
keys = stats.keys.select { |key| key.start_with?(prefix) && stats[key] > 0 }
unless keys.empty?
@@ -92,14 +98,6 @@ class << RubyVM::ZJIT
end
end
- # Assert that any future ZJIT compilation will return a function pointer
- def assert_compiles # :nodoc:
- Primitive.rb_zjit_assert_compiles
- end
-
- # :stopdoc:
- private
-
def number_with_delimiter(number)
s = number.to_s
i = s.index('.') || s.size