Sha256: b25dd7fabd65637b4da4af7320f594da30682c32e5cffdf15acaf269d699eebd

Contents?: true

Size: 296 Bytes

Versions: 17

Compression:

Stored size: 296 Bytes

Contents

# -*- ruby encoding: utf-8 -*-
##
# BER extensions to +true+.
module Net::BER::Extensions::TrueClass
  ##
  # Converts +true+ to the BER wireline representation of +true+.
  def to_ber
    # http://tools.ietf.org/html/rfc4511#section-5.1
    "\001\001\xFF".force_encoding("ASCII-8BIT")
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
net-ldap-0.19.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.18.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.17.1 lib/net/ber/core_ext/true_class.rb
net-ldap-0.17.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.16.3 lib/net/ber/core_ext/true_class.rb
net-ldap-0.16.2 lib/net/ber/core_ext/true_class.rb
net-ldap-0.16.1 lib/net/ber/core_ext/true_class.rb
net-ldap-0.16.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.15.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.14.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.13.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.12.1 lib/net/ber/core_ext/true_class.rb
net-ldap-0.12.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.11 lib/net/ber/core_ext/true_class.rb
net-ldap-0.10.1 lib/net/ber/core_ext/true_class.rb
net-ldap-0.10.0 lib/net/ber/core_ext/true_class.rb
net-ldap-0.9.0 lib/net/ber/core_ext/true_class.rb