method

on_heredoc_dedent

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: SexpBuilder
on_heredoc_dedent(val, width) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.