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: 16,104 of 186,715
Downloads: 110,028

Daily

Ranking: 16,441 of 186,700
Downloads: 40

Depended by

RankDownloadsName
6,856626,869figgy
8,880360,657livingstyleguide
19,09982,656amqp-utils
20,04476,567safe_yaml-instructure
46,21723,796genomer-plugin-view
56,90717,920genomer-plugin-summary
68,93613,701facebook_test_users
76,29311,770smarky
96,9948,067genomer-plugin-validate
117,1815,648styleguide-api
121,4555,215sacrifice
139,1794,086harmonized_tariff

Depends on

RankDownloadsName
190231,222,153rdoc
2,2578,889,118hoe

Owners

#GravatarHandle
1iconadrianomitre