Exception: Nokogiri::HTML::Document::EncodingFoundException

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#encodingObject (readonly)

Returns the value of attribute encoding.



123
124
125
# File 'lib/nokogiri/html/document.rb', line 123

def encoding
  @encoding
end