syc-spector 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/README +17 -0
  2. data/bin/sycspector +7 -0
  3. data/doc/Inspector/Console.html +256 -0
  4. data/doc/Inspector/Options.html +301 -0
  5. data/doc/Inspector/Runner.html +239 -0
  6. data/doc/Inspector/Separator.html +456 -0
  7. data/doc/Inspector.html +157 -0
  8. data/doc/Object.html +165 -0
  9. data/doc/README.html +119 -0
  10. data/doc/TestConsole.html +143 -0
  11. data/doc/TestOptions.html +246 -0
  12. data/doc/TestSeparator.html +270 -0
  13. data/doc/created.rid +11 -0
  14. data/doc/images/add.png +0 -0
  15. data/doc/images/brick.png +0 -0
  16. data/doc/images/brick_link.png +0 -0
  17. data/doc/images/bug.png +0 -0
  18. data/doc/images/bullet_black.png +0 -0
  19. data/doc/images/bullet_toggle_minus.png +0 -0
  20. data/doc/images/bullet_toggle_plus.png +0 -0
  21. data/doc/images/date.png +0 -0
  22. data/doc/images/delete.png +0 -0
  23. data/doc/images/find.png +0 -0
  24. data/doc/images/loadingAnimation.gif +0 -0
  25. data/doc/images/macFFBgHack.png +0 -0
  26. data/doc/images/package.png +0 -0
  27. data/doc/images/page_green.png +0 -0
  28. data/doc/images/page_white_text.png +0 -0
  29. data/doc/images/page_white_width.png +0 -0
  30. data/doc/images/plugin.png +0 -0
  31. data/doc/images/ruby.png +0 -0
  32. data/doc/images/tag_blue.png +0 -0
  33. data/doc/images/tag_green.png +0 -0
  34. data/doc/images/transparent.png +0 -0
  35. data/doc/images/wrench.png +0 -0
  36. data/doc/images/wrench_orange.png +0 -0
  37. data/doc/images/zoom.png +0 -0
  38. data/doc/index.html +94 -0
  39. data/doc/js/darkfish.js +153 -0
  40. data/doc/js/jquery.js +18 -0
  41. data/doc/js/navigation.js +142 -0
  42. data/doc/js/search.js +94 -0
  43. data/doc/js/search_index.js +1 -0
  44. data/doc/js/searcher.js +228 -0
  45. data/doc/rdoc.css +543 -0
  46. data/doc/table_of_contents.html +109 -0
  47. data/lib/inspector/console.rb +60 -0
  48. data/lib/inspector/options.rb +212 -0
  49. data/lib/inspector/pattern.rb +11 -0
  50. data/lib/inspector/runner.rb +31 -0
  51. data/lib/inspector/separator.rb +182 -0
  52. data/sycspector.gemspec +18 -0
  53. data/test/test_console.rb +26 -0
  54. data/test/test_options.rb +115 -0
  55. data/test/test_separator.rb +118 -0
  56. metadata +140 -0
