instance method heading

Ruby on Rails 8.1.2

Since v8.1.2

Signature

heading(heading, subtitle = nil, type: :banner, padding: true)

Display a colorized heading followed by an optional subtitle.

Examples:

heading "Smoke Testing", "End-to-end tests verifying key functionality", padding: false
heading "Skipping video encoding tests", "Install FFmpeg to run these tests", type: :error

See ActiveSupport::ContinuousIntegration::COLORS for a complete list of options.

Parameters

heading req
subtitle opt = nil
type key = :banner
padding key = true
Source
# File activesupport/lib/active_support/continuous_integration.rb, line 98
    def heading(heading, subtitle = nil, type: :banner, padding: true)
      echo "#{padding ? "\n\n" : ""}#{heading}", type: type
      echo "#{subtitle}#{padding ? "\n" : ""}", type: :subtitle if subtitle
    end

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

Defined in ActiveSupport::ContinuousIntegration

Type at least 2 characters to search.

↑↓ navigate · open · esc close