Module: ROM::LDAP::LDIF

Defined in:
lib/rom/ldap/ldif.rb,
lib/rom/ldap/ldif/exporter.rb,
lib/rom/ldap/ldif/importer.rb

Overview

LDAP Data Interchange Format (LDIF)

Refines Array and Hash with #to_ldif method.

Defined Under Namespace

Classes: Exporter, Importer

Class Method Summary collapse

Class Method Details

.to_tuples(ldif, &block) ⇒ Array<Hash>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Examples:


ROM::LDAP::LDIF("version: 3\n") => [{}]

Parameters:

  • ldif (String)

Returns:

  • (Array<Hash>)


32
33
34
# File 'lib/rom/ldap/ldif.rb', line 32

def self.to_tuples(ldif, &block)
  Importer.new(ldif).to_tuples(&block)
end