[ruby/rdoc] [DOC] nodoc for probably internal methods

https://github.com/ruby/rdoc/commit/f7dd147a8c
This commit is contained in:
Nobuyoshi Nakada 2023-12-15 19:36:07 +09:00
Родитель e15d690db1
Коммит 20f4f00764
7 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -81,6 +81,7 @@ class RDoc::Generator::POT
end
end
# :nodoc:
def class_dir
nil
end

Просмотреть файл

@ -138,6 +138,7 @@ class RDoc::Markup::AttributeManager
res
end
# :nodoc:
def exclusive?(attr)
(attr & @exclusive_bitmap) != 0
end
@ -155,6 +156,7 @@ class RDoc::Markup::AttributeManager
convert_attrs_word_pair_map(str, attrs, exclusive)
end
# :nodoc:
def convert_attrs_matching_word_pairs(str, attrs, exclusive)
# first do matching ones
tags = @matching_word_pairs.select { |start, bitmap|
@ -179,6 +181,7 @@ class RDoc::Markup::AttributeManager
str.delete!(NON_PRINTING_START + NON_PRINTING_END)
end
# :nodoc:
def convert_attrs_word_pair_map(str, attrs, exclusive)
# then non-matching
unless @word_pair_map.empty? then

Просмотреть файл

@ -420,6 +420,8 @@ class RDoc::Markup::Parser
# A simple wrapper of StringScanner that is aware of the current column and lineno
class MyStringScanner
# :stopdoc:
def initialize(input)
@line = @column = 0
@s = StringScanner.new input
@ -456,6 +458,8 @@ class RDoc::Markup::Parser
def [](i)
@s[i]
end
#:startdoc:
end
##

Просмотреть файл

@ -17,6 +17,7 @@ class RDoc::Markup::Table
@header, @align, @body = header, align, body
end
# :stopdoc:
def == other
self.class == other.class and
@header == other.header and
@ -28,7 +29,7 @@ class RDoc::Markup::Table
visitor.accept_table @header, @body, @align
end
def pretty_print q # :nodoc:
def pretty_print q
q.group 2, '[Table: ', ']' do
q.group 2, '[Head: ', ']' do
q.seplist @header.zip(@align) do |text, align|

Просмотреть файл

@ -61,6 +61,7 @@ class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
#
# These methods are used by regexp handling markup added by RDoc::Markup#add_regexp_handling.
# :nodoc:
URL_CHARACTERS_REGEXP_STR = /[A-Za-z0-9\-._~:\/\?#\[\]@!$&'\(\)*+,;%=]/.source
##

Просмотреть файл

@ -42,6 +42,7 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
@cross_reference = RDoc::CrossReference.new @context
end
# :nodoc:
def init_link_notation_regexp_handlings
add_regexp_handling_RDOCLINK

Просмотреть файл

@ -5,6 +5,8 @@ require 'ripper'
# Wrapper for Ripper lex states
class RDoc::Parser::RipperStateLex
# :stopdoc:
# TODO: Remove this constants after Ruby 2.4 EOL
RIPPER_HAS_LEX_STATE = Ripper::Filter.method_defined?(:state)
@ -568,6 +570,8 @@ class RDoc::Parser::RipperStateLex
tk
end
# :startdoc:
# New lexer for +code+.
def initialize(code)
@buf = []