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,646 of 193,188
Downloads: 117,629

Daily

Ranking: 15,843 of 193,154
Downloads: 40

Depended by

RankDownloadsName
7,268636,785figgy
9,445375,528livingstyleguide
19,98885,923amqp-utils
21,37277,115safe_yaml-instructure
47,50925,157genomer-plugin-view
58,57618,873genomer-plugin-summary
70,92114,385facebook_test_users
77,33612,634smarky
98,9398,554genomer-plugin-validate
118,5996,095styleguide-api
122,8335,642sacrifice
140,3534,434harmonized_tariff

Depends on

RankDownloadsName
165306,832,994rdoc
2,3639,295,711hoe

Owners

#GravatarHandle
1iconadrianomitre