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 inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ElseAction

Returns a new instance of ElseAction.



392
393
394
395
396
397
398
399
400
401
# File 'lib/ruby-macrodroid/actions.rb', line 392

def initialize(h={})

  options = {
    constraint_list: ''
  }

  super(options.merge h)
  

end

Instance Method Details

#to_s(colour: false) ⇒ Object



403
404
405
# File 'lib/ruby-macrodroid/actions.rb', line 403

def to_s(colour: false)
  'Else'
end