Class: EndIfAction
- Inherits:
-
Action
- Object
- MacroObject
- Action
- EndIfAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(obj = {}) ⇒ EndIfAction
constructor
A new instance of EndIfAction.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(obj = {}) ⇒ EndIfAction
Returns a new instance of EndIfAction.
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 |
# File 'lib/ruby-macrodroid/actions.rb', line 658 def initialize(obj={}) h = if obj.is_a? Hash then obj elsif obj.is_a? Rexle::Element {} else {} end = { constraint_list: [] } super() end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
677 678 679 |
# File 'lib/ruby-macrodroid/actions.rb', line 677 def to_s(colour: false, indent: 0) 'End If' end |