RubyGems Navigation menu

heredoc_unindent 1.0.1

Removes common margin from indented strings such as the ones produced by heredocs, i.e., 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 in heredocs contain nothing but code to be read exclusively by parsers (e.g., Kernel#eval or web browser's), which are basically insensitive to extra indentation. Nevertheless, in cases when the string is printed or displayed, the unintended indentation is rarely innocuous -- and thus the reason for 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)
  6. 1.0.1 - January 26, 2011 (10.0 KB)
顯示所有版本(共 11)

Development 相依性套件 (1):

hoe >= 2.8.0

擁有者:

作者:

  • Adriano Mitre

SHA 256 總和檢查碼:

6f2f48cc2859d2275cdf66ad08e0b98b1ed19601db47c5af3fec73053bc849ad

總下載次數 105,428

這個版本 3,652

授權:

Ruby 版本需求:

相關連結: