Modules: Capture
"1.0.1"
6 7 8 9 10 11 12 13 14
# File 'lib/pcapz.rb', line 6 def self.capture if RUBY_PLATFORM =~ /linux/ return Capture::Linux elsif RUBY_PLATFORM =~ /darwin|freebsd|netbsd/ return Capture::BSD else raise "This platform #{RUBY_PLATFORM} is not yet supported!" end end