Exception: Nokogiri::HTML::Document::EncodingFoundException
- Inherits:
-
Exception
- Object
- Exception
- Nokogiri::HTML::Document::EncodingFoundException
- Defined in:
- lib/nokogiri/html/document.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
Instance Method Summary collapse
-
#initialize(encoding) ⇒ EncodingFoundException
constructor
A new instance of EncodingFoundException.
Constructor Details
#initialize(encoding) ⇒ EncodingFoundException
Returns a new instance of EncodingFoundException.
125 126 127 128 |
# File 'lib/nokogiri/html/document.rb', line 125 def initialize(encoding) @encoding = encoding super("encoding found: %s" % encoding) end |
Instance Attribute Details
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
123 124 125 |
# File 'lib/nokogiri/html/document.rb', line 123 def encoding @encoding end |