Parent

Included Modules

Class Index [+]

Quicksearch

ActiveLdap::Ldif

Attributes

version[R]
records[R]

Public Class Methods

new(records=[]) click to toggle source
     # File lib/active_ldap/ldif.rb, line 602
602:     def initialize(records=[])
603:       @version = 1
604:       @records = records
605:     end
parse(ldif) click to toggle source
     # File lib/active_ldap/ldif.rb, line 594
594:       def parse(ldif)
595:         Parser.new(ldif).parse
596:       end

Public Instance Methods

<<(record) click to toggle source
     # File lib/active_ldap/ldif.rb, line 607
607:     def <<(record)
608:       @records << record
609:     end
==(other) click to toggle source
     # File lib/active_ldap/ldif.rb, line 623
623:     def ==(other)
624:       other.is_a?(self.class) and
625:         @version == other.version and @records == other.records
626:     end
each(&block) click to toggle source
     # File lib/active_ldap/ldif.rb, line 611
611:     def each(&block)
612:       @records.each(&block)
613:     end
to_s() click to toggle source
     # File lib/active_ldap/ldif.rb, line 615
615:     def to_s
616:       result = "version: #{@version}\n"
617:       result << @records.collect do |record|
618:         record.to_s
619:       end.join("\n")
620:       result
621:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.