# module Tk::MacResource

### Constants

PACKAGE_NAME
TkCommandNames

### Public Class Methods

close(rsrcRef) click to toggle source

    # File lib/tk/macpkg.rb, line 44
    def close(rsrcRef)
      tk_call('resource', 'close', rsrcRef)
    end

delete(rsrcType, opts=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 48
    def delete(rsrcType, opts=nil)
      tk_call('resource', 'delete', *(hash_kv(opts) << rsrcType))
    end

files(rsrcRef=nil) click to toggle source

    # File 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

list(rsrcType, rsrcRef=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 60
    def list(rsrcType, rsrcRef=nil)
      tk_split_simplelist(tk_call('resource', 'list', rsrcType, rsrcRef))
    end

open(fname, access=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 64
    def open(fname, access=nil)
      tk_call('resource', 'open', fname, access)
    end

package_name() click to toggle source

    # File lib/tk/macpkg.rb, line 38
    def self.package_name
      PACKAGE_NAME
    end

read(rsrcType, rsrcID, rsrcRef=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 68
    def read(rsrcType, rsrcID, rsrcRef=nil)
      tk_call('resource', 'read', rsrcType, rsrcID, rsrcRef)
    end

types(rsrcRef=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 72
    def types(rsrcRef=nil)
      tk_split_simplelist(tk_call('resource', 'types', rsrcRef))
    end

write(rsrcType, data, opts=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 76
    def write(rsrcType, data, opts=nil)
      tk_call('resource', 'write', *(hash_kv(opts) << rsrcType << data))
    end

### Private Instance Methods

close(rsrcRef) click to toggle source

    # File lib/tk/macpkg.rb, line 44
    def close(rsrcRef)
      tk_call('resource', 'close', rsrcRef)
    end

delete(rsrcType, opts=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 48
    def delete(rsrcType, opts=nil)
      tk_call('resource', 'delete', *(hash_kv(opts) << rsrcType))
    end

files(rsrcRef=nil) click to toggle source

    # File 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

list(rsrcType, rsrcRef=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 60
    def list(rsrcType, rsrcRef=nil)
      tk_split_simplelist(tk_call('resource', 'list', rsrcType, rsrcRef))
    end

open(fname, access=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 64
    def open(fname, access=nil)
      tk_call('resource', 'open', fname, access)
    end

read(rsrcType, rsrcID, rsrcRef=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 68
    def read(rsrcType, rsrcID, rsrcRef=nil)
      tk_call('resource', 'read', rsrcType, rsrcID, rsrcRef)
    end

types(rsrcRef=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 72
    def types(rsrcRef=nil)
      tk_split_simplelist(tk_call('resource', 'types', rsrcRef))
    end

write(rsrcType, data, opts=nil) click to toggle source

    # File lib/tk/macpkg.rb, line 76
    def write(rsrcType, data, opts=nil)
      tk_call('resource', 'write', *(hash_kv(opts) << rsrcType << data))
    end