R
Roger Pack
So, in 1.9 it appears that the Fiber class exists before you've required
fiber. Thoughts?
irb(main):001:0> Fiber
=> Fiber
irb(main):002:0> Fiber.current
NoMethodError: undefined method `current' for Fiber:Class
from (irb):2
from /Users/rogerpack/19/bin/irb:12:in `<main>'
irb(main):003:0> require 'fiber'
=> true
irb(main):004:0> Fiber.current
=> #<Fiber:0x11bb10>
And, oddly, only fiber.bundle exists, not fiber.rb
is this more like 'supplemental fiber methods' or something?
Anyway it works, I'm just curious.
Thanks!
-R
fiber. Thoughts?
irb(main):001:0> Fiber
=> Fiber
irb(main):002:0> Fiber.current
NoMethodError: undefined method `current' for Fiber:Class
from (irb):2
from /Users/rogerpack/19/bin/irb:12:in `<main>'
irb(main):003:0> require 'fiber'
=> true
irb(main):004:0> Fiber.current
=> #<Fiber:0x11bb10>
And, oddly, only fiber.bundle exists, not fiber.rb
is this more like 'supplemental fiber methods' or something?
Anyway it works, I'm just curious.
Thanks!
-R