diff options
Diffstat (limited to 'test/scanners/ruby/nested-heredoc.in.rb')
-rwxr-xr-x | test/scanners/ruby/nested-heredoc.in.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/scanners/ruby/nested-heredoc.in.rb b/test/scanners/ruby/nested-heredoc.in.rb new file mode 100755 index 0000000..3059e48 --- /dev/null +++ b/test/scanners/ruby/nested-heredoc.in.rb @@ -0,0 +1,27 @@ +p "#{<<'END'.strip.reverse}\ +First +END +Second" + +p <<`one` ; p "#{<<two}" +1 +one +2 +two + +this.should.be.plain + +# from Rails +unless new_record? + connection.delete <<-end_sql, "#{self.class.name} Destroy" + DELETE FROM #{self.class.table_name} + WHERE #{self.class.primary_key} = #{quoted_id} + end_sql +end + +p <<this +but it may break #{<<that} +code. +that +this +that.should.be.plain
\ No newline at end of file |