%i[error info debug].freeze
25 26 27
# File 'lib/rexer/commands.rb', line 25 def on(level, &block) on?(level) ? block.call : nil end
21 22 23
# File 'lib/rexer/commands.rb', line 21 def on?(level) LEVELS.index(current_level) >= LEVELS.index(level) end