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,324 of 190,280
Downloads: 115,423

Daily

Ranking: 15,142 of 190,253
Downloads: 29

Depended by

RankDownloadsName
7,098634,785figgy
9,152370,767livingstyleguide
19,59685,141amqp-utils
20,86176,974safe_yaml-instructure
46,91524,838genomer-plugin-view
57,98018,621genomer-plugin-summary
70,08714,242facebook_test_users
76,83712,419smarky
98,0568,442genomer-plugin-validate
117,8835,988styleguide-api
121,9725,554sacrifice
141,5014,246harmonized_tariff

Depends on

RankDownloadsName
172280,870,742rdoc
2,3339,162,360hoe

Owners

#GravatarHandle
1iconadrianomitre