# File tk/lib/tk/winpkg.rb, line 122
def delete(keynam, valnam=None)
tk_call('registry', 'delete', keynam, valnam)
end
# File tk/lib/tk/winpkg.rb, line 126
def get(keynam, valnam)
tk_call('registry', 'get', keynam, valnam)
end
# File tk/lib/tk/winpkg.rb, line 130
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 139
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, 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.