lib/valvat.rb in valvat-1.2.1 vs lib/valvat.rb in valvat-1.3.0
- old
+ new
@@ -50,9 +50,14 @@
def to_s
raw
end
+ def ==(other)
+ raw == other.raw
+ end
+ alias_method :eql?, :==
+
def inspect
"#<Valvat #{[raw, iso_country_code].compact.join(' ')}>"
end
end