Class: ElseIfConditionAction

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

Returns a new instance of ElseIfConditionAction.



411
412
413
414
415
416
417
418
419
420
# File 'lib/ruby-macrodroid/actions.rb', line 411

def initialize(h={})

  options = {
    constraint_list: ''
  }

  super(options.merge h)
  @label = 'Else If '

end

Instance Method Details

#to_s(colour: false) ⇒ Object



422
423
424
425
# File 'lib/ruby-macrodroid/actions.rb', line 422

def to_s(colour: false)
  @s = 'Else If '
  super()
end