Module: Virginity::FieldValues::CaseInsensitiveValue

Included in:
BeginEnd
Defined in:
lib/virginity/vcard/field_values/case_insensitive_value.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



5
6
7
8
9
10
# File 'lib/virginity/vcard/field_values/case_insensitive_value.rb', line 5

def ==(other)
  group == other.group &&
    has_name?(other.name) &&
    params == other.params &&
    (raw_value.casecmp(other.raw_value) == 0)
end