Categories: None [Edit]

heredoc_unindent

https://rubygems.org/gems/heredoc_unindent
https://github.com/adrianomitre/heredoc_unindent
This gem removes common margin from indented strings, such as the ones produced by indented heredocs. In other words, it strips out leading whitespace chars at the beggining of each line, but only as much as the line with the smallest margin. It is acknowledged that many strings defined by heredocs are just code and fact is that most parsers are insensitive to indentation. If, however, the strings are to be used otherwise, be it for printing or testing, the extra indentation will probably be an issue and hence this gem.

Total

Ranking: 17,032 of 198,025
Downloads: 120,703

Daily

Ranking: 31,716 of 197,989
Downloads: 4

Depended by

RankDownloadsName
7,703639,004figgy
9,735383,210livingstyleguide
20,48287,863amqp-utils
22,14677,275safe_yaml-instructure
48,51525,587genomer-plugin-view
59,85919,161genomer-plugin-summary
72,49514,589facebook_test_users
78,48512,948smarky
100,6578,707genomer-plugin-validate
120,3496,241styleguide-api
125,1875,734sacrifice
142,6734,531harmonized_tariff

Depends on

RankDownloadsName
145367,298,986rdoc
2,4119,668,941hoe

Owners

#GravatarHandle
1iconadrianomitre