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: 17,087 of 198,774
Downloads: 120,934

Daily

Ranking: 19,513 of 198,739
Downloads: 21

Depended by

RankDownloadsName
7,739639,210figgy
9,782384,140livingstyleguide
20,57187,955amqp-utils
22,24777,300safe_yaml-instructure
48,67825,633genomer-plugin-view
60,04119,209genomer-plugin-summary
72,70414,614facebook_test_users
78,73512,968smarky
100,8718,725genomer-plugin-validate
120,5236,263styleguide-api
125,4065,752sacrifice
143,0134,543harmonized_tariff

Depends on

RankDownloadsName
142378,331,571rdoc
2,4069,834,922hoe

Owners

#GravatarHandle
1iconadrianomitre