Class: Net::BER::BerIdentifiedString

Inherits:
String
  • Object
show all
Defined in:
lib/net/ber.rb

Overview

A String object with a BER identifier attached.

Constant Summary

Constants included from BERParser

Net::BER::BERParser::BuiltinSyntax

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::String

#read_ber, #read_ber!, #reject_empty_ber_arrays, #to_ber, #to_ber_application_string, #to_ber_bin, #to_ber_contextspecific

Methods included from BERParser

#read_ber

Constructor Details

#initialize(args) ⇒ BerIdentifiedString

Returns a new instance of BerIdentifiedString.



298
299
300
301
302
# File 'lib/net/ber.rb', line 298

def initialize args
  super args
  # LDAP uses UTF-8 encoded strings
  self.encode('UTF-8') if self.respond_to?(:encoding) rescue self
end

Instance Attribute Details

#ber_identifierObject

Returns the value of attribute ber_identifier.



297
298
299
# File 'lib/net/ber.rb', line 297

def ber_identifier
  @ber_identifier
end