Class: LoopAction
- Inherits:
-
Action
- Object
- MacroObject
- Action
- LoopAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Conditions/Loops
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ LoopAction
constructor
A new instance of LoopAction.
- #to_s(colour: false) ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
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={}) = { } h2 = .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 |