russian_phone 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/russian_phone/number.rb +8 -0
- data/lib/russian_phone/version.rb +1 -1
- metadata +1 -1
data/lib/russian_phone/number.rb
CHANGED
@@ -44,6 +44,14 @@ module RussianPhone
|
|
44
44
|
@valid ||= !(country.nil? || city.nil? || subscriber.nil? || country == '' || city == '' || subscriber == '')
|
45
45
|
end
|
46
46
|
|
47
|
+
def blank?
|
48
|
+
@phone.strip == ''
|
49
|
+
end
|
50
|
+
|
51
|
+
def empty?
|
52
|
+
@phone.strip == ''
|
53
|
+
end
|
54
|
+
|
47
55
|
def subscriber
|
48
56
|
@subscriber ||= parse(:subscriber)
|
49
57
|
end
|