Methods
C
D
F
L
O
P
R
T
W
Constants
TkCommandNames = ['resource'.freeze].freeze
 
PACKAGE_NAME = 'resource'.freeze
 
Class Public methods
close(rsrcRef)
# File ext/tk/lib/tk/macpkg.rb, line 43
def close(rsrcRef)
  tk_call('resource', 'close', rsrcRef)
end
delete(rsrcType, opts=nil)
# File ext/tk/lib/tk/macpkg.rb, line 47
def delete(rsrcType, opts=nil)
  tk_call('resource', 'delete', *(hash_kv(opts) << rsrcType))
end
files(rsrcRef=nil)
# File ext/tk/lib/tk/macpkg.rb, line 51
def files(rsrcRef=nil)
  if rsrcRef
    tk_call('resource', 'files', rsrcRef)
  else
    tk_split_simplelist(tk_call('resource', 'files'))
  end
end
list(rsrcType, rsrcRef=nil)
# File ext/tk/lib/tk/macpkg.rb, line 59
def list(rsrcType, rsrcRef=nil)
  tk_split_simplelist(tk_call('resource', 'list', rsrcType, rsrcRef))
end
open(fname, access=nil)
# File ext/tk/lib/tk/macpkg.rb, line 63
def open(fname, access=nil)
  tk_call('resource', 'open', fname, access)
end
package_name()
# File ext/tk/lib/tk/macpkg.rb, line 37
def self.package_name
  PACKAGE_NAME
end
read(rsrcType, rsrcID, rsrcRef=nil)
# File ext/tk/lib/tk/macpkg.rb, line 67
def read(rsrcType, rsrcID, rsrcRef=nil)
  tk_call('resource', 'read', rsrcType, rsrcID, rsrcRef)
end
types(rsrcRef=nil)
# File ext/tk/lib/tk/macpkg.rb, line 71
def types(rsrcRef=nil)
  tk_split_simplelist(tk_call('resource', 'types', rsrcRef))
end
write(rsrcType, data, opts=nil)
# File ext/tk/lib/tk/macpkg.rb, line 75
def write(rsrcType, data, opts=nil)
  tk_call('resource', 'write', *(hash_kv(opts) << rsrcType << data))
end