In Files

  • tk/lib/tkextlib/tclx/tclx.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

Tk::TclX::XPG3_MsgCat

Public Class Methods

new(catname, fail_mode=false) click to toggle source
 
               # File tk/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
            

Public Instance Methods

close(fail_mode=false) click to toggle source
 
               # File tk/lib/tkextlib/tclx/tclx.rb, line 60
def close(fail_mode=false)
  if fail_mode
    Tk.tk_call('catclose', '-fail', @msgcat_id)
  else
    Tk.tk_call('catclose', '-nofail', @msgcat_id)
  end
  self
end
            
get(setnum, msgnum, defaultstr) click to toggle source
 
               # File tk/lib/tkextlib/tclx/tclx.rb, line 69
def get(setnum, msgnum, defaultstr)
  Tk.tk_call('catgets', @msgcat_id, setnum, msgnum, defaultstr)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus