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.


213
214
215
216
# File 'lib/nokogiri/html/document.rb', line 213

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


211
212
213
# File 'lib/nokogiri/html/document.rb', line 211

def found_encoding
  @found_encoding
end