Sha256: 5a9cb1161117619b536e198f7905bf7ee278f8f996ac15a8250631bf49d4f794
Contents?: true
Size: 410 Bytes
Versions: 40
Compression:
Stored size: 410 Bytes
Contents
module Ramaze class Fiber < ::Fiber # initialize isn't being called, so we have to hook into ::new def self.new(*args) instance = super instance.state = {} instance end attr_accessor :state def [](key) @state[key] end def []=(key, value) @state[key] = value end def key?(key) @state.key?(key) end end if defined?(::Fiber) end
Version data entries
40 entries across 40 versions & 4 rubygems