Exception: ChupaText::UnknownEncodingError
- Defined in:
- lib/chupa-text/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#encoding ⇒ Object
readonly
Returns the value of attribute encoding.
Instance Method Summary collapse
-
#initialize(data, encoding) ⇒ UnknownEncodingError
constructor
A new instance of UnknownEncodingError.
Constructor Details
#initialize(data, encoding) ⇒ UnknownEncodingError
Returns a new instance of UnknownEncodingError.
50 51 52 53 54 |
# File 'lib/chupa-text/error.rb', line 50 def initialize(data, encoding) @data = data @encoding = encoding super("Unknown encoding data: <#{data.uri}>(#{data.mime_type}): <#{encoding}>") end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
49 50 51 |
# File 'lib/chupa-text/error.rb', line 49 def data @data end |
#encoding ⇒ Object (readonly)
Returns the value of attribute encoding.
49 50 51 |
# File 'lib/chupa-text/error.rb', line 49 def encoding @encoding end |