Class: MonthOfYearConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- MonthOfYearConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Date/Time
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ MonthOfYearConstraint
constructor
A new instance of MonthOfYearConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ MonthOfYearConstraint
Returns a new instance of MonthOfYearConstraint.
5174 5175 5176 5177 5178 5179 5180 5181 5182 |
# File 'lib/ruby-macrodroid.rb', line 5174 def initialize(h={}) = { months: [false, false, false, false, false, false, false, true, false, false, false, false] } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5184 5185 5186 |
# File 'lib/ruby-macrodroid.rb', line 5184 def to_s(colour: false) 'MonthOfYearConstraint ' + @h.inspect end |