Class: I18nChecker::Cache::File
- Inherits:
-
Object
- Object
- I18nChecker::Cache::File
- Defined in:
- lib/i18n_checker/cache.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Class Method Summary collapse
Instance Method Summary collapse
- #[](scope) ⇒ Object
-
#initialize(file, lines) ⇒ File
constructor
A new instance of File.
- #to_s ⇒ Object
Constructor Details
#initialize(file, lines) ⇒ File
Returns a new instance of File.
34 35 36 37 |
# File 'lib/i18n_checker/cache.rb', line 34 def initialize(file, lines) @file = file @lines = lines end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
26 27 28 |
# File 'lib/i18n_checker/cache.rb', line 26 def file @file end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
26 27 28 |
# File 'lib/i18n_checker/cache.rb', line 26 def lines @lines end |
Class Method Details
Instance Method Details
#[](scope) ⇒ Object
39 40 41 |
# File 'lib/i18n_checker/cache.rb', line 39 def [](scope) lines[scope] end |
#to_s ⇒ Object
43 44 45 |
# File 'lib/i18n_checker/cache.rb', line 43 def to_s lines.to_s end |