Sha256: 9e08e0cdab06fc64d12339bffb8b4fbeeb6c8856e464c9cac0b908756dac0f65

Contents?: true

Size: 442 Bytes

Versions: 472

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

472 entries across 469 versions & 12 rubygems

Version Path
nokogiri-1.16.4-aarch64-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-x86_64-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-x86_64-darwin lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-x86-mingw32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-x86-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-x64-mingw32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-x64-mingw-ucrt lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-java lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-arm64-darwin lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-arm-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.15.6-aarch64-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-x86_64-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-x86_64-darwin lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-x86-mingw32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-x86-linux lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-x64-mingw32 lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-x64-mingw-ucrt lib/nokogiri/xml/pp/character_data.rb
nokogiri-1.16.3-java lib/nokogiri/xml/pp/character_data.rb