Class: Tk::TclX::XPG3_MsgCat
Instance Method Summary collapse
- #close(fail_mode = false) ⇒ Object
- #get(setnum, msgnum, defaultstr) ⇒ Object
-
#initialize(catname, fail_mode = false) ⇒ XPG3_MsgCat
constructor
A new instance of XPG3_MsgCat.
Constructor Details
#initialize(catname, fail_mode = false) ⇒ XPG3_MsgCat
Returns a new instance of XPG3_MsgCat.
52 53 54 55 56 57 58 |
# File 'lib/tkextlib/tclx/tclx.rb', line 52 def initialize(catname, fail_mode=false) if fail_mode @msgcat_id = Tk.tk_call('catopen', '-fail', catname) else @msgcat_id = Tk.tk_call('catopen', '-nofail', catname) end end |