« Back to Index

Ruby HEREDOC but not worrying about the crappy spacing

View original Gist on GitHub

heredoc.rb

<<-FOO.gsub /^\s+/, ""
    abc
        def
            ghi
    jkl
FOO