Class: ImgToScript::AbstractToken::Wait

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

Overview

Pause a program run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time:) ⇒ Wait

Returns a new instance of Wait.



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

def initialize(time:, **)
  @type = AbsTokenType::WAIT
  @time = time

  super
end

Instance Attribute Details

#timeObject (readonly)

Returns the value of attribute time.



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

def time
  @time
end