summaryrefslogtreecommitdiff
path: root/test/scanners/ruby/nested-heredoc.in.rb
blob: 3059e481553644abeb0b2f4929f6804b1ee94f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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