class Darkroom::UnrecognizedExtensionError

Error class used when a reference is made to a file with an unrecognized extension.

Public Class Methods

new(file, source_path = nil, source_line_num = nil) click to toggle source

Creates a new instance.

  • file - File with the unrecognized extension.

  • source_path - Path of the asset that contains the error (optional).

  • source_line_num - Line number in the asset where the error is located (optional).

Calls superclass method Darkroom::AssetError::new
# File lib/darkroom/errors/unrecognized_extension_error.rb, line 17
def initialize(file, source_path = nil, source_line_num = nil)
  super('File extension not recognized', file, source_path, source_line_num)
end