module Net::BER::Extensions::TrueClass

BER extensions to true.

Public Instance Methods

to_ber() click to toggle source

Converts true to the BER wireline representation of true.

# File lib/net/ber/core_ext/true_class.rb, line 6
def to_ber
  # http://tools.ietf.org/html/rfc4511#section-5.1
  "\001\001\xFF".force_encoding("ASCII-8BIT")
end