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,273 of 188,669
Downloads: 113,570

Daily

Ranking: 15,369 of 188,644
Downloads: 25

Depended by

RankDownloadsName
7,005633,236figgy
9,045368,793livingstyleguide
19,41384,728amqp-utils
20,62876,900safe_yaml-instructure
46,67624,679genomer-plugin-view
57,61918,521genomer-plugin-summary
69,75514,155facebook_test_users
76,72612,284smarky
97,6228,394genomer-plugin-validate
117,5315,941styleguide-api
121,6825,506sacrifice
141,0004,220harmonized_tariff

Depends on

RankDownloadsName
176262,935,296rdoc
2,3129,081,405hoe

Owners

#GravatarHandle
1iconadrianomitre