Exception: Nokogiri::HTML4::Document::EncodingFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nokogiri/html4/document.rb

Overview

:nodoc:

Since:

  • v1.12.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encoding) ⇒ EncodingFound

Returns a new instance of EncodingFound.

Since:

  • v1.12.0



222
223
224
225
# File 'lib/nokogiri/html4/document.rb', line 222

def initialize(encoding)
  @found_encoding = encoding
  super("encoding found: %s" % encoding)
end

Instance Attribute Details

#found_encodingObject (readonly)

Since:

  • v1.12.0



220
221
222
# File 'lib/nokogiri/html4/document.rb', line 220

def found_encoding
  @found_encoding
end