Class: DMark::Tokens::TextToken
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:) ⇒ TextToken
constructor
A new instance of TextToken.
- #to_s ⇒ Object
Constructor Details
#initialize(text:) ⇒ TextToken
Returns a new instance of TextToken.
12 13 14 |
# File 'lib/dmark/tokens.rb', line 12 def initialize(text:) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
10 11 12 |
# File 'lib/dmark/tokens.rb', line 10 def text @text end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/dmark/tokens.rb', line 16 def to_s "Text(#{@text.inspect})" end |