Sha256: 6d52c26e4a13e80d5c401a81f92308f69edd31c575485739aa65dd1c959aeb92

Contents?: true

Size: 445 Bytes

Versions: 370

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module Nokogiri
  module HTML4
    class ElementDescription
      ###
      # Is this element a block element?
      def block?
        !inline?
      end

      ###
      # Convert this description to a string
      def to_s
        "#{name}: #{description}"
      end

      ###
      # Inspection information
      def inspect
        "#<#{self.class.name}: #{name} #{description}>"
      end
    end
  end
end

Version data entries

370 entries across 368 versions & 10 rubygems

Version Path
nokogiri-1.16.1-arm64-darwin lib/nokogiri/html4/element_description.rb
nokogiri-1.16.1-arm-linux lib/nokogiri/html4/element_description.rb
nokogiri-1.16.1-aarch64-linux lib/nokogiri/html4/element_description.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/nokogiri-1.16.0-x86_64-darwin/lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0 lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-x86_64-linux lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-x86_64-darwin lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-x86-mingw32 lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-x86-linux lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-x64-mingw32 lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-x64-mingw-ucrt lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-java lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-arm64-darwin lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-arm-linux lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0-aarch64-linux lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0.rc1 lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0.rc1-x86_64-linux lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0.rc1-x86_64-darwin lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0.rc1-x86-mingw32 lib/nokogiri/html4/element_description.rb
nokogiri-1.16.0.rc1-x86-linux lib/nokogiri/html4/element_description.rb