a line trimming algorithm Kata
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
line_trimmer.rb
line_trimmer_spec.rb

README.markdown

This is a Kata for ling trimming algorithm. it should be able to trimm following cases correctly:

* "abc " -> "abc"
* "abc\t" -> "abc"
* " abc" -> " abc" does not remove white space from the beginning
* "ab\n cd \n" -> "ab\n cd\n" trims each line