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!, #to_ber, #to_ber_application_string, #to_ber_contextspecific

Methods included from BERParser

#read_ber

Constructor Details

#initialize(args) ⇒ BerIdentifiedString

Returns a new instance of BerIdentifiedString.



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

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

Instance Attribute Details

#ber_identifierObject

Returns the value of attribute ber_identifier.



295
296
297
# File 'lib/net/ber.rb', line 295

def ber_identifier
  @ber_identifier
end