@@ -293,24 +293,24 @@ def to_arr
293
293
294
294
##
295
295
# A String object with a BER identifier attached.
296
- #
296
+ #
297
297
class Net ::BER ::BerIdentifiedString < String
298
298
attr_accessor :ber_identifier
299
299
300
300
# The binary data provided when parsing the result of the LDAP search
301
301
# has the encoding 'ASCII-8BIT' (which is basically 'BINARY', or 'unknown').
302
- #
302
+ #
303
303
# This is the kind of a backtrace showing how the binary `data` comes to
304
304
# BerIdentifiedString.new(data):
305
305
#
306
306
# @conn.read_ber(syntax)
307
307
# -> StringIO.new(self).read_ber(syntax), i.e. included from module
308
- # -> Net::BER::BERParser.read_ber(syntax)
308
+ # -> Net::BER::BERParser.read_ber(syntax)
309
309
# -> (private)Net::BER::BERParser.parse_ber_object(syntax, id, data)
310
- #
310
+ #
311
311
# In the `#parse_ber_object` method `data`, according to its OID, is being
312
312
# 'casted' to one of the Net::BER:BerIdentifiedXXX classes.
313
- #
313
+ #
314
314
# As we are using LDAP v3 we can safely assume that the data is encoded
315
315
# in UTF-8 and therefore the only thing to be done when instantiating is to
316
316
# switch the encoding from 'ASCII-8BIT' to 'UTF-8'.
@@ -322,9 +322,9 @@ class Net::BER::BerIdentifiedString < String
322
322
# I have no clue how this encodings function.
323
323
def initialize args
324
324
super
325
- #
325
+ #
326
326
# Check the encoding of the newly created String and set the encoding
327
- # to 'UTF-8' (NOTE: we do NOT change the bytes, but only set the
327
+ # to 'UTF-8' (NOTE: we do NOT change the bytes, but only set the
328
328
# encoding to 'UTF-8').
329
329
current_encoding = encoding
330
330
if current_encoding == Encoding ::BINARY
0 commit comments