class StopWatchConstraint
Category: Date/Time
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Constraint::new
# File lib/ruby-macrodroid/constraints.rb, line 459 def initialize(h={}) options = { days_of_week: [false, false, true, false, false, false, false] } super(options.merge h) end
Public Instance Methods
to_s(colour: false, indent: 0)
click to toggle source
# File lib/ruby-macrodroid/constraints.rb, line 469 def to_s(colour: false, indent: 0) #'StopWatchConstraint ' + @h.inspect operator = @h[:greater_than] ? '>' : '<' "%s %s %s" % [@h[:stopwatch_name], operator, @h[:variable_name] ] #+ @h.inspect end
Also aliased as: to_summary