Exception: TdlError
- Inherits:
-
ScriptError
- Object
- ScriptError
- TdlError
- Defined in:
- lib/tdl/tdlerror/tdlerror.rb
Instance Method Summary collapse
-
#initialize(arge) ⇒ TdlError
constructor
A new instance of TdlError.
Constructor Details
#initialize(arge) ⇒ TdlError
Returns a new instance of TdlError.
2 3 4 5 6 7 8 |
# File 'lib/tdl/tdlerror/tdlerror.rb', line 2 def initialize(arge) Tdl.PutsEnable = false head_str0 = String.new("\n+_____________________________________________+\n") head_str1 = "\n|----------------TDL ERROR--------------------|\n" end_str0 = "\n+================TDL ERROR====================+\n" super(head_str0.concat(head_str1).concat(arge.to_s[0,255]).concat(end_str0)) end |