Quiz 2
1. Which constant stores the global search path for require?
2. What does `Fiber.yield` do?
3. Which method can be used to set a trap for signals (like INT)?
4. What is the difference between `load` and `require`?
5. What does `ObjectSpace.each_object(Class)` return?
6. Which method can be used to safely define a method if it doesn't already exist?
7. What is `Module#const_get` used for?
8. Which method returns the list of modules included in a class?
9. What does the `||=` operator do when the left side is nil?
10. What is a 'Closure' in Ruby?
Previous Next