Class: I18nLinter::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_linter/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, line, string) ⇒ Result



9
10
11
12
13
# File 'lib/i18n_linter/result.rb', line 9

def initialize(filename, line, string)
  @filename = filename
  @line = line
  @string = string
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



5
6
7
# File 'lib/i18n_linter/result.rb', line 5

def filename
  @filename
end

#lineObject (readonly)

Returns the value of attribute line.



6
7
8
# File 'lib/i18n_linter/result.rb', line 6

def line
  @line
end

#stringObject (readonly)

Returns the value of attribute string.



7
8
9
# File 'lib/i18n_linter/result.rb', line 7

def string
  @string
end