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,434 of 192,104
Downloads: 116,799

Daily

Ranking: 12,220 of 192,085
Downloads: 32

Depended by

RankDownloadsName
7,183635,941figgy
9,223374,341livingstyleguide
19,84985,530amqp-utils
21,15977,069safe_yaml-instructure
47,30624,970genomer-plugin-view
58,38218,731genomer-plugin-summary
70,61614,298facebook_test_users
77,12312,529smarky
98,5848,493genomer-plugin-validate
118,3886,034styleguide-api
122,5025,594sacrifice
142,0174,282harmonized_tariff

Depends on

RankDownloadsName
167294,404,660rdoc
2,3439,227,476hoe

Owners

#GravatarHandle
1iconadrianomitre