Skip to content

Instantly share code, notes, and snippets.

var test: UIView = nil
module SuperSillyHash
def []=(key, value)
super(key, value.to_i)
end
end
hash = {}
hash.extend(SuperSillyHash)
hash[:test] = '20'
Process: Chocolat [29947]
Path: /Users/USER/Downloads/Chocolat.app/Contents/MacOS/Chocolat
Identifier: com.chocolatapp.Chocolat
Version: 2.1 (2.1)
Code Type: X86-64 (Native)
Parent Process: launchd [155]
Responsible: Chocolat [29947]
User ID: 501
Date/Time: 2013-12-10 02:03:01.690 -0600