Sha256: 7102644454444a229ae492a0b2b924bb02ccbaf1fa1b50c732c49153881aa40d
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
class ShortLived < Moveable def initialize window super window threaded self.lifetime do self.destroy! end end class << self def lifetime lifetime = nil, &block block = lambda { lifetime } unless block_given? define_method :lifetime, &block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gosu_extensions-0.1.0 | lib/units/short_lived.rb |