Parent

Class Index [+]

Quicksearch

ActiveLdap::Ldif::ChangeRecord::Control

Attributes

type[R]
value[R]

Public Class Methods

new(type, criticality, value) click to toggle source
     # File lib/active_ldap/ldif.rb, line 718
718:         def initialize(type, criticality, value)
719:           @type = type
720:           @criticality = normalize_criticality(criticality)
721:           @value = value
722:         end

Public Instance Methods

==(other) click to toggle source
     # File lib/active_ldap/ldif.rb, line 748
748:         def ==(other)
749:           other.is_a?(self.class) and
750:             @type == other.type and
751:             @criticality = other.criticality and
752:             @value == other.value
753:         end
criticality?() click to toggle source
     # File lib/active_ldap/ldif.rb, line 724
724:         def criticality?
725:           @criticality
726:         end
to_a() click to toggle source
     # File lib/active_ldap/ldif.rb, line 728
728:         def to_a
729:           [@type, @criticality, @value]
730:         end
to_hash() click to toggle source
     # File lib/active_ldap/ldif.rb, line 732
732:         def to_hash
733:           {
734:             :type => @type,
735:             :criticality => @criticality,
736:             :value => @value,
737:           }
738:         end
to_s() click to toggle source
     # File lib/active_ldap/ldif.rb, line 740
740:         def to_s
741:           result = "control: #{@type}"
742:           result << " #{@criticality}" unless @criticality.nil?
743:           result << @value if @value
744:           result << "\n"
745:           result
746:         end

Private Instance Methods

normalize_criticality(criticality) click to toggle source
     # File lib/active_ldap/ldif.rb, line 756
756:         def normalize_criticality(criticality)
757:           case criticality
758:           when "true", true
759:             true
760:           when "false", false
761:             false
762:           when nil
763:             nil
764:           else
765:             raise ArgumentError,
766:                   _("invalid criticality value: %s") % criticality.inspect
767:           end
768:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.