Google

def to_string if @normalized "#@expanded_name='#{@value.gsub(/'/, '&apos;')}'" else doc = @element.document dt = doc ? doc.doc_type : nil rv = "#@expanded_name='" rv << Text::normalize(@value, dt) rv << "'" rv end end