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: 15,694 of 184,458
Downloads: 107,984

Daily

Ranking: 28,297 of 184,451
Downloads: 14

Depended by

RankDownloadsName
6,702597,540figgy
8,573354,951livingstyleguide
18,62281,512amqp-utils
19,38276,354safe_yaml-instructure
45,58023,355genomer-plugin-view
56,43317,484genomer-plugin-summary
68,15213,447facebook_test_users
75,52611,542smarky
96,0227,919genomer-plugin-validate
116,4535,502styleguide-api
121,3765,011sacrifice
137,6124,023harmonized_tariff

Depends on

RankDownloadsName
203186,200,606rdoc
2,1438,686,942hoe

Owners

#GravatarHandle
1iconadrianomitre