Class: ImgToScript::AbstractToken::DataStore
- Inherits:
-
ImgToScript::AbstractToken
- Object
- ImgToScript::AbstractToken
- ImgToScript::AbstractToken::DataStore
- Defined in:
- lib/img_to_script/abstract_token/data_store.rb
Overview
Store array of contants.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data:) ⇒ DataStore
constructor
A new instance of DataStore.
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
#data ⇒ Object (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 |