Class: IsRootedConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- IsRootedConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Device State
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ IsRootedConstraint
constructor
A new instance of IsRootedConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ IsRootedConstraint
Returns a new instance of IsRootedConstraint.
752 753 754 755 756 757 758 759 760 |
# File 'lib/ruby-macrodroid/constraints.rb', line 752 def initialize(h={}) = { rooted: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
762 763 764 |
# File 'lib/ruby-macrodroid/constraints.rb', line 762 def to_s(colour: false, indent: 0) 'IsRootedConstraint ' + @h.inspect end |