[ruby/rdoc] [DOC] nodoc for probably internal methods
https://github.com/ruby/rdoc/commit/f7dd147a8c
This commit is contained in:
parent
e15d690db1
commit
20f4f00764
@ -81,6 +81,7 @@ class RDoc::Generator::POT
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :nodoc:
|
||||||
def class_dir
|
def class_dir
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
@ -138,6 +138,7 @@ class RDoc::Markup::AttributeManager
|
|||||||
res
|
res
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :nodoc:
|
||||||
def exclusive?(attr)
|
def exclusive?(attr)
|
||||||
(attr & @exclusive_bitmap) != 0
|
(attr & @exclusive_bitmap) != 0
|
||||||
end
|
end
|
||||||
@ -155,6 +156,7 @@ class RDoc::Markup::AttributeManager
|
|||||||
convert_attrs_word_pair_map(str, attrs, exclusive)
|
convert_attrs_word_pair_map(str, attrs, exclusive)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :nodoc:
|
||||||
def convert_attrs_matching_word_pairs(str, attrs, exclusive)
|
def convert_attrs_matching_word_pairs(str, attrs, exclusive)
|
||||||
# first do matching ones
|
# first do matching ones
|
||||||
tags = @matching_word_pairs.select { |start, bitmap|
|
tags = @matching_word_pairs.select { |start, bitmap|
|
||||||
@ -179,6 +181,7 @@ class RDoc::Markup::AttributeManager
|
|||||||
str.delete!(NON_PRINTING_START + NON_PRINTING_END)
|
str.delete!(NON_PRINTING_START + NON_PRINTING_END)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :nodoc:
|
||||||
def convert_attrs_word_pair_map(str, attrs, exclusive)
|
def convert_attrs_word_pair_map(str, attrs, exclusive)
|
||||||
# then non-matching
|
# then non-matching
|
||||||
unless @word_pair_map.empty? then
|
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
|
# A simple wrapper of StringScanner that is aware of the current column and lineno
|
||||||
|
|
||||||
class MyStringScanner
|
class MyStringScanner
|
||||||
|
# :stopdoc:
|
||||||
|
|
||||||
def initialize(input)
|
def initialize(input)
|
||||||
@line = @column = 0
|
@line = @column = 0
|
||||||
@s = StringScanner.new input
|
@s = StringScanner.new input
|
||||||
@ -456,6 +458,8 @@ class RDoc::Markup::Parser
|
|||||||
def [](i)
|
def [](i)
|
||||||
@s[i]
|
@s[i]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#:startdoc:
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -17,6 +17,7 @@ class RDoc::Markup::Table
|
|||||||
@header, @align, @body = header, align, body
|
@header, @align, @body = header, align, body
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :stopdoc:
|
||||||
def == other
|
def == other
|
||||||
self.class == other.class and
|
self.class == other.class and
|
||||||
@header == other.header and
|
@header == other.header and
|
||||||
@ -28,7 +29,7 @@ class RDoc::Markup::Table
|
|||||||
visitor.accept_table @header, @body, @align
|
visitor.accept_table @header, @body, @align
|
||||||
end
|
end
|
||||||
|
|
||||||
def pretty_print q # :nodoc:
|
def pretty_print q
|
||||||
q.group 2, '[Table: ', ']' do
|
q.group 2, '[Table: ', ']' do
|
||||||
q.group 2, '[Head: ', ']' do
|
q.group 2, '[Head: ', ']' do
|
||||||
q.seplist @header.zip(@align) do |text, align|
|
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.
|
# 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
|
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
|
@cross_reference = RDoc::CrossReference.new @context
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :nodoc:
|
||||||
def init_link_notation_regexp_handlings
|
def init_link_notation_regexp_handlings
|
||||||
add_regexp_handling_RDOCLINK
|
add_regexp_handling_RDOCLINK
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ require 'ripper'
|
|||||||
# Wrapper for Ripper lex states
|
# Wrapper for Ripper lex states
|
||||||
|
|
||||||
class RDoc::Parser::RipperStateLex
|
class RDoc::Parser::RipperStateLex
|
||||||
|
# :stopdoc:
|
||||||
|
|
||||||
# TODO: Remove this constants after Ruby 2.4 EOL
|
# TODO: Remove this constants after Ruby 2.4 EOL
|
||||||
RIPPER_HAS_LEX_STATE = Ripper::Filter.method_defined?(:state)
|
RIPPER_HAS_LEX_STATE = Ripper::Filter.method_defined?(:state)
|
||||||
|
|
||||||
@ -568,6 +570,8 @@ class RDoc::Parser::RipperStateLex
|
|||||||
tk
|
tk
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# :startdoc:
|
||||||
|
|
||||||
# New lexer for +code+.
|
# New lexer for +code+.
|
||||||
def initialize(code)
|
def initialize(code)
|
||||||
@buf = []
|
@buf = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user