Class: I18nLinter::Token

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Token

Returns a new instance of Token.



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

def initialize(token)
  @coords = token[0]
  @type = token[1]
  @content = token[2]
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
end

#coordsObject (readonly)

Returns the value of attribute coords.



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

def coords
  @coords
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end