Class: SignalOnOffConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- SignalOnOffConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Connectivity
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SignalOnOffConstraint
constructor
A new instance of SignalOnOffConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SignalOnOffConstraint
Returns a new instance of SignalOnOffConstraint.
268 269 270 271 272 273 274 275 276 |
# File 'lib/ruby-macrodroid/constraints.rb', line 268 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
278 279 280 |
# File 'lib/ruby-macrodroid/constraints.rb', line 278 def to_s(colour: false, indent: 0) 'SignalOnOffConstraint ' + @h.inspect end |