Class: ImgToScript::AbstractToken::DataRead

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

Overview

Read value(s) from an array of constants.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(var_list:) ⇒ DataRead

Returns a new instance of DataRead.



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

def initialize(var_list:, **)
  @type = AbsTokenType::DATA_READ
  @var_list = Array(var_list)

  super
end

Instance Attribute Details

#var_listObject (readonly)

Returns the value of attribute var_list.



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

def var_list
  @var_list
end