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.



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

def initialize(format)
  @format = format
end

Instance Attribute Details

#formatSymbol (readonly)

Returns The unsupported format.

Returns:

  • (Symbol)

    The unsupported format.



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

def format
  @format
end

Instance Method Details

#to_sObject



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

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