Method: Dnsruby::Prefix#initialize
- Defined in:
- lib/dnsruby/resource/APL.rb
#initialize(af, prefix_length, negative, address_length, address) ⇒ Prefix
Returns a new instance of Prefix.
34 35 36 37 38 39 40 41 42 |
# File 'lib/dnsruby/resource/APL.rb', line 34 def initialize(af, prefix_length, negative, address_length, address) @af = af @prefix_length = prefix_length @negative = negative @address_length = address_length @address = address @flag = address_length @flag |= 0x80 if @negative end |