Module: CMess::GuessEncoding::Encoding
- Extended by:
- Encoding
- Included in:
- Automatic, Automatic::EncodingGuessers, Encoding, Manual
- Defined in:
- lib/cmess/guess_encoding/encoding.rb
Overview
Namespace for our encodings.
Instance Method Summary collapse
Instance Method Details
#[](encoding) ⇒ Object
46 47 48 |
# File 'lib/cmess/guess_encoding/encoding.rb', line 46 def [](encoding) get_or_set_encoding_const(encoding) end |
#all_encodings ⇒ Object
41 42 43 44 |
# File 'lib/cmess/guess_encoding/encoding.rb', line 41 def all_encodings const_defined?(:ALL_ENCODINGS) ? ALL_ENCODINGS : const_set(:ALL_ENCODINGS, get_all_encodings) end |