# File lib/mspec/guards/background.rb, line 14 14: def process_is_foreground 15: g = BackgroundGuard.new 16: g.name = :process_is_foreground 17: yield if g.yield? true 18: ensure 19: g.unregister 20: end