# File lib/ramaze/snippets/fiber.rb, line 7 7: def initialize 8: raise ArgumentError, 'new Fiber requires a block' unless block_given? 9: 10: @yield = Queue.new 11: @resume = Queue.new 12: 13: @thread = Thread.new{ @yield.push [*yield(*wait)] } 14: @thread.abort_on_exception = true 15: @thread[:fiber] = self 16: end
# File lib/ramaze/snippets/fiber.rb, line 37 37: def inspect 38: "#<#{self.class}:0x#{self.object_id.to_s(16)}>" 39: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.