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.
13 14 15 16 |
# File 'lib/nanaimo/writer.rb', line 13 def initialize(plist_format, object) @plist_format = plist_format @object = object end |
Instance Method Details
#to_s ⇒ Object
18 19 20 21 |
# File 'lib/nanaimo/writer.rb', line 18 def to_s "Unable to write #{@object.inspect}. " \ "`#{@object.class}` is an invalid object type to serialize in a #{@plist_format} plist." end |