Class: ImgToScript::AbstractToken::Remark

Inherits:
ImgToScript::AbstractToken show all
Defined in:
lib/img_to_script/abstract_token/remark.rb

Overview

Remark - a comment.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (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