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,225 of 187,571
Downloads: 111,390

Daily

Ranking: 49,628 of 187,548
Downloads: 8

Depended by

RankDownloadsName
6,933631,034figgy
8,974364,914livingstyleguide
19,23183,948amqp-utils
20,32776,795safe_yaml-instructure
46,40224,384genomer-plugin-view
57,25018,319genomer-plugin-summary
69,33714,004facebook_test_users
76,58712,079smarky
97,3938,264genomer-plugin-validate
117,3395,838styleguide-api
121,3765,409sacrifice
140,1334,174harmonized_tariff

Depends on

RankDownloadsName
183248,062,731rdoc
2,2988,985,762hoe

Owners

#GravatarHandle
1iconadrianomitre