Module: Rubrowser::Monitor
- Defined in:
- lib/rubrowser/monitor.rb
Class Method Summary collapse
Class Method Details
.run(path: '', port: 8080) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rubrowser/monitor.rb', line 8 def run(path: '', port: 8080) $rd, $wr = IO.pipe if fork $rd.close Trace.new(path: path).run else $wr.close Server.new(port: port).run exit end end |