Class: LocationModeConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- LocationModeConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ LocationModeConstraint
constructor
A new instance of LocationModeConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ LocationModeConstraint
Returns a new instance of LocationModeConstraint.
247 248 249 250 251 252 253 254 255 |
# File 'lib/ruby-macrodroid/constraints.rb', line 247 def initialize(h={}) = { options: [false, false, false, true] } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
257 258 259 |
# File 'lib/ruby-macrodroid/constraints.rb', line 257 def to_s(colour: false, indent: 0) 'LocationModeConstraint ' + @h.inspect end |