Class: LoopAction

Inherits:
Action show all
Defined in:
lib/ruby-macrodroid/actions.rb

Overview

Conditions/Loops

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ LoopAction

Returns a new instance of LoopAction.



308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/ruby-macrodroid/actions.rb', line 308

def initialize(h={})
  
  options = {

  }
  
  h2 = options.merge(h)

  super(h2)
  
  @label = 'WHILE / DO '

end

Instance Method Details

#to_s(colour: false) ⇒ Object



322
323
324
325
326
327
# File 'lib/ruby-macrodroid/actions.rb', line 322

def to_s(colour: false)
  
  @s = 'WHILE / DO '
  super()
  
end