Fiber
initialize isn't being called, so we have to hook into ::new
# File lib/ramaze/snippets/ramaze/fiber.rb, line 4 def self.new(*args) instance = super instance.state = {} instance end
# File lib/ramaze/snippets/ramaze/fiber.rb, line 12 def [](key) @state[key] end
# File lib/ramaze/snippets/ramaze/fiber.rb, line 16 def []=(key, value) @state[key] = value end
# File lib/ramaze/snippets/ramaze/fiber.rb, line 20 def key?(key) @state.key?(key) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.