Class: EndIfAction

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

Returns a new instance of EndIfAction.



433
434
435
436
437
438
439
440
441
# File 'lib/ruby-macrodroid/actions.rb', line 433

def initialize(h={})

  options = {
    constraint_list: ''
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object



443
444
445
# File 'lib/ruby-macrodroid/actions.rb', line 443

def to_s(colour: false)
  'End If'
end