Exception: MPlayer::Error::StartupError
- Inherits:
-
MPlayerError
- Object
- RuntimeError
- MPlayerError
- MPlayer::Error::StartupError
- Defined in:
- lib/easy_mplayer/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ StartupError
constructor
A new instance of StartupError.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ StartupError
Returns a new instance of StartupError.
15 16 17 18 |
# File 'lib/easy_mplayer/errors.rb', line 15 def initialize(path) @path = path super(to_s) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/easy_mplayer/errors.rb', line 8 def path @path end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 |
# File 'lib/easy_mplayer/errors.rb', line 10 def to_s str = "Missing startup requirement!\n" str += "File \"#{path}\" does not exist!\n" unless File.exists?(path) end |