Class: IsRootedConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- IsRootedConstraint
- Defined in:
- lib/ruby-macrodroid.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) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ IsRootedConstraint
Returns a new instance of IsRootedConstraint.
5411 5412 5413 5414 5415 5416 5417 5418 5419 |
# File 'lib/ruby-macrodroid.rb', line 5411 def initialize(h={}) = { rooted: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5421 5422 5423 |
# File 'lib/ruby-macrodroid.rb', line 5421 def to_s(colour: false) 'IsRootedConstraint ' + @h.inspect end |