Exception: Headown::NotMarkdownError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/headown.rb

Instance Method Summary collapse

Constructor Details

#initialize(file_path:) ⇒ NotMarkdownError

Returns a new instance of NotMarkdownError.



7
8
9
10
# File 'lib/headown.rb', line 7

def initialize(file_path:)
  msg = "#{file_path} is not a Markdown file."
  super(msg)
end