# File tk/lib/tk/macpkg.rb, line 44 def close(rsrcRef) tk_call('resource', 'close', rsrcRef) end
# File tk/lib/tk/macpkg.rb, line 48 def delete(rsrcType, opts=nil) tk_call('resource', 'delete', *(hash_kv(opts) << rsrcType)) end
# File tk/lib/tk/macpkg.rb, line 52 def files(rsrcRef=nil) if rsrcRef tk_call('resource', 'files', rsrcRef) else tk_split_simplelist(tk_call('resource', 'files')) end end
# File tk/lib/tk/macpkg.rb, line 60 def list(rsrcType, rsrcRef=nil) tk_split_simplelist(tk_call('resource', 'list', rsrcType, rsrcRef)) end
# File tk/lib/tk/macpkg.rb, line 64 def open(fname, access=nil) tk_call('resource', 'open', fname, access) end
# File tk/lib/tk/macpkg.rb, line 38 def self.package_name PACKAGE_NAME end
# File tk/lib/tk/macpkg.rb, line 68 def read(rsrcType, rsrcID, rsrcRef=nil) tk_call('resource', 'read', rsrcType, rsrcID, rsrcRef) 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.