# File tk/lib/tkextlib/tcllib/widget.rb, line 32 def self.isa(compare_as, *args) begin return Tk.tk_call('::widget::isa', compare_as, *args) rescue => e if TkComm.bool(Tk.tk_call('info','command','::widget::isa')) || ! TkComm.bool(Tk.tk_call('info','command','::widget::validate')) fail e end end Tk.tk_call('::widget::validate', compare_as, *args) end
# File tk/lib/tkextlib/tcllib/widget.rb, line 19 def self.package_name PACKAGE_NAME end
# File tk/lib/tkextlib/tcllib/widget.rb, line 23 def self.package_version begin TkPackage.require('widget') rescue '' end end
# File tk/lib/tkextlib/tcllib/widget.rb, line 43 def self.validate(compare_as, *args) begin return Tk.tk_call('::widget::validate', compare_as, *args) rescue => e if TkComm.bool(Tk.tk_call('info','command','::widget::validate')) || ! TkComm.bool(Tk.tk_call('info','command','::widget::isa')) fail e end end Tk.tk_call('::widget::isa', compare_as, *args) 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.