data/README ADDED
@@ -0,0 +1,17 @@
1
+ # The sycspector scans a file for patterns provided on the command line.
2
+ # Lines that match the pattern are saved to a valid file and those lines that
3
+ # don't match the pattern are added to an invalid file.
4
+ # The valid and invalid files as well as the used pattern are stored in a
5
+ # history file. The saved values are used for a subsequent call to sycspector
6
+ # with --show and -f for fix.
7
+ #
8
+ # Invokation Examples
9
+ # sycspector mail_addresses -p email
10
+ # searches for email addresses in the provided file 'email_addresses'
11
+ #
12
+ # Lines that are not recognized can be prompted, fixed and appended to the
13
+ # valid file with
14
+ # sycspector -fa
15
+ #
16
+ # To show the result of the invokation use
17
+ # sycspector --show
data/bin/sycspector ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ require 'inspector/runner'
3
+
4
+ # Creates a new Runner object and providing the command line arguments
5
+ runner = Inspector::Runner.new(ARGV)
6
+ # Runs the application
7
+ runner.run
@@ -0,0 +1,256 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Inspector::Console - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/inspector/console.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-char_if_pressed">#char_if_pressed</a>
74
+
75
+ <li><a href="#method-i-prompt">#prompt</a>
76
+
77
+ </ul>
78
+ </nav>
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+ <nav id="fileindex-section" class="section project-section">
84
+ <h3 class="section-header">Pages</h3>
85
+
86
+ <ul>
87
+
88
+ <li class="file"><a href="../README.html">README</a>
89
+
90
+ </ul>
91
+ </nav>
92
+
93
+ <nav id="classindex-section" class="section project-section">
94
+ <h3 class="section-header">Class and Module Index</h3>
95
+
96
+ <ul class="link-list">
97
+
98
+ <li><a href="../Inspector.html">Inspector</a>
99
+
100
+ <li><a href="../Inspector/Console.html">Inspector::Console</a>
101
+
102
+ <li><a href="../Inspector/Options.html">Inspector::Options</a>
103
+
104
+ <li><a href="../Inspector/Runner.html">Inspector::Runner</a>
105
+
106
+ <li><a href="../Inspector/Separator.html">Inspector::Separator</a>
107
+
108
+ <li><a href="../Object.html">Object</a>
109
+
110
+ <li><a href="../TestConsole.html">TestConsole</a>
111
+
112
+ <li><a href="../TestOptions.html">TestOptions</a>
113
+
114
+ <li><a href="../TestSeparator.html">TestSeparator</a>
115
+
116
+ </ul>
117
+ </nav>
118
+
119
+ </div>
120
+ </nav>
121
+
122
+ <div id="documentation">
123
+ <h1 class="class">class Inspector::Console</h1>
124
+
125
+ <div id="description" class="description">
126
+
127
+ <p><a href="Console.html">Console</a> provides functions for user input</p>
128
+
129
+ </div><!-- description -->
130
+
131
+
132
+
133
+
134
+ <section id="5Buntitled-5D" class="documentation-section">
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+ <!-- Methods -->
144
+
145
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
146
+ <h3 class="section-header">Public Instance Methods</h3>
147
+
148
+
149
+ <div id="method-i-char_if_pressed" class="method-detail ">
150
+
151
+
152
+ <div class="method-heading">
153
+ <span class="method-callseq">
154
+ char_if_pressed
155
+ </span>
156
+
157
+ <span class="method-click-advice">click to toggle source</span>
158
+
159
+ </div>
160
+
161
+
162
+
163
+ <div class="method-description">
164
+
165
+ <p>Listens for key presses and returns the pressed key without pressing return</p>
166
+
167
+
168
+
169
+ <div class="method-source-code" id="char_if_pressed-source">
170
+ <pre><span class="ruby-comment"># File lib/inspector/console.rb, line 21</span>
171
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">char_if_pressed</span>
172
+ <span class="ruby-keyword">begin</span>
173
+ <span class="ruby-identifier">system</span>(<span class="ruby-string">&quot;stty raw -echo&quot;</span>)
174
+ <span class="ruby-identifier">c</span> = <span class="ruby-keyword">nil</span>
175
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">ready?</span>
176
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">getc</span>
177
+ <span class="ruby-keyword">end</span>
178
+ <span class="ruby-identifier">c</span>.<span class="ruby-identifier">chr</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">c</span>
179
+ <span class="ruby-keyword">ensure</span>
180
+ <span class="ruby-identifier">system</span> <span class="ruby-string">&quot;stty -raw echo&quot;</span>
181
+ <span class="ruby-keyword">end</span>
182
+ <span class="ruby-keyword">end</span></pre>
183
+ </div><!-- char_if_pressed-source -->
184
+
185
+ </div>
186
+
187
+
188
+
189
+
190
+ </div><!-- char_if_pressed-method -->
191
+
192
+
193
+ <div id="method-i-prompt" class="method-detail ">
194
+
195
+
196
+ <div class="method-heading">
197
+ <span class="method-callseq">
198
+ prompt(choice_line) &rarr; char
199
+ </span>
200
+
201
+ <span class="method-click-advice">click to toggle source</span>
202
+
203
+ </div>
204
+
205
+
206
+
207
+ <div class="method-description">
208
+
209
+ <p>Prompts the user for input.</p>
210
+
211
+ <p>choice_line is the prompt string. If the prompt string contains a (x)
212
+ sequence x is a valid choice the is relized when pressed and returned.</p>
213
+
214
+
215
+
216
+ <div class="method-source-code" id="prompt-source">
217
+ <pre><span class="ruby-comment"># File lib/inspector/console.rb, line 41</span>
218
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">prompt</span>(<span class="ruby-identifier">choice_line</span>)
219
+ <span class="ruby-identifier">pattern</span> = <span class="ruby-regexp">%r(?&lt;=\()./</span>
220
+ <span class="ruby-identifier">choices</span> = <span class="ruby-identifier">choice_line</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">pattern</span>)
221
+
222
+ <span class="ruby-identifier">choice</span> = <span class="ruby-keyword">nil</span>
223
+
224
+ <span class="ruby-keyword">while</span> <span class="ruby-identifier">choices</span>.<span class="ruby-identifier">find_index</span>(<span class="ruby-identifier">choice</span>).<span class="ruby-identifier">nil?</span>
225
+ <span class="ruby-identifier">print</span> <span class="ruby-identifier">choice_line</span>
226
+ <span class="ruby-identifier">choice</span> = <span class="ruby-keyword">nil</span>
227
+ <span class="ruby-identifier">choice</span> = <span class="ruby-identifier">char_if_pressed</span> <span class="ruby-keyword">while</span> <span class="ruby-identifier">choice</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
228
+ <span class="ruby-identifier">sleep</span> <span class="ruby-value">0.1</span>
229
+ <span class="ruby-identifier">puts</span>
230
+ <span class="ruby-keyword">end</span>
231
+
232
+ <span class="ruby-identifier">choice</span>
233
+ <span class="ruby-keyword">end</span></pre>
234
+ </div><!-- prompt-source -->
235
+
236
+ </div>
237
+
238
+
239
+
240
+
241
+ </div><!-- prompt-method -->
242
+
243
+
244
+ </section><!-- public-instance-method-details -->
245
+
246
+ </section><!-- 5Buntitled-5D -->
247
+
248
+ </div><!-- documentation -->
249
+
250
+
251
+ <footer id="validator-badges">
252
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
253
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
254
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
255
+ </footer>
256
+
@@ -0,0 +1,301 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class Inspector::Options - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/inspector/options.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-new">::new</a>
74
+
75
+ <li><a href="#method-i-get_file_from_history">#get_file_from_history</a>
76
+
77
+ <li><a href="#method-i-save_result_files">#save_result_files</a>
78
+
79
+ </ul>
80
+ </nav>
81
+
82
+ </div>
83
+
84
+ <div id="project-metadata">
85
+ <nav id="fileindex-section" class="section project-section">
86
+ <h3 class="section-header">Pages</h3>
87
+
88
+ <ul>
89
+
90
+ <li class="file"><a href="../README.html">README</a>
91
+
92
+ </ul>
93
+ </nav>
94
+
95
+ <nav id="classindex-section" class="section project-section">
96
+ <h3 class="section-header">Class and Module Index</h3>
97
+
98
+ <ul class="link-list">
99
+
100
+ <li><a href="../Inspector.html">Inspector</a>
101
+
102
+ <li><a href="../Inspector/Console.html">Inspector::Console</a>
103
+
104
+ <li><a href="../Inspector/Options.html">Inspector::Options</a>
105
+
106
+ <li><a href="../Inspector/Runner.html">Inspector::Runner</a>
107
+
108
+ <li><a href="../Inspector/Separator.html">Inspector::Separator</a>
109
+
110
+ <li><a href="../Object.html">Object</a>
111
+
112
+ <li><a href="../TestConsole.html">TestConsole</a>
113
+
114
+ <li><a href="../TestOptions.html">TestOptions</a>
115
+
116
+ <li><a href="../TestSeparator.html">TestSeparator</a>
117
+
118
+ </ul>
119
+ </nav>
120
+
121
+ </div>
122
+ </nav>
123
+
124
+ <div id="documentation">
125
+ <h1 class="class">class Inspector::Options</h1>
126
+
127
+ <div id="description" class="description">
128
+
129
+ <p>Parses the provided command line flags, switches and arguments</p>
130
+
131
+ </div><!-- description -->
132
+
133
+
134
+
135
+
136
+ <section id="5Buntitled-5D" class="documentation-section">
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+ <!-- Attributes -->
145
+ <section id="attribute-method-details" class="method-section section">
146
+ <h3 class="section-header">Attributes</h3>
147
+
148
+
149
+ <div id="attribute-i-options" class="method-detail">
150
+ <div class="method-heading attribute-method-heading">
151
+ <span class="method-name">options</span><span
152
+ class="attribute-access-type">[R]</span>
153
+ </div>
154
+
155
+ <div class="method-description">
156
+
157
+ <p><a href="Options.html">Options</a> hold all the parameters used by the
158
+ application</p>
159
+
160
+ </div>
161
+ </div>
162
+
163
+ </section><!-- attribute-method-details -->
164
+
165
+
166
+ <!-- Methods -->
167
+
168
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
169
+ <h3 class="section-header">Public Class Methods</h3>
170
+
171
+
172
+ <div id="method-c-new" class="method-detail ">
173
+
174
+ <div class="method-heading">
175
+ <span class="method-name">new</span><span
176
+ class="method-args">(argv)</span>
177
+ <span class="method-click-advice">click to toggle source</span>
178
+ </div>
179
+
180
+
181
+ <div class="method-description">
182
+
183
+ <p>Initializes <a href="Options.html">Options</a> and parses the provided user
184
+ input from the command line</p>
185
+
186
+
187
+
188
+ <div class="method-source-code" id="new-source">
189
+ <pre><span class="ruby-comment"># File lib/inspector/options.rb, line 17</span>
190
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">argv</span>)
191
+ <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">argv</span>)
192
+ <span class="ruby-keyword">end</span></pre>
193
+ </div><!-- new-source -->
194
+
195
+ </div>
196
+
197
+
198
+
199
+
200
+ </div><!-- new-method -->
201
+
202
+
203
+ </section><!-- public-class-method-details -->
204
+
205
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
206
+ <h3 class="section-header">Public Instance Methods</h3>
207
+
208
+
209
+ <div id="method-i-get_file_from_history" class="method-detail ">
210
+
211
+
212
+ <div class="method-heading">
213
+ <span class="method-callseq">
214
+ get_file_from_history(type)
215
+ </span>
216
+
217
+ <span class="method-click-advice">click to toggle source</span>
218
+
219
+ </div>
220
+
221
+
222
+
223
+ <div class="method-description">
224
+
225
+ <p>After running the application output files are saved in the history.
226
+ –get_file_from_history– retrieves the valid or invalid file from the last
227
+ application invokation. Where type is eather <code>valid</code> or
228
+ <code>invalid</code>.</p>
229
+
230
+
231
+
232
+ <div class="method-source-code" id="get_file_from_history-source">
233
+ <pre><span class="ruby-comment"># File lib/inspector/options.rb, line 27</span>
234
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_file_from_history</span>(<span class="ruby-identifier">type</span>)
235
+ <span class="ruby-identifier">pattern</span> = <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'_'</span><span class="ruby-operator">+</span><span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span>)
236
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">&quot;.sycspector.data&quot;</span>, <span class="ruby-string">'r'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
237
+ <span class="ruby-keyword">while</span> <span class="ruby-identifier">name</span> = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">gets</span>.<span class="ruby-identifier">chop</span>
238
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">name</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">scan</span>(<span class="ruby-identifier">pattern</span>).<span class="ruby-identifier">empty?</span>
239
+ <span class="ruby-keyword">end</span>
240
+ <span class="ruby-keyword">end</span>
241
+ <span class="ruby-keyword">end</span></pre>
242
+ </div><!-- get_file_from_history-source -->
243
+
244
+ </div>
245
+
246
+
247
+
248
+
249
+ </div><!-- get_file_from_history-method -->
250
+
251
+
252
+ <div id="method-i-save_result_files" class="method-detail ">
253
+
254
+ <div class="method-heading">
255
+ <span class="method-name">save_result_files</span><span
256
+ class="method-args">(opts)</span>
257
+ <span class="method-click-advice">click to toggle source</span>
258
+ </div>
259
+
260
+
261
+ <div class="method-description">
262
+
263
+ <p>Save the results of the last run of the application to
264
+ <code>.sycspector.data</code>. It contains the valid and invalid file as
265
+ well as the pattern.</p>
266
+
267
+
268
+
269
+ <div class="method-source-code" id="save_result_files-source">
270
+ <pre><span class="ruby-comment"># File lib/inspector/options.rb, line 38</span>
271
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">save_result_files</span>(<span class="ruby-identifier">opts</span>)
272
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-string">&quot;.sycspector.data&quot;</span>, <span class="ruby-string">'w'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span>
273
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:valid_file</span>]
274
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:invalid_file</span>]
275
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:pattern</span>].<span class="ruby-identifier">to_s</span>
276
+ <span class="ruby-identifier">file</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:scan_pattern</span>].<span class="ruby-identifier">to_s</span>
277
+ <span class="ruby-keyword">end</span>
278
+ <span class="ruby-keyword">end</span></pre>
279
+ </div><!-- save_result_files-source -->
280
+
281
+ </div>
282
+
283
+
284
+
285
+
286
+ </div><!-- save_result_files-method -->
287
+
288
+
289
+ </section><!-- public-instance-method-details -->
290
+
291
+ </section><!-- 5Buntitled-5D -->
292
+
293
+ </div><!-- documentation -->
294
+
295
+
296
+ <footer id="validator-badges">
297
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
298
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
299
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
300
+ </footer>
301
+