Exception: Nanaimo::Reader::UnsupportedPlistFormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/nanaimo/reader.rb

Overview

Raised when attempting to read a plist with an unsupported file format.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#formatSymbol (readonly)

Returns The unsupported format.

Returns:

  • (Symbol)

    The unsupported format.


14
15
16
# File 'lib/nanaimo/reader.rb', line 14

def format
  @format
end

Instance Method Details

#to_sObject


20
21
22
# File 'lib/nanaimo/reader.rb', line 20

def to_s
  "#{format} plists are currently unsupported"
end