Class: ElseAction
- Inherits:
-
Action
- Object
- MacroObject
- Action
- ElseAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ElseAction
constructor
A new instance of ElseAction.
- #to_s(colour: false, indent: 0) ⇒ Object
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ElseAction
Returns a new instance of ElseAction.
479 480 481 482 483 484 485 486 487 488 |
# File 'lib/ruby-macrodroid/actions.rb', line 479 def initialize(h={}) = { constraint_list: '' } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object
490 491 492 |
# File 'lib/ruby-macrodroid/actions.rb', line 490 def to_s(colour: false, indent: 0) 'Else' end |