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.



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

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.



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

def found_encoding
  @found_encoding
end