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,573 of 192,666
Downloads: 117,307

Daily

Ranking: 24,194 of 192,588
Downloads: 28

Depended by

RankDownloadsName
7,224636,341figgy
9,287374,889livingstyleguide
19,90785,713amqp-utils
21,25177,088safe_yaml-instructure
47,40025,049genomer-plugin-view
58,50418,791genomer-plugin-summary
70,74514,343facebook_test_users
77,21612,580smarky
98,7448,523genomer-plugin-validate
118,4746,065styleguide-api
122,6685,616sacrifice
140,2424,410harmonized_tariff

Depends on

RankDownloadsName
165300,390,468rdoc
2,3549,259,350hoe

Owners

#GravatarHandle
1iconadrianomitre