Method: Dnsruby::Bitmap.from_set_bit_position_array
- Defined in:
- lib/dnsruby/bitmap.rb
.from_set_bit_position_array(array) ⇒ Object
Creates an instance from an array of positions for the bits that are set (e.g. [0, 3])
73 74 75 |
# File 'lib/dnsruby/bitmap.rb', line 73 def self.from_set_bit_position_array(array) new(BitMapping.set_bit_position_array_to_number(array)) end |