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.



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_sObject



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