Exception: Miso::UnsupportedFileType

Inherits:
MisoError
  • Object
show all
Defined in:
lib/miso.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ UnsupportedFileType

Returns a new instance of UnsupportedFileType.



9
10
11
12
# File 'lib/miso.rb', line 9

def initialize(path)
  ext = File.extname(path)[1..-1]
  super("Miso does not support file type `#{ext}' of `#{path}'")
end