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.
490 491 492 493 494 495 496 497 498 499 |
# File 'lib/ruby-macrodroid/actions.rb', line 490 def initialize(h={}) = { constraint_list: '' } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object
501 502 503 |
# File 'lib/ruby-macrodroid/actions.rb', line 501 def to_s(colour: false, indent: 0) 'Else' end |