Exception: Nokogiri::HTML::Document::EncodingFound

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encoding) ⇒ EncodingFound

Returns a new instance of EncodingFound.



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

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

Instance Attribute Details

#found_encodingObject (readonly)

Returns the value of attribute found_encoding.



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

def found_encoding
  @found_encoding
end