# File lib/active_ldap/ldif.rb, line 718 def initialize(type, criticality, value) @type = type @criticality = normalize_criticality(criticality) @value = value end
# File lib/active_ldap/ldif.rb, line 748 def ==(other) other.is_a?(self.class) and @type == other.type and @criticality = other.criticality and @value == other.value end
# File lib/active_ldap/ldif.rb, line 724 def criticality? @criticality end
# File lib/active_ldap/ldif.rb, line 728 def to_a [@type, @criticality, @value] end
# File lib/active_ldap/ldif.rb, line 732 def to_hash { :type => @type, :criticality => @criticality, :value => @value, } end
# File lib/active_ldap/ldif.rb, line 740 def to_s result = "control: #{@type}" result << " #{@criticality}" unless @criticality.nil? result << @value if @value result << "\n" result end