Class: ReVIEW::Repository
- Includes:
- ErrorUtils, TextUtils
- Defined in:
- lib/review/preprocessor.rb
Instance Method Summary collapse
- #fetch(file, type, name) ⇒ Object
- #fetch_file(file) ⇒ Object
- #fetch_range(file, name) ⇒ Object
-
#initialize(param) ⇒ Repository
constructor
A new instance of Repository.
Methods included from ErrorUtils
#error, #filename, #init_ErrorUtils, #lineno, #location, #warn
Methods included from TextUtils
#convert_inencoding, #convert_outencoding, #detab, #split_paragraph
Constructor Details
#initialize(param) ⇒ Repository
Returns a new instance of Repository.
419 420 421 422 |
# File 'lib/review/preprocessor.rb', line 419 def initialize(param) @repository = {} @param = param end |
Instance Method Details
#fetch(file, type, name) ⇒ Object
432 433 434 435 |
# File 'lib/review/preprocessor.rb', line 432 def fetch(file, type, name) table = file_descripter(file)[type] or return nil table[name] end |
#fetch_file(file) ⇒ Object
424 425 426 |
# File 'lib/review/preprocessor.rb', line 424 def fetch_file(file) file_descripter(file)['file'] end |
#fetch_range(file, name) ⇒ Object
428 429 430 |
# File 'lib/review/preprocessor.rb', line 428 def fetch_range(file, name) fetch(file, 'range', name) end |