RubyGems Navigation menu

heredoc_unindent 1.2.0

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.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 1.2.0 - April 15, 2015 (10.0 KB)
  2. 1.1.2 - February 07, 2011 (11.5 KB)
  3. 1.1.1 - January 29, 2011 (11.5 KB)
  4. 1.1.0 - January 29, 2011 (11.5 KB)
  5. 1.0.6 - January 27, 2011 (10.5 KB)
顯示所有版本(共 11)

Development 相依性套件 (2):

hoe ~> 3.13
rdoc ~> 4.0

擁有者:

作者:

  • Adriano Mitre

SHA 256 checksum:

dc87002a9d89e3ad06722e53c7f6db9b28677b69017dc5a69c1972a99dc83292

總下載次數 104,838

這個版本 29,644

License:

MIT

Ruby 版本需求: >= 0

相關連結: