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,356 of 191,455
Downloads: 116,111

Daily

Ranking: 16,979 of 191,429
Downloads: 30

Depended by

RankDownloadsName
7,147635,343figgy
9,178373,038livingstyleguide
19,65885,308amqp-utils
20,94077,000safe_yaml-instructure
47,02824,895genomer-plugin-view
58,11218,669genomer-plugin-summary
70,27214,265facebook_test_users
76,89812,467smarky
98,1808,471genomer-plugin-validate
118,0746,005styleguide-api
122,1445,572sacrifice
141,6024,266harmonized_tariff

Depends on

RankDownloadsName
168287,988,886rdoc
2,3399,195,080hoe

Owners

#GravatarHandle
1iconadrianomitre