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,820 of 195,762
Downloads: 119,011

Daily

Ranking: 14,207 of 195,747
Downloads: 47

Depended by

RankDownloadsName
7,544637,911figgy
9,584379,006livingstyleguide
20,12787,557amqp-utils
21,76377,193safe_yaml-instructure
47,97525,411genomer-plugin-view
59,16919,044genomer-plugin-summary
71,59714,508facebook_test_users
77,69312,852smarky
99,7438,637genomer-plugin-validate
119,2556,178styleguide-api
123,8815,687sacrifice
141,4574,485harmonized_tariff

Depends on

RankDownloadsName
156331,387,703rdoc
2,3779,480,529hoe

Owners

#GravatarHandle
1iconadrianomitre