lib/valvat.rb in valvat-0.6.1 vs lib/valvat.rb in valvat-0.6.2
- old
+ new
@@ -4,9 +4,13 @@
@vat_country_code, @to_s_wo_country = to_a
end
attr_reader :raw, :vat_country_code, :to_s_wo_country
+ def blank?
+ raw.nil? || raw.strip == ""
+ end
+
def valid?
Valvat::Syntax.validate(self)
end
def valid_checksum?