lib/sitehub/cookie/attribute.rb in sitehub-0.4.2 vs lib/sitehub/cookie/attribute.rb in sitehub-0.4.3

- old
+ new

@@ -3,20 +3,20 @@ class Cookie class Attribute include StringSanitiser attr_accessor :name, :value - def initialize name, value + def initialize(name, value) @name = sanitise(name).to_s.to_sym @value = sanitise(value || EMPTY_STRING) end def to_s "#{name}=#{value}" end - def == other - other.is_a?(Attribute) && self.name == other.name && self.value == other.value + def ==(other) + other.is_a?(Attribute) && name == other.name && value == other.value end end end -end \ No newline at end of file +end