Class: ImgToScript::AbstractToken::GoTo

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

Overview

Go to BASIC line.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line:) ⇒ GoTo

Returns a new instance of GoTo.



11
12
13
14
15
16
# File 'lib/img_to_script/abstract_token/go_to.rb', line 11

def initialize(line:, **)
  @type = AbsTokenType::GO_TO
  @line = line

  super
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



9
10
11
# File 'lib/img_to_script/abstract_token/go_to.rb', line 9

def line
  @line
end