Class: Net::BER::BerIdentifiedString
Overview
A String object with a BER identifier attached.
Constant Summary
Constants included from BERParser
Net::BER::BERParser::BuiltinSyntax
Instance Attribute Summary collapse
-
#ber_identifier ⇒ Object
Returns the value of attribute ber_identifier.
Instance Method Summary collapse
-
#initialize(args) ⇒ BerIdentifiedString
constructor
A new instance of BerIdentifiedString.
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
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_identifier ⇒ Object
Returns the value of attribute ber_identifier.
297 298 299 |
# File 'lib/net/ber.rb', line 297 def ber_identifier @ber_identifier end |