Class: Liquid::Token
Instance Attribute Summary collapse
-
#line_number ⇒ Object
readonly
Returns the value of attribute line_number.
Instance Method Summary collapse
- #child(string) ⇒ Object
-
#initialize(content, line_number) ⇒ Token
constructor
A new instance of Token.
- #raw ⇒ Object
Methods inherited from String
Constructor Details
#initialize(content, line_number) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'lib/liquid/token.rb', line 5 def initialize(content, line_number) super(content) @line_number = line_number end |
Instance Attribute Details
#line_number ⇒ Object (readonly)
Returns the value of attribute line_number.
3 4 5 |
# File 'lib/liquid/token.rb', line 3 def line_number @line_number end |