Class: ImgToScript::AbstractToken::DataStore

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

Overview

Store array of contants.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data:) ⇒ DataStore

Returns a new instance of DataStore.



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

def initialize(data:, **)
  @type = AbsTokenType::DATA_STORE
  @data = Array(data)

  super
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



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

def data
  @data
end