# File lib/net/ldap/core_ext/string.rb, line 15 def to_ber code = 4 [code].pack('C') + length.to_ber_length_encoding + self end