Exception: Multibases::MissingEncoding
- Defined in:
- lib/multibases/error.rb
Instance Method Summary collapse
-
#initialize ⇒ MissingEncoding
constructor
A new instance of MissingEncoding.
Constructor Details
#initialize ⇒ MissingEncoding
Returns a new instance of MissingEncoding.
33 34 35 36 37 38 39 40 |
# File 'lib/multibases/error.rb', line 33 def initialize super 'Can not convert from ByteArray to string without encoding. Pass ' \ 'the resulting string encoding as the first argument of to_s.' \ "\n" \ 'This does not default to UTF-8 or US-ASCII because that would ' \ 'hide issues until you have output that is NOT encoding as UTF-8 ' \ 'or US-ASCII and does not fit in those ranges.' end |