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,301 of 189,628
Downloads: 114,826

Daily

Ranking: 15,465 of 189,601
Downloads: 22

Depended by

RankDownloadsName
7,070634,236figgy
9,111369,859livingstyleguide
19,51884,990amqp-utils
20,77576,950safe_yaml-instructure
46,81024,763genomer-plugin-view
57,84318,574genomer-plugin-summary
69,94714,206facebook_test_users
76,80812,357smarky
97,8848,421genomer-plugin-validate
117,8435,958styleguide-api
121,8915,532sacrifice
141,3344,233harmonized_tariff

Depends on

RankDownloadsName
174274,373,815rdoc
2,3239,135,127hoe

Owners

#GravatarHandle
1iconadrianomitre