Class: ImgToScript::AbstractToken::Remark
- Inherits:
-
ImgToScript::AbstractToken
- Object
- ImgToScript::AbstractToken
- ImgToScript::AbstractToken::Remark
- Defined in:
- lib/img_to_script/abstract_token/remark.rb
Overview
Remark - a comment.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:) ⇒ Remark
constructor
A new instance of Remark.
Constructor Details
#initialize(text:) ⇒ Remark
Returns a new instance of Remark.
11 12 13 14 15 16 |
# File 'lib/img_to_script/abstract_token/remark.rb', line 11 def initialize(text:, **) @type = AbsTokenType::REMARK @text = text super end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
9 10 11 |
# File 'lib/img_to_script/abstract_token/remark.rb', line 9 def text @text end |