method

on_heredoc_dedent

ruby latest stable - Class: Ripper::SexpBuilder
on_heredoc_dedent(val, width)
private

No documentation available.

# File ext/ripper/lib/ripper/sexp.rb, line 73
    def on_heredoc_dedent(val, width)
      sub = proc do |cont|
        cont.map! do |e|
          if Array === e
            case e[0]
            when :@tstring_content
              e = dedent_element(e, width)
            when /_add\z/
              e[1] = sub[e[1]]
            end
          elsif String === e
            dedent_string(e, width)
          end
          e
        end
      end
      sub[val]
      val
    end