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,954 of 197,085
Downloads: 120,314

Daily

Ranking: 16,768 of 197,066
Downloads: 16

Depended by

RankDownloadsName
7,648638,684figgy
9,697381,378livingstyleguide
20,34887,758amqp-utils
22,03577,250safe_yaml-instructure
48,35825,511genomer-plugin-view
59,65019,112genomer-plugin-summary
72,22014,558facebook_test_users
78,28112,912smarky
100,4238,679genomer-plugin-validate
120,0846,220styleguide-api
124,8235,720sacrifice
142,4224,513harmonized_tariff

Depends on

RankDownloadsName
150353,290,307rdoc
2,4059,615,266hoe

Owners

#GravatarHandle
1iconadrianomitre