Module: Net::BER::Extensions::TrueClass

Included in:
TrueClass
Defined in:
lib/net/ber/core_ext/true_class.rb

Overview

BER extensions to true.

Instance Method Summary collapse

Instance Method Details

#to_berObject

Converts true to the BER wireline representation of true.



7
8
9
10
# File 'lib/net/ber/core_ext/true_class.rb', line 7

def to_ber
  # http://tools.ietf.org/html/rfc4511#section-5.1
  "\001\001\xFF".force_encoding("ASCII-8BIT")
end