Class: ReVIEW::Repository
Instance Method Summary
collapse
Methods included from ErrorUtils
#error, #filename, #init_errorutils, #lineno, #location, #warn
Methods included from TextUtils
#add_space?, #defer_math_image, #detab, #join_lines_to_paragraph, #split_paragraph
Constructor Details
#initialize(param) ⇒ Repository
324
325
326
327
328
|
# File 'lib/review/preprocessor.rb', line 324
def initialize(param)
@repository = {}
@config = param
@logger = ReVIEW.logger
end
|
Instance Method Details
#fetch(file, type, name) ⇒ Object
338
339
340
341
|
# File 'lib/review/preprocessor.rb', line 338
def fetch(file, type, name)
table = file_descripter(file)[type] or return nil
table[name]
end
|
#fetch_file(file) ⇒ Object
330
331
332
|
# File 'lib/review/preprocessor.rb', line 330
def fetch_file(file)
file_descripter(file)['file']
end
|
#fetch_range(file, name) ⇒ Object
334
335
336
|
# File 'lib/review/preprocessor.rb', line 334
def fetch_range(file, name)
fetch(file, 'range', name)
end
|