instance method mode_from

Ruby on Rails 7.2.3

Since v7.1.6 Private

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

mode_from(options)

No documentation comment.

Parameters

options req
Source
# 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

Defined in activesupport/lib/active_support/log_subscriber.rb line 180 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::LogSubscriber

Type at least 2 characters to search.

↑↓ navigate · open · esc close