class RedParse::StringNode

Public Instance Methods

reducer_ident() click to toggle source
# File lib/redparse/ReduceWithsFor_RedParse_1_8.rb, line 17399
def reducer_ident
  :StringNode
end
rip(p) click to toggle source
# File lib/redparse/ripper.rb, line 221
def rip p
  list=self.dup
  list.shift if String===list.first and list.first.empty?
  p.on_string_literal \
    list.inject(p.on_string_content){|sum,chunk|
      p.on_string_add sum,
        if String===chunk
          p.on_tstring_content chunk
        else
          p.on_string_embexpr chunk.rip(p)
        end
    }
end