Method: RSpec::Core::Configuration#format_docstrings

Defined in:
lib/rspec/core/configuration.rb

#format_docstrings(&block) ⇒ void

Formats the docstring output using the block provided.

Examples:

# This will strip the descriptions of both examples and example
# groups.
RSpec.configure do |config|
  config.format_docstrings { |s| s.strip }
end


1661
1662
1663
# File 'lib/rspec/core/configuration.rb', line 1661

def format_docstrings(&block)
  @format_docstrings_block = block_given? ? block : DEFAULT_FORMATTER
end