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.
382
383
384
385
|
# File 'lib/review/preprocessor.rb', line 382
def initialize(param)
@repository = {}
@config = param
end
|
Instance Method Details
#fetch(file, type, name) ⇒ Object
395
396
397
398
|
# File 'lib/review/preprocessor.rb', line 395
def fetch(file, type, name)
table = file_descripter(file)[type] or return nil
table[name]
end
|
#fetch_file(file) ⇒ Object
387
388
389
|
# File 'lib/review/preprocessor.rb', line 387
def fetch_file(file)
file_descripter(file)['file']
end
|
#fetch_range(file, name) ⇒ Object
391
392
393
|
# File 'lib/review/preprocessor.rb', line 391
def fetch_range(file, name)
fetch(file, 'range', name)
end
|