mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Sync RDoc 6.14.0
This commit is contained in:
parent
ca1ea95784
commit
03eb777c69
185 changed files with 2008 additions and 1655 deletions
|
@ -86,12 +86,10 @@ class RDoc::Generator::JsonIndex
|
|||
attr_reader :index # :nodoc:
|
||||
|
||||
##
|
||||
# Creates a new generator. +parent_generator+ is used to determine the
|
||||
# class_dir and file_dir of links in the output index.
|
||||
#
|
||||
# Creates a new generator.
|
||||
# +options+ are the same options passed to the parent generator.
|
||||
|
||||
def initialize parent_generator, options
|
||||
def initialize(parent_generator, options)
|
||||
@parent_generator = parent_generator
|
||||
@store = parent_generator.store
|
||||
@options = options
|
||||
|
@ -265,21 +263,7 @@ class RDoc::Generator::JsonIndex
|
|||
end
|
||||
end
|
||||
|
||||
##
|
||||
# The directory classes are written to
|
||||
|
||||
def class_dir
|
||||
@parent_generator.class_dir
|
||||
end
|
||||
|
||||
##
|
||||
# The directory files are written to
|
||||
|
||||
def file_dir
|
||||
@parent_generator.file_dir
|
||||
end
|
||||
|
||||
def reset files, classes # :nodoc:
|
||||
def reset(files, classes) # :nodoc:
|
||||
@files = files
|
||||
@classes = classes
|
||||
|
||||
|
@ -293,7 +277,7 @@ class RDoc::Generator::JsonIndex
|
|||
##
|
||||
# Removes whitespace and downcases +string+
|
||||
|
||||
def search_string string
|
||||
def search_string(string)
|
||||
string.downcase.gsub(/\s/, '')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue