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: 15,447 of 183,107
Downloads: 106,960

Daily

Ranking: 17,852 of 183,092
Downloads: 16

Depended by

RankDownloadsName
6,575584,900figgy
8,407348,830livingstyleguide
18,29380,907amqp-utils
18,99676,283safe_yaml-instructure
45,14123,096genomer-plugin-view
55,94517,282genomer-plugin-summary
67,60113,299facebook_test_users
75,10511,385smarky
95,4037,829genomer-plugin-validate
115,9775,412styleguide-api
120,9024,928sacrifice
136,8433,968harmonized_tariff

Depends on

RankDownloadsName
210167,990,555rdoc
2,0868,574,300hoe

Owners

#GravatarHandle
1iconadrianomitre