Module: RSpec::Support::FormattingSupport

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

Instance Method Summary collapse

Instance Method Details

#dedent(string) ⇒ Object



6
7
8
# File 'lib/rspec/support/spec/formatting_support.rb', line 6

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