ヒアドキュメント時々使うのですが ソースコードが見にくくなるのであんまり好きではないです。 なんかいい方法ないんだろうかと調べてみると gsubかますという方法で簡単に出来ました。 目から鱗。 How do I remove leading whitespace chars from Ruby HEREDOC? - Stack Overflow こうすると幸せ こんなのをヒアドキュメント化するとしましょう。 Name(Ver) Score Star Fork ---------------------------------------- ------ ----- ----- ABSQLite (1.2.0) 5 5 0 普通のヒアドキュメント def foo <<-'EOS' Name(Ver) Score Star Fork ------------------------------