Class: ReVIEW::Repository
Instance Method Summary
collapse
Methods included from ErrorUtils
#error, #filename, #init_errorutils, #lineno, #location, #warn
Methods included from TextUtils
#detab, #split_paragraph
Constructor Details
#initialize(param) ⇒ Repository
Returns a new instance of Repository.
345
346
347
348
349
|
# File 'lib/review/preprocessor.rb', line 345
def initialize(param)
@repository = {}
@config = param
@logger = ReVIEW.logger
end
|
Instance Method Details
#fetch(file, type, name) ⇒ Object
359
360
361
362
|
# File 'lib/review/preprocessor.rb', line 359
def fetch(file, type, name)
table = file_descripter(file)[type] or return nil
table[name]
end
|
#fetch_file(file) ⇒ Object
351
352
353
|
# File 'lib/review/preprocessor.rb', line 351
def fetch_file(file)
file_descripter(file)['file']
end
|
#fetch_range(file, name) ⇒ Object
355
356
357
|
# File 'lib/review/preprocessor.rb', line 355
def fetch_range(file, name)
fetch(file, 'range', name)
end
|