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.
5397 5398 5399 5400 5401 5402 5403 5404 5405 |
# File 'lib/ruby-macrodroid.rb', line 5397 def initialize(h={}) = { rooted: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5407 5408 5409 |
# File 'lib/ruby-macrodroid.rb', line 5407 def to_s(colour: false) 'IsRootedConstraint ' + @h.inspect end |