123456789_123456789_123456789_123456789_123456789_

Module: Nokogiri::XML::PP::CharacterData

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/nokogiri/xml/pp/character_data.rb

Instance Method Summary

Instance Method Details

#inspect

[ GitHub ]

  
# File 'lib/nokogiri/xml/pp/character_data.rb', line 15

def inspect
  "#<#{self.class.name}:#{format("0x%x", object_id)} #{text.inspect}>"
end

#pretty_print(pp)

[ GitHub ]

  
# File 'lib/nokogiri/xml/pp/character_data.rb', line 8

def pretty_print(pp)
  nice_name = self.class.name.split("::").last
  pp.group(2, "#(#{nice_name} ", ")") do
    pp.pp(text)
  end
end