Class: ModeConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- ModeConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: MacroDroid Specific
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ModeConstraint
constructor
A new instance of ModeConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ModeConstraint
Returns a new instance of ModeConstraint.
886 887 888 889 890 891 892 893 894 895 |
# File 'lib/ruby-macrodroid/constraints.rb', line 886 def initialize(h={}) = { mode: 'Away', mode_selected: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
897 898 899 |
# File 'lib/ruby-macrodroid/constraints.rb', line 897 def to_s(colour: false, indent: 0) 'ModeConstraint ' + @h.inspect end |