Class: ElseAction

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

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 included from ObjectX

#action_to_object, #object_create, #varify

Methods inherited from MacroObject

#to_h

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={})

  options = {
    constraint_list: ''
  }

  super(options.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