RubyGems Navigation menu

heredoc_unindent 1.0.2

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 by heredocs contain nothing but code to be read exclusively by parsers (e.g., Kernel#eval), which are often insensitive to extra indentation. Nevertheless, in the cases the string is printed or displayed, the unintended indentation is rarely innocuous -- and thus the reason for this gem.

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 1.2.0 - April 15, 2015 (10 ko)
  2. 1.1.2 - February 07, 2011 (11,5 ko)
  3. 1.1.1 - January 29, 2011 (11,5 ko)
  4. 1.1.0 - January 29, 2011 (11,5 ko)
  5. 1.0.6 - January 27, 2011 (10,5 ko)
  6. 1.0.2 - January 26, 2011 (10 ko)
Voir toutes les versions (11)

Dépendances de Development (1):

hoe >= 2.8.0

Propriétaires:

Auteurs:

  • Adriano Mitre

Total de contrôle SHA 256:

bae3f7c3f77c631a7e8ff5581257addc2edfa96077eb9b099ff34da44e2605b1

Total de téléchargements 105 429

Pour cette version 3 679

License:

aucune

Version de Ruby requise: None

Liens: