module Pcapz

Constants

VERSION

Public Class Methods

capture() click to toggle source
# 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