lib/unparser/writer/dynamic_string.rb in unparser-0.6.5 vs lib/unparser/writer/dynamic_string.rb in unparser-0.6.6
- old
+ new
@@ -111,21 +111,9 @@
def nl_last_child?
last = children.last
n_str?(last) && last.children.first[-1].eql?("\n")
end
- def emit_squiggly_heredoc_body
- buffer.indent
- children.each do |child|
- if n_str?(child)
- write(escape_dynamic(child.children.first))
- else
- emit_dynamic(child)
- end
- end
- buffer.unindent
- end
-
def emit_normal_heredoc_body
buffer.root_indent do
children.each do |child|
if n_str?(child)
write(escape_dynamic(child.children.first))