Method: Iptables::Decoder#initialize

Defined in:
lib/iptables.rb

#initialize(opts = {}) ⇒ Decoder

Initialize the decoder object

Parameters:

  • opts (Hash) (defaults to: {})

    a hash of options

Options Hash (opts):

  • :debug (Bool)

    If true, turns on debugging output

  • :iptables_compatibilty (String)

    version of iptables to be compatible with. Since some versions differ wildly, this might be necessary.



38
39
40
41
42
43
# File 'lib/iptables.rb', line 38

def initialize(opts = {})
  @opts = {
    :debug => false,
    :iptables_compatibility => nil,
  }.merge(opts)
end