method
mode_from
v7.2.3 -
Show latest stable
- Class:
ActiveSupport::LogSubscriber
mode_from(options)private
No documentation available.
# File activesupport/lib/active_support/log_subscriber.rb, line 180
def mode_from(options)
modes = MODES.values_at(*options.compact_blank.keys)
"\e[#{modes.join(";")}m" if modes.any?
end