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,244 of 187,950
Downloads: 112,005

Daily

Ranking: 18,532 of 187,922
Downloads: 49

Depended by

RankDownloadsName
6,949631,787figgy
8,999365,981livingstyleguide
19,28584,210amqp-utils
20,43476,828safe_yaml-instructure
46,47824,486genomer-plugin-view
57,36218,386genomer-plugin-summary
69,46314,058facebook_test_users
76,68112,132smarky
97,5348,302genomer-plugin-validate
117,4555,869styleguide-api
121,4855,444sacrifice
140,4424,190harmonized_tariff

Depends on

RankDownloadsName
180252,918,034rdoc
2,3029,017,131hoe

Owners

#GravatarHandle
1iconadrianomitre