Exception: Nanaimo::Writer::UnsupportedPlistTypeError
- Defined in:
- lib/nanaimo/writer.rb
Overview
Raised when attempting to write a plist containing an object of an unsupported type.
Instance Method Summary collapse
-
#initialize(plist_format, object) ⇒ UnsupportedPlistTypeError
constructor
A new instance of UnsupportedPlistTypeError.
- #to_s ⇒ Object
Constructor Details
#initialize(plist_format, object) ⇒ UnsupportedPlistTypeError
Returns a new instance of UnsupportedPlistTypeError.
15 16 17 18 |
# File 'lib/nanaimo/writer.rb', line 15 def initialize(plist_format, object) @plist_format = plist_format @object = object end |
Instance Method Details
#to_s ⇒ Object
20 21 22 23 |
# File 'lib/nanaimo/writer.rb', line 20 def to_s "Unable to write #{@object.inspect}. " \ "`#{@object.class}` is an invalid object type to serialize in a #{@plist_format} plist." end |