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,970 of 197,258
Downloads: 120,437

Daily

Ranking: 34,472 of 197,235
Downloads: 3

Depended by

RankDownloadsName
7,664638,785figgy
9,704381,857livingstyleguide
20,38087,771amqp-utils
22,06077,253safe_yaml-instructure
48,39525,534genomer-plugin-view
59,71919,125genomer-plugin-summary
72,30414,565facebook_test_users
78,34412,920smarky
100,4948,685genomer-plugin-validate
120,1306,226styleguide-api
124,9015,723sacrifice
142,4664,518harmonized_tariff

Depends on

RankDownloadsName
150356,539,835rdoc
2,4079,627,604hoe

Owners

#GravatarHandle
1iconadrianomitre