module ROM::LDAP::LDIF
LDAP
Data Interchange Format (LDIF
)
Refines Array and Hash with to_ldif
method.
@see Directory::Entry
@see Relation::Exporting
Public Class Methods
to_tuples(ldif, &block)
click to toggle source
@example
ROM::LDAP::LDIF("version: 3\n") => [{}]
@param ldif [String]
@return [Array<Hash>]
@api private
# File lib/rom/ldap/ldif.rb, line 32 def self.to_tuples(ldif, &block) Importer.new(ldif).to_tuples(&block) end
Public Instance Methods
to_ldif()
click to toggle source
Convert hash to LDIF
format
@return [String]
@api public
# File lib/rom/ldap/ldif.rb, line 44 def to_ldif Exporter.new([self]).to_ldif end