Laurent Sansonetti's answer for MacRuby/RubyMotion's lack of an implementation for Grand Central Dispatch's dispatch_once
EDIT: RubyMotion now has dispatch_once... do not use this code.