Exception: Nokogiri::HTML4::EncodingReader::EncodingFound

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encoding) ⇒ EncodingFound

Returns a new instance of EncodingFound.



18
19
20
21
# File 'lib/nokogiri/html4/encoding_reader.rb', line 18

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.



16
17
18
# File 'lib/nokogiri/html4/encoding_reader.rb', line 16

def found_encoding
  @found_encoding
end