Exception: Nokogiri::HTML4::Document::EncodingFound
- Inherits:
-
StandardError
- Object
- StandardError
- Nokogiri::HTML4::Document::EncodingFound
- Defined in:
- lib/nokogiri/html4/document.rb
Overview
:nodoc: all
Instance Attribute Summary collapse
-
#found_encoding ⇒ Object
readonly
Returns the value of attribute found_encoding.
Instance Method Summary collapse
-
#initialize(encoding) ⇒ EncodingFound
constructor
A new instance of EncodingFound.
Constructor Details
#initialize(encoding) ⇒ EncodingFound
Returns a new instance of EncodingFound.
227 228 229 230 |
# File 'lib/nokogiri/html4/document.rb', line 227 def initialize(encoding) @found_encoding = encoding super(format("encoding found: %s", encoding)) end |
Instance Attribute Details
#found_encoding ⇒ Object (readonly)
Returns the value of attribute found_encoding.
225 226 227 |
# File 'lib/nokogiri/html4/document.rb', line 225 def found_encoding @found_encoding end |