Exception: Nanaimo::Writer::UnsupportedPlistTypeError

Inherits:
Error
  • Object
show all
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

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_sObject



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