Module: Ber::String
- Included in:
- String
- Defined in:
- lib/ber/string.rb
Instance Method Summary collapse
Instance Method Details
#to_ber(identifier = :string) ⇒ Object
3 4 5 |
# File 'lib/ber/string.rb', line 3 def to_ber(identifier = :string) "#{[Ber::Identifiers[identifier]].pack('C')}#{encoded_length}#{self}" end |