Sha256: 13d47de5b5e84ca7a7e899494d529d0347dcb78645ddc5b17f60d30b92a0ebfe

Contents?: true

Size: 411 Bytes

Versions: 562

Compression:

Stored size: 411 Bytes

Contents

module Nokogiri
  module XML
    module PP
      module CharacterData
        def pretty_print pp # :nodoc:
          nice_name = self.class.name.split('::').last
          pp.group(2, "#(#{nice_name} ", ')') do
            pp.pp text
          end
        end

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

Version data entries

562 entries across 533 versions & 51 rubygems

Version Path
nokogiri-1.5.0.beta.1 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.2.1-x86-mswin32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.2.1-x86-mingw32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.5.0.beta.1-java lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.2-java lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.2 lib/nokogiri/xml/pp/character_data.rb
rubyjedi-nokogiri_java-1.4.0.20100513161003-java lib/nokogiri/xml/pp/character_data.rb
jwagener-nokogiri-1.4.1 lib/nokogiri/xml/pp/character_data.rb
revo-nokogiri-1.4.1-java lib/nokogiri/xml/pp/character_data.rb
revo-nokogiri-1.4.0.3-java lib/nokogiri/xml/pp/character_data.rb
revo-nokogiri-1.4.0-java lib/nokogiri/xml/pp/character_data.rb
revo-nokogiri-1.4.0.20100202165440-java lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.1-x86-mswin32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.1-x86-mingw32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.1-java lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.1 lib/nokogiri/xml/pp/character_data.rb
superfeedr-nokogiri-1.4.0.20091116183308 lib/nokogiri/xml/pp/character_data.rb
caring-nokogiri-1.4.1.pre1 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.0-java lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.4.0-x86-mswin32 lib/nokogiri/xml/pp/character_data.rb