class I18nChecker::Cache::File
Attributes
file[R]
lines[R]
Public Class Methods
new(file, lines)
click to toggle source
# File lib/i18n_checker/cache.rb, line 34 def initialize(file, lines) @file = file @lines = lines end
of(file)
click to toggle source
# File lib/i18n_checker/cache.rb, line 29 def of(file) new(file, Lines.of(::File.read(file))) end
Public Instance Methods
[](scope)
click to toggle source
# File lib/i18n_checker/cache.rb, line 39 def [](scope) lines[scope] end
to_s()
click to toggle source
# File lib/i18n_checker/cache.rb, line 43 def to_s lines.to_s end