ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: How to re-replace Hash default value behaviour?
by Craig Demyanovich other posts by this author
May 8 2008 7:28PM messages near this date
Re: How to re-replace Hash default value behaviour? | Re: How to re-replace Hash default value behaviour?
Reset the default.

> > a = Hash.new(0)
=>  {}
> > a["joe"]
=>  0
> > a.default = nil
=>  nil
> > a["joe"]
=>  nil

Regards,
Craig
Thread:
Siep Korteling
Andrea Fazzi
Craig Demyanovich
Siep Korteling
Matt Neuburg

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved