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,402 of 182,915
Downloads: 106,797

Daily

Ranking: 28,629 of 182,900
Downloads: 7

Depended by

RankDownloadsName
6,563583,517figgy
8,379347,780livingstyleguide
18,24480,807amqp-utils
18,92576,276safe_yaml-instructure
45,08323,054genomer-plugin-view
55,89317,246genomer-plugin-summary
67,51613,274facebook_test_users
75,06911,357smarky
95,3277,814genomer-plugin-validate
115,9515,398styleguide-api
120,8604,916sacrifice
136,7943,959harmonized_tariff

Depends on

RankDownloadsName
211165,867,545rdoc
2,0788,560,433hoe

Owners

#GravatarHandle
1iconadrianomitre