Module: Unindentable

Defined in:
lib/unindentable.rb

Instance Method Summary collapse

Instance Method Details

#unindent(string) ⇒ Object

Removes common indentation from each line of a string



4
5
6
# File 'lib/unindentable.rb', line 4

def unindent(string)
  left_trim(string, find_minimum_indent(string))
end