Class: ImgToScript::AbstractToken::LoadAndRun

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

Overview

Load and run another script file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename:) ⇒ LoadAndRun

Returns a new instance of LoadAndRun.



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

def initialize(filename:, **)
  @type = AbsTokenType::LOAD_AND_RUN
  @filename = filename

  super
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



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

def filename
  @filename
end