phone_number_validator 0.4.8 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,170 +1,170 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class PhoneNumberValidator - Phone Number Validator</title>
8
-
9
- <script type="text/javascript">
10
- var rdoc_rel_prefix = "./";
11
- var index_rel_prefix = "./";
12
- </script>
13
-
14
- <script src="./js/jquery.js"></script>
15
- <script src="./js/darkfish.js"></script>
16
-
17
- <link href="./css/fonts.css" rel="stylesheet">
18
- <link href="./css/rdoc.css" rel="stylesheet">
19
-
20
-
21
-
22
- <body id="top" role="document" class="class">
23
- <nav role="navigation">
24
- <div id="project-navigation">
25
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
- <h2>
27
- <a href="./index.html" rel="home">Home</a>
28
- </h2>
29
-
30
- <div id="table-of-contents-navigation">
31
- <a href="./table_of_contents.html#pages">Pages</a>
32
- <a href="./table_of_contents.html#classes">Classes</a>
33
- <a href="./table_of_contents.html#methods">Methods</a>
34
- </div>
35
- </div>
36
-
37
- <div id="search-section" role="search" class="project-section initially-hidden">
38
- <form action="#" method="get" accept-charset="utf-8">
39
- <div id="search-field-wrapper">
40
- <input id="search-field" role="combobox" aria-label="Search"
41
- aria-autocomplete="list" aria-controls="search-results"
42
- type="text" name="search" placeholder="Search" spellcheck="false"
43
- title="Type to search, Up and Down to navigate, Enter to load">
44
- </div>
45
-
46
- <ul id="search-results" aria-label="Search Results"
47
- aria-busy="false" aria-expanded="false"
48
- aria-atomic="false" class="initially-hidden"></ul>
49
- </form>
50
- </div>
51
-
52
- </div>
53
-
54
-
55
-
56
- <div id="class-metadata">
57
-
58
- <div id="parent-class-section" class="nav-section">
59
- <h3>Parent</h3>
60
-
61
-
62
- <p class="link">Object
63
-
64
- </div>
65
-
66
-
67
-
68
- <!-- Method Quickref -->
69
- <div id="method-list-section" class="nav-section">
70
- <h3>Methods</h3>
71
-
72
- <ul class="link-list" role="directory">
73
-
74
- <li ><a href="#method-c-validate_phone_number">::validate_phone_number</a>
75
-
76
- </ul>
77
- </div>
78
-
79
- </div>
80
- </nav>
81
-
82
- <main role="main" aria-labelledby="class-PhoneNumberValidator">
83
- <h1 id="class-PhoneNumberValidator" class="class">
84
- class PhoneNumberValidator
85
- </h1>
86
-
87
- <section class="description">
88
-
89
- <p>This class is the master/parent class to all of the validation
90
- functionality</p>
91
-
92
- </section>
93
-
94
-
95
- <section id="5Buntitled-5D" class="documentation-section">
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- <section id="public-class-5Buntitled-5D-method-details" class="method-section">
106
- <header>
107
- <h3>Public Class Methods</h3>
108
- </header>
109
-
110
-
111
- <div id="method-c-validate_phone_number" class="method-detail ">
112
-
113
- <div class="method-heading">
114
- <span class="method-name">validate_phone_number</span><span
115
- class="method-args">(phone_number)</span>
116
-
117
- <span class="method-click-advice">click to toggle source</span>
118
-
119
- </div>
120
-
121
-
122
- <div class="method-description">
123
-
124
- <p>Validates any United States phone number!</p>
125
-
126
- <p><strong>Example:</strong></p>
127
-
128
- <pre class="ruby"><span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate_phone_number</span>(<span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
129
- </pre>
130
-
131
- <p><strong>Output:</strong></p>
132
-
133
- <pre>=&gt; &#39;+1 (949) 355-6244 ext. 198842&#39; is a valid phone number.&#39;
134
- =&gt; true</pre>
135
-
136
- <p><strong>Arguments:</strong></p>
137
-
138
- <pre>phone_number: (String)</pre>
139
-
140
-
141
-
142
-
143
- <div class="method-source-code" id="validate_phone_number-source">
144
- <pre><span class="ruby-comment"># File lib/phone_number_validator.rb, line 18</span>
145
- <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">validate_phone_number</span>(<span class="ruby-identifier">phone_number</span>)
146
- <span class="ruby-identifier">validator</span> = <span class="ruby-constant">Validator</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">phone_number</span>)
147
- <span class="ruby-identifier">validator</span>.<span class="ruby-identifier">validate_phone_number</span>
148
- <span class="ruby-keyword">end</span></pre>
149
- </div>
150
-
151
- </div>
152
-
153
-
154
-
155
-
156
- </div>
157
-
158
-
159
- </section>
160
-
161
- </section>
162
- </main>
163
-
164
-
165
- <footer id="validator-badges" role="contentinfo">
166
- <p><a href="https://validator.w3.org/check/referer">Validate</a>
167
- <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.4.
168
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
169
- </footer>
170
-
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class PhoneNumberValidator - Phone Number Validator</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="class">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+ <div id="parent-class-section" class="nav-section">
59
+ <h3>Parent</h3>
60
+
61
+
62
+ <p class="link">Object
63
+
64
+ </div>
65
+
66
+
67
+
68
+ <!-- Method Quickref -->
69
+ <div id="method-list-section" class="nav-section">
70
+ <h3>Methods</h3>
71
+
72
+ <ul class="link-list" role="directory">
73
+
74
+ <li ><a href="#method-c-validate_phone_number">::validate_phone_number</a>
75
+
76
+ </ul>
77
+ </div>
78
+
79
+ </div>
80
+ </nav>
81
+
82
+ <main role="main" aria-labelledby="class-PhoneNumberValidator">
83
+ <h1 id="class-PhoneNumberValidator" class="class">
84
+ class PhoneNumberValidator
85
+ </h1>
86
+
87
+ <section class="description">
88
+
89
+ <p>This class is the master/parent class to all of the validation
90
+ functionality</p>
91
+
92
+ </section>
93
+
94
+
95
+ <section id="5Buntitled-5D" class="documentation-section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
106
+ <header>
107
+ <h3>Public Class Methods</h3>
108
+ </header>
109
+
110
+
111
+ <div id="method-c-validate_phone_number" class="method-detail ">
112
+
113
+ <div class="method-heading">
114
+ <span class="method-name">validate_phone_number</span><span
115
+ class="method-args">(phone_number)</span>
116
+
117
+ <span class="method-click-advice">click to toggle source</span>
118
+
119
+ </div>
120
+
121
+
122
+ <div class="method-description">
123
+
124
+ <p>Validates any United States phone number!</p>
125
+
126
+ <p><strong>Example:</strong></p>
127
+
128
+ <pre class="ruby"><span class="ruby-constant">PhoneNumberValidator</span>.<span class="ruby-identifier">validate_phone_number</span>(<span class="ruby-string">&#39;+1 (949) 355-6244 ext. 198842&#39;</span>)
129
+ </pre>
130
+
131
+ <p><strong>Output:</strong></p>
132
+
133
+ <pre>=&gt; &#39;+1 (949) 355-6244 ext. 198842&#39; is a valid phone number.&#39;
134
+ =&gt; true</pre>
135
+
136
+ <p><strong>Arguments:</strong></p>
137
+
138
+ <pre>phone_number: (String)</pre>
139
+
140
+
141
+
142
+
143
+ <div class="method-source-code" id="validate_phone_number-source">
144
+ <pre><span class="ruby-comment"># File lib/phone_number_validator.rb, line 18</span>
145
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">validate_phone_number</span>(<span class="ruby-identifier">phone_number</span>)
146
+ <span class="ruby-identifier">validator</span> = <span class="ruby-constant">Validator</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">phone_number</span>)
147
+ <span class="ruby-identifier">validator</span>.<span class="ruby-identifier">validate_phone_number</span>
148
+ <span class="ruby-keyword">end</span></pre>
149
+ </div>
150
+
151
+ </div>
152
+
153
+
154
+
155
+
156
+ </div>
157
+
158
+
159
+ </section>
160
+
161
+ </section>
162
+ </main>
163
+
164
+
165
+ <footer id="validator-badges" role="contentinfo">
166
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
167
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
168
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
169
+ </footer>
170
+