Module: RSpec::Support::FormattingSupport

Defined in:
lib/rspec/support/spec/formatting_support.rb

Instance Method Summary collapse

Instance Method Details

#dedent(string) ⇒ Object



4
5
6
# File 'lib/rspec/support/spec/formatting_support.rb', line 4

def dedent(string)
  string.gsub(/^\s+\|/, '').chomp
end