# File tk/lib/tk/winpkg.rb, line 121
def delete(keynam, valnam=None)
tk_call('registry', 'delete', keynam, valnam)
end
# File tk/lib/tk/winpkg.rb, line 125
def get(keynam, valnam)
tk_call('registry', 'get', keynam, valnam)
end
# File tk/lib/tk/winpkg.rb, line 129
def keys(keynam, pattern=nil)
lst = tk_split_simplelist(tk_call('registry', 'keys', keynam))
if pattern
lst.find_all{|key| key =~ pattern}
else
lst
end
end
# File tk/lib/tk/winpkg.rb, line 138
def set(keynam, valnam=None, data=None, dattype=None)
tk_call('registry', 'set', keynam, valnam, data, dattype)
end
Commenting is here to help enhance the documentation. For example, sample code, 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.