summaryrefslogtreecommitdiff
path: root/spec/ruby/core/fiber/fixtures/classes.rb
blob: c00facd6e16c869c83ffcb9662b5c3a1bac50294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module FiberSpecs

  class NewFiberToRaise
    def self.raise(*args)
      fiber = Fiber.new { Fiber.yield }
      fiber.resume
      fiber.raise(*args)
    end
  end

  class CustomError < StandardError; end
end