Exception: Nanaimo::Reader::UnsupportedPlistFormatError
- Defined in:
- lib/nanaimo/reader.rb
Overview
Raised when attempting to read a plist with an unsupported file format.
Instance Attribute Summary collapse
-
#format ⇒ Symbol
readonly
The unsupported format.
Instance Method Summary collapse
-
#initialize(format) ⇒ UnsupportedPlistFormatError
constructor
A new instance of UnsupportedPlistFormatError.
- #to_s ⇒ Object
Constructor Details
#initialize(format) ⇒ UnsupportedPlistFormatError
Returns a new instance of UnsupportedPlistFormatError.
16 17 18 |
# File 'lib/nanaimo/reader.rb', line 16 def initialize(format) @format = format end |
Instance Attribute Details
#format ⇒ Symbol (readonly)
Returns The unsupported format.
14 15 16 |
# File 'lib/nanaimo/reader.rb', line 14 def format @format end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/nanaimo/reader.rb', line 20 def to_s "#{format} plists are currently unsupported" end |