Exception: Aozora2Html::Error

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

Overview

例外class

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/aozora2html/error.rb', line 8

def initialize(msg)
  super
  @message = msg
end

Instance Method Details

#message(line = 0) ⇒ Object



13
14
15
# File 'lib/aozora2html/error.rb', line 13

def message(line = 0)
  I18n.t(:error_stop, line, @message)
end