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,870 of 196,338
Downloads: 119,467

Daily

Ranking: 14,333 of 196,320
Downloads: 14

Depended by

RankDownloadsName
7,583638,183figgy
9,620379,814livingstyleguide
20,19587,635amqp-utils
21,85777,205safe_yaml-instructure
48,10025,453genomer-plugin-view
59,30519,071genomer-plugin-summary
71,75614,533facebook_test_users
77,84412,882smarky
99,9138,654genomer-plugin-validate
119,4416,196styleguide-api
124,1495,703sacrifice
141,7194,499harmonized_tariff

Depends on

RankDownloadsName
153338,880,713rdoc
2,3839,526,385hoe

Owners

#GravatarHandle
1iconadrianomitre