<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/object</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 15 Feb 2012 05:24:41 GMT</pubDate>
<item>
<title>(Ruby) to_struct method for Ruby hashes</title>
<link>http://snipplr.com/view/15707/tostruct-method-for-ruby-hashes/</link>
<description><![CDATA[ <p>[A very useful snippet found in this thread.](http://www.ruby-forum.com/topic/131974)

However it does not do deep conversion, that is, for a hash of hashes, you will get back a struct of hashes.</p> ]]></description>
<pubDate>Mon, 08 Jun 2009 16:26:09 GMT</pubDate>
<guid>http://snipplr.com/view/15707/tostruct-method-for-ruby-hashes/</guid>
</item>
<item>
<title>(JavaScript) Toggle value of nested property</title>
<link>http://snipplr.com/view/3251/toggle-value-of-nested-property/</link>
<description><![CDATA[ <p>I feel like I once found an elegant way of setting nested properties without using eval().  However i can't find that code, and atm this is the best I can do.</p> ]]></description>
<pubDate>Sun, 08 Jul 2007 10:58:49 GMT</pubDate>
<guid>http://snipplr.com/view/3251/toggle-value-of-nested-property/</guid>
</item>
<item>
<title>(Perl) provide default values for a hash</title>
<link>http://snipplr.com/view/3139/provide-default-values-for-a-hash/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:14:08 GMT</pubDate>
<guid>http://snipplr.com/view/3139/provide-default-values-for-a-hash/</guid>
</item>
<item>
<title>(Perl) dump the contents of a data structure</title>
<link>http://snipplr.com/view/3138/dump-the-contents-of-a-data-structure/</link>
<description><![CDATA[ <p>hashes in Perl can be so elegant</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:08:28 GMT</pubDate>
<guid>http://snipplr.com/view/3138/dump-the-contents-of-a-data-structure/</guid>
</item>
<item>
<title>(JavaScript) keys: get an array of all property names in an object</title>
<link>http://snipplr.com/view/2841/keys-get-an-array-of-all-property-names-in-an-object/</link>
<description><![CDATA[ <p>do the same thing as the Perl "keys" subroutine</p> ]]></description>
<pubDate>Mon, 11 Jun 2007 08:56:49 GMT</pubDate>
<guid>http://snipplr.com/view/2841/keys-get-an-array-of-all-property-names-in-an-object/</guid>
</item>
<item>
<title>(JavaScript) Accept a parameter that is /either/ a DOM element /or/ the ID of a DOM element.</title>
<link>http://snipplr.com/view/2710/accept-a-parameter-that-is-either-a-dom-element-or-the-id-of-a-dom-element/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 24 May 2007 13:40:48 GMT</pubDate>
<guid>http://snipplr.com/view/2710/accept-a-parameter-that-is-either-a-dom-element-or-the-id-of-a-dom-element/</guid>
</item>
<item>
<title>(JavaScript) Does an object have a specific property?</title>
<link>http://snipplr.com/view/2708/does-an-object-have-a-specific-property/</link>
<description><![CDATA[ <p>This is a very easy way to check if an object has a given property.  Easier than checking if (obj.foo != null) or some such, which is what I've been doing :(  From Flanagan, 5th ed, p. 108.; but I actually ran across it in the source of this page: http://www.gtalbot.org/DHTMLSection/DynamicOpacity.html, thanks to Gerard Talbot on clj.</p> ]]></description>
<pubDate>Thu, 24 May 2007 09:24:08 GMT</pubDate>
<guid>http://snipplr.com/view/2708/does-an-object-have-a-specific-property/</guid>
</item>
</channel>
</rss>
