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: 14,944 of 180,477
Downloads: 104,796

Daily

Ranking: 20,591 of 180,469
Downloads: 6

Depended by

RankDownloadsName
6,369565,638figgy
7,984333,580livingstyleguide
17,74379,273amqp-utils
18,20976,161safe_yaml-instructure
44,35922,454genomer-plugin-view
55,06716,802genomer-plugin-summary
66,80012,866facebook_test_users
74,31111,025smarky
94,1147,626genomer-plugin-validate
114,9645,236styleguide-api
120,1594,751sacrifice
135,4653,854harmonized_tariff

Depends on

RankDownloadsName
214146,723,215rdoc
1,9568,413,992hoe

Owners

#GravatarHandle
1iconadrianomitre