Exception: Nokogiri::HTML4::Document::EncodingFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nokogiri/html4/document.rb

Overview

:nodoc: all

Instance Attribute Summary collapse

Instance Method Summary collapse

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_encodingObject (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