Module: ActiveLdap::Schema::Syntaxes

Defined in:
lib/active_ldap/schema/syntaxes.rb

Defined Under Namespace

Classes: Base, BitString, Boolean, CountryString, DirectoryString, DistinguishedName, GeneralizedTime, Integer, JPEG, NameAndOptionalUID, NumericString, OID, ObjectSecurityDescriptor, OctetString, OtherMailbox, PostalAddress, PrintableString, TelephoneNumber, UnicodePwd

Class Method Summary collapse

Class Method Details

.[](id) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/active_ldap/schema/syntaxes.rb', line 5

def [](id)
  syntax = Base::SYNTAXES[id]
  if syntax
    syntax.new
  else
    nil
  end
end