Exception: Aozora2Html::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Aozora2Html::Error
- Defined in:
- lib/aozora2html/error.rb
Overview
例外class
Instance Method Summary collapse
-
#initialize(msg) ⇒ Error
constructor
A new instance of Error.
- #message(line = 0) ⇒ Object
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 = msg end |
Instance Method Details
#message(line = 0) ⇒ Object
13 14 15 |
# File 'lib/aozora2html/error.rb', line 13 def (line = 0) I18n.t(:error_stop, line, ) end |