class I18nChecker::Cache::Line

Attributes

content[R]
line[R]

Public Class Methods

new(line_number, content) click to toggle source
# File lib/i18n_checker/cache.rb, line 101
def initialize(line_number, content)
  @line = line_number
  @content = content
end

Public Instance Methods

[](range) click to toggle source
# File lib/i18n_checker/cache.rb, line 106
def [](range)
  columns_of(range)
end
columns_of(range) click to toggle source
# File lib/i18n_checker/cache.rb, line 110
def columns_of(range)
  content[range.first - 1, range.last]
end
start_of(text, at = 0) click to toggle source
# File lib/i18n_checker/cache.rb, line 114
def start_of(text, at = 0)
  content.index(text, at)
end
to_s() click to toggle source
# File lib/i18n_checker/cache.rb, line 118
def to_s
  content
end