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,701 of 193,649
Downloads: 117,835

Daily

Ranking: 21,219 of 193,618
Downloads: 14

Depended by

RankDownloadsName
7,446637,151figgy
9,485375,999livingstyleguide
20,06186,046amqp-utils
21,45477,136safe_yaml-instructure
47,62725,193genomer-plugin-view
58,70218,895genomer-plugin-summary
71,09914,398facebook_test_users
77,40512,677smarky
99,1488,563genomer-plugin-validate
118,7676,106styleguide-api
123,0245,649sacrifice
140,5574,441harmonized_tariff

Depends on

RankDownloadsName
163313,246,925rdoc
2,3679,341,101hoe

Owners

#GravatarHandle
1iconadrianomitre