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,302 of 189,083
Downloads: 114,318

Daily

Ranking: 15,231 of 189,069
Downloads: 41

Depended by

RankDownloadsName
7,041633,882figgy
9,080369,421livingstyleguide
19,47684,894amqp-utils
20,70876,934safe_yaml-instructure
46,74224,736genomer-plugin-view
57,74618,548genomer-plugin-summary
69,85514,189facebook_test_users
76,80012,319smarky
97,7578,413genomer-plugin-validate
117,7525,948styleguide-api
121,8005,523sacrifice
141,1804,229harmonized_tariff

Depends on

RankDownloadsName
177269,057,704rdoc
2,3169,110,246hoe

Owners

#GravatarHandle
1iconadrianomitre