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,186 of 187,224
Downloads: 111,018

Daily

Ranking: 24,607 of 187,196
Downloads: 39

Depended by

RankDownloadsName
6,905630,071figgy
8,930363,563livingstyleguide
19,17983,646amqp-utils
20,24076,750safe_yaml-instructure
46,29524,295genomer-plugin-view
57,11118,254genomer-plugin-summary
69,24513,935facebook_test_users
76,41412,028smarky
97,2668,222genomer-plugin-validate
117,2705,795styleguide-api
121,3785,360sacrifice
139,7314,156harmonized_tariff

Depends on

RankDownloadsName
185241,656,823rdoc
2,2858,953,144hoe

Owners

#GravatarHandle
1iconadrianomitre