Class: YandexSpeechApi::MP3_Player::Base::UnknownExtension
- Inherits:
-
YandexSpeechError
- Object
- YandexSpeechError
- YandexSpeechApi::MP3_Player::Base::UnknownExtension
- Defined in:
- lib/yandex_speech/mp3_player/base.rb
Overview
Raised when filename
has wrong (not mp3) extension. Used to give minimal protection against files with unknown format.
Instance Method Summary collapse
-
#initialize(filename) ⇒ UnknownExtension
constructor
A new instance of UnknownExtension.
Constructor Details
#initialize(filename) ⇒ UnknownExtension
Returns a new instance of UnknownExtension.
63 |
# File 'lib/yandex_speech/mp3_player/base.rb', line 63 def initialize(filename); super "Mp3 player can work only with files with '.mp3' extension. Please change extension for #{filename} if you sure that format is correct!'" end |