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: 15,507 of 183,471
Downloads: 107,250

Daily

Ranking: 25,716 of 183,459
Downloads: 4

Depended by

RankDownloadsName
6,615587,825figgy
8,441350,580livingstyleguide
18,39881,091amqp-utils
19,09076,298safe_yaml-instructure
45,27723,168genomer-plugin-view
56,10717,333genomer-plugin-summary
67,73613,348facebook_test_users
75,25111,427smarky
95,5907,853genomer-plugin-validate
116,1255,436styleguide-api
121,0504,950sacrifice
137,0553,984harmonized_tariff

Depends on

RankDownloadsName
210172,448,676rdoc
2,1048,603,943hoe

Owners

#GravatarHandle
1iconadrianomitre