Class: ImgToScript::AbstractToken::LoopEnd

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

Overview

Marks loop end.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(var_name:) ⇒ LoopEnd

Returns a new instance of LoopEnd.



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

def initialize(var_name:, **)
  @var_name = var_name
  @type = AbsTokenType::LOOP_END

  super
end

Instance Attribute Details

#var_nameObject (readonly)

Returns the value of attribute var_name.



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

def var_name
  @var_name
end