Class: I18nLinter::Token
- Inherits:
-
Object
- Object
- I18nLinter::Token
- Defined in:
- lib/i18n_linter/token.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#coords ⇒ Object
readonly
Returns the value of attribute coords.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(token) ⇒ Token
constructor
A new instance of Token.
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
#content ⇒ Object (readonly)
Returns the value of attribute content.
7 8 9 |
# File 'lib/i18n_linter/token.rb', line 7 def content @content end |
#coords ⇒ Object (readonly)
Returns the value of attribute coords.
5 6 7 |
# File 'lib/i18n_linter/token.rb', line 5 def coords @coords end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/i18n_linter/token.rb', line 6 def type @type end |