Parent

Methods

Class/Module Index [+]

Quicksearch

Ramaze::Fiber

Attributes

state[RW]

Public Class Methods

new(*args) click to toggle source

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

Public Instance Methods

[](key) click to toggle source
# File lib/ramaze/snippets/ramaze/fiber.rb, line 12
def [](key)
  @state[key]
end
[]=(key, value) click to toggle source
# File lib/ramaze/snippets/ramaze/fiber.rb, line 16
def []=(key, value)
  @state[key] = value
end
key?(key) click to toggle source
# File lib/ramaze/snippets/ramaze/fiber.rb, line 20
def key?(key)
  @state.key?(key)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.