class Uh::WM::Env
Constants
- KEYBINDS
- LOGGER_LEVEL
- LOGGER_LEVEL_DEBUG
- LOGGER_LEVEL_STRINGS
- LOGGER_LEVEL_VERBOSE
- MODIFIER
- RC_PATH
- WORKER
Attributes
keybinds[R]
launch[RW]
layout[RW]
layout_class[RW]
layout_options[RW]
modifier[RW]
modifier_ignore[RW]
rc_path[RW]
rules[RW]
worker[RW]
Public Class Methods
new(output: $stdout, **_)
click to toggle source
Calls superclass method
# File lib/uh/wm/env.rb, line 27 def initialize output: $stdout, **_ super @rc_path = RC_PATH @modifier = MODIFIER @modifier_ignore = [] @keybinds = KEYBINDS.dup @layout_options = {} @worker = WORKER @rules = {} end
Public Instance Methods
log_logger_level()
click to toggle source
# File lib/uh/wm/env.rb, line 56 def log_logger_level log "Logging at #{LOGGER_LEVEL_STRINGS[logger.level]} level" end
logger()
click to toggle source
# File lib/uh/wm/env.rb, line 47 def logger @logger ||= Logger.new(@output).tap do |o| o.level = debug? ? LOGGER_LEVEL_DEBUG : verbose? ? LOGGER_LEVEL_VERBOSE : LOGGER_LEVEL o.formatter = LoggerFormatter.new end end