class ScreenOnOffConstraint
Category: Screen and Speaker
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Constraint::new
# File lib/ruby-macrodroid/constraints.rb, line 1236 def initialize(h={}) options = { a: true, screen_on: true } 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 1247 def to_s(colour: false, indent: 0) 'Screen ' + (@h[:screen_on] ? 'On' : 'Off') end
Also aliased as: to_summary