Indenting Here-Documents


(For all intents and purposes, this project is dead, but let us just call it "Deferred Indefinitely". Shall we?)

Problem

You want to indent the content of a here document to make it more readible, but remove the indentation from the string.

Solution

(var = <<TARGET).gsub!(/^\s+/, '')
    line one
    line two
TARGET

Discussion

TODO: DISCUSSION

Contrast

TODO: LIST_OF_OTHER_PROGRAMMING_LANG_METHODS

Related

TODO: LIST_OF_RELATED_ITEMS

Status: In Progress