spider 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. data/CHANGES +6 -0
  2. data/README +3 -3
  3. data/doc/classes/BeStaticServerPages.html +197 -0
  4. data/doc/classes/BeStaticServerPages.src/M000030.html +19 -0
  5. data/doc/classes/BeStaticServerPages.src/M000031.html +19 -0
  6. data/doc/classes/BeStaticServerPages.src/M000032.html +18 -0
  7. data/doc/classes/BeStaticServerPages.src/M000033.html +18 -0
  8. data/doc/classes/IncludedInMemcached.html +18 -45
  9. data/doc/classes/IncludedInMemcached.src/M000015.html +18 -0
  10. data/doc/classes/IncludedInMemcached.src/M000016.html +18 -0
  11. data/doc/classes/IncludedInMemcached.src/M000017.html +18 -0
  12. data/doc/classes/LoopingServlet.html +137 -0
  13. data/doc/classes/LoopingServlet.src/M000037.html +23 -0
  14. data/doc/classes/NextUrlsInSQS.html +204 -0
  15. data/doc/classes/NextUrlsInSQS.src/M000018.html +19 -0
  16. data/doc/classes/NextUrlsInSQS.src/M000019.html +22 -0
  17. data/doc/classes/NextUrlsInSQS.src/M000020.html +19 -0
  18. data/doc/classes/QueryServlet.html +137 -0
  19. data/doc/classes/QueryServlet.src/M000038.html +19 -0
  20. data/doc/classes/RobotRules.html +175 -0
  21. data/doc/classes/RobotRules.src/M000034.html +19 -0
  22. data/doc/classes/RobotRules.src/M000035.html +67 -0
  23. data/doc/classes/RobotRules.src/M000036.html +24 -0
  24. data/doc/classes/Spider.html +5 -17
  25. data/doc/classes/Spider.src/M000029.html +21 -0
  26. data/doc/classes/SpiderInstance.html +72 -108
  27. data/doc/classes/SpiderInstance.src/M000021.html +18 -0
  28. data/doc/classes/SpiderInstance.src/M000022.html +22 -0
  29. data/doc/classes/SpiderInstance.src/M000023.html +22 -0
  30. data/doc/classes/SpiderInstance.src/M000024.html +24 -0
  31. data/doc/classes/SpiderInstance.src/M000025.html +18 -0
  32. data/doc/classes/SpiderInstance.src/M000026.html +18 -0
  33. data/doc/classes/SpiderInstance.src/M000027.html +18 -0
  34. data/doc/classes/SpiderInstance.src/M000028.html +18 -0
  35. data/doc/created.rid +1 -1
  36. data/doc/files/lib/spider/included_in_memcached_rb.html +29 -1
  37. data/doc/files/lib/spider/next_urls_in_sqs_rb.html +144 -0
  38. data/doc/files/lib/spider/robot_rules_rb.html +114 -0
  39. data/doc/files/lib/spider/spider_instance_rb.html +1 -2
  40. data/doc/files/lib/spider_rb.html +40 -9
  41. data/doc/files/spec/spec_helper_rb.html +196 -0
  42. data/doc/files/spec/spec_helper_rb.src/M000001.html +20 -0
  43. data/doc/files/spec/spec_helper_rb.src/M000002.html +26 -0
  44. data/doc/files/spec/spec_helper_rb.src/M000003.html +24 -0
  45. data/doc/files/spec/spec_helper_rb.src/M000004.html +18 -0
  46. data/doc/files/spec/spec_helper_rb.src/M000005.html +23 -0
  47. data/doc/files/spec/spider/included_in_memcached_spec_rb.html +142 -0
  48. data/doc/files/spec/spider/included_in_memcached_spec_rb.src/M000006.html +19 -0
  49. data/doc/files/spec/spider/included_in_memcached_spec_rb.src/M000007.html +18 -0
  50. data/doc/files/spec/spider/spider_instance_spec_rb.html +210 -0
  51. data/doc/files/spec/spider/spider_instance_spec_rb.src/M000008.html +21 -0
  52. data/doc/files/spec/spider/spider_instance_spec_rb.src/M000009.html +19 -0
  53. data/doc/files/spec/spider/spider_instance_spec_rb.src/M000010.html +19 -0
  54. data/doc/files/spec/spider/spider_instance_spec_rb.src/M000011.html +27 -0
  55. data/doc/files/spec/spider/spider_instance_spec_rb.src/M000012.html +26 -0
  56. data/doc/files/spec/spider/spider_instance_spec_rb.src/M000013.html +27 -0
  57. data/doc/files/spec/spider_spec_rb.html +127 -0
  58. data/doc/files/spec/spider_spec_rb.src/M000014.html +23 -0
  59. data/doc/fr_class_index.html +5 -0
  60. data/doc/fr_file_index.html +6 -1
  61. data/doc/fr_method_index.html +38 -11
  62. data/doc/index.html +1 -1
  63. data/lib/spider/spider_instance.rb +15 -7
  64. data/spider.gemspec +1 -1
  65. metadata +84 -22
  66. data/lib/test.rb +0 -27
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ 2009-05-21
2
+ * fixed an issue with robots.txt on ssl hosts
3
+ * fixed an issue with pulling robots.txt from disallowed hosts
4
+ * fixed a documentation error with ExpiredLinks
5
+ * Many thanks to Brian Campbell
6
+
1
7
  2008-10-09
2
8
  * fixed a situation with nested slashes in urls, thanks to Sander van der Vliet and John Buckley
3
9
 
data/README CHANGED
@@ -62,13 +62,12 @@ scraping, collecting, and looping so that you can just handle the data.
62
62
  === Track cycles with a custom object
63
63
 
64
64
  require 'spider'
65
-
66
65
  class ExpireLinks < Hash
67
66
  def <<(v)
68
- [v] = Time.now
67
+ self[v] = Time.now
69
68
  end
70
69
  def include?(v)
71
- [v] && (Time.now + 86400) <= [v]
70
+ self[v].kind_of?(Time) && (self[v] + 86400) >= Time.now
72
71
  end
73
72
  end
74
73
 
@@ -141,6 +140,7 @@ Matt Horan
141
140
  Henri Cook
142
141
  Sander van der Vliet
143
142
  John Buckley
143
+ Brian Campbell
144
144
 
145
145
  With `robot_rules' from James Edward Gray II via
146
146
  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/177589
@@ -0,0 +1,197 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: BeStaticServerPages</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">BeStaticServerPages</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/spec/spec_helper_rb.html">
59
+ spec/spec_helper.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000033">description</a>&nbsp;&nbsp;
90
+ <a href="#M000032">failure_message</a>&nbsp;&nbsp;
91
+ <a href="#M000031">matches?</a>&nbsp;&nbsp;
92
+ <a href="#M000030">new</a>&nbsp;&nbsp;
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+
104
+
105
+
106
+
107
+ <div id="attribute-list">
108
+ <h3 class="section-bar">Attributes</h3>
109
+
110
+ <div class="name-list">
111
+ <table>
112
+ <tr class="top-aligned-row context-row">
113
+ <td class="context-item-name">actual</td>
114
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
115
+ <td class="context-item-desc"></td>
116
+ </tr>
117
+ </table>
118
+ </div>
119
+ </div>
120
+
121
+
122
+
123
+ <!-- if method_list -->
124
+ <div id="methods">
125
+ <h3 class="section-bar">Public Class methods</h3>
126
+
127
+ <div id="method-M000030" class="method-detail">
128
+ <a name="M000030"></a>
129
+
130
+ <div class="method-heading">
131
+ <a href="BeStaticServerPages.src/M000030.html" target="Code" class="method-signature"
132
+ onclick="popupCode('BeStaticServerPages.src/M000030.html');return false;">
133
+ <span class="method-name">new</span><span class="method-args">()</span>
134
+ </a>
135
+ </div>
136
+
137
+ <div class="method-description">
138
+ </div>
139
+ </div>
140
+
141
+ <h3 class="section-bar">Public Instance methods</h3>
142
+
143
+ <div id="method-M000033" class="method-detail">
144
+ <a name="M000033"></a>
145
+
146
+ <div class="method-heading">
147
+ <a href="BeStaticServerPages.src/M000033.html" target="Code" class="method-signature"
148
+ onclick="popupCode('BeStaticServerPages.src/M000033.html');return false;">
149
+ <span class="method-name">description</span><span class="method-args">()</span>
150
+ </a>
151
+ </div>
152
+
153
+ <div class="method-description">
154
+ </div>
155
+ </div>
156
+
157
+ <div id="method-M000032" class="method-detail">
158
+ <a name="M000032"></a>
159
+
160
+ <div class="method-heading">
161
+ <a href="BeStaticServerPages.src/M000032.html" target="Code" class="method-signature"
162
+ onclick="popupCode('BeStaticServerPages.src/M000032.html');return false;">
163
+ <span class="method-name">failure_message</span><span class="method-args">()</span>
164
+ </a>
165
+ </div>
166
+
167
+ <div class="method-description">
168
+ </div>
169
+ </div>
170
+
171
+ <div id="method-M000031" class="method-detail">
172
+ <a name="M000031"></a>
173
+
174
+ <div class="method-heading">
175
+ <a href="BeStaticServerPages.src/M000031.html" target="Code" class="method-signature"
176
+ onclick="popupCode('BeStaticServerPages.src/M000031.html');return false;">
177
+ <span class="method-name">matches?</span><span class="method-args">(actual)</span>
178
+ </a>
179
+ </div>
180
+
181
+ <div class="method-description">
182
+ </div>
183
+ </div>
184
+
185
+
186
+ </div>
187
+
188
+
189
+ </div>
190
+
191
+
192
+ <div id="validator-badges">
193
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
194
+ </div>
195
+
196
+ </body>
197
+ </html>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (BeStaticServerPages)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File spec/spec_helper.rb, line 14</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
+ <span class="ruby-ivar">@pages</span> = [<span class="ruby-value str">'http://localhost:8888/'</span>, <span class="ruby-value str">'http://localhost:8888/foo'</span>]
16
+ <span class="ruby-ivar">@actual</span> = <span class="ruby-keyword kw">nil</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>matches? (BeStaticServerPages)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File spec/spec_helper.rb, line 21</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">matches?</span>(<span class="ruby-identifier">actual</span>)
15
+ <span class="ruby-ivar">@actual</span> = <span class="ruby-identifier">actual</span>
16
+ <span class="ruby-identifier">actual</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@pages</span>
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>failure_message (BeStaticServerPages)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File spec/spec_helper.rb, line 26</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">failure_message</span>
15
+ <span class="ruby-node">&quot;expected #{@pages.inspect}, got #{@actual.inspect}&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>description (BeStaticServerPages)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File spec/spec_helper.rb, line 30</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">description</span>
15
+ <span class="ruby-node">&quot;be the pages returned by the static server (#{@pages.inspect})&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -81,8 +81,8 @@
81
81
  <div id="description">
82
82
  <p>
83
83
  A specialized class using memcached to track items stored. It supports
84
- three operations: <a href="IncludedInMemcached.html#M000001">new</a>,
85
- &lt;&lt;, and <a href="IncludedInMemcached.html#M000003">include?</a> .
84
+ three operations: <a href="IncludedInMemcached.html#M000015">new</a>,
85
+ &lt;&lt;, and <a href="IncludedInMemcached.html#M000017">include?</a> .
86
86
  Together these can be used to add items to the memcache, then determine
87
87
  whether the item has been added.
88
88
  </p>
@@ -105,9 +105,9 @@ check_already_seen_with method:
105
105
  <h3 class="section-bar">Methods</h3>
106
106
 
107
107
  <div class="name-list">
108
- <a href="#M000002">&lt;&lt;</a>&nbsp;&nbsp;
109
- <a href="#M000003">include?</a>&nbsp;&nbsp;
110
- <a href="#M000001">new</a>&nbsp;&nbsp;
108
+ <a href="#M000016">&lt;&lt;</a>&nbsp;&nbsp;
109
+ <a href="#M000017">include?</a>&nbsp;&nbsp;
110
+ <a href="#M000015">new</a>&nbsp;&nbsp;
111
111
  </div>
112
112
  </div>
113
113
 
@@ -129,41 +129,33 @@ check_already_seen_with method:
129
129
  <div id="methods">
130
130
  <h3 class="section-bar">Public Class methods</h3>
131
131
 
132
- <div id="method-M000001" class="method-detail">
133
- <a name="M000001"></a>
132
+ <div id="method-M000015" class="method-detail">
133
+ <a name="M000015"></a>
134
134
 
135
135
  <div class="method-heading">
136
- <a href="#M000001" class="method-signature">
136
+ <a href="IncludedInMemcached.src/M000015.html" target="Code" class="method-signature"
137
+ onclick="popupCode('IncludedInMemcached.src/M000015.html');return false;">
137
138
  <span class="method-name">new</span><span class="method-args">(*a)</span>
138
139
  </a>
139
140
  </div>
140
141
 
141
142
  <div class="method-description">
142
143
  <p>
143
- Construct a <a href="IncludedInMemcached.html#M000001">new</a> <a
144
+ Construct a <a href="IncludedInMemcached.html#M000015">new</a> <a
144
145
  href="IncludedInMemcached.html">IncludedInMemcached</a> instance. All
145
146
  arguments here are passed to MemCache (part of the memcache-client gem).
146
147
  </p>
147
- <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000001-source">
150
- <pre>
151
- <span class="ruby-comment cmt"># File lib/spider/included_in_memcached.rb, line 39</span>
152
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
153
- <span class="ruby-ivar">@c</span> = <span class="ruby-constant">MemCache</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
154
- <span class="ruby-keyword kw">end</span>
155
- </pre>
156
- </div>
157
148
  </div>
158
149
  </div>
159
150
 
160
151
  <h3 class="section-bar">Public Instance methods</h3>
161
152
 
162
- <div id="method-M000002" class="method-detail">
163
- <a name="M000002"></a>
153
+ <div id="method-M000016" class="method-detail">
154
+ <a name="M000016"></a>
164
155
 
165
156
  <div class="method-heading">
166
- <a href="#M000002" class="method-signature">
157
+ <a href="IncludedInMemcached.src/M000016.html" target="Code" class="method-signature"
158
+ onclick="popupCode('IncludedInMemcached.src/M000016.html');return false;">
167
159
  <span class="method-name">&lt;&lt;</span><span class="method-args">(v)</span>
168
160
  </a>
169
161
  </div>
@@ -172,24 +164,15 @@ arguments here are passed to MemCache (part of the memcache-client gem).
172
164
  <p>
173
165
  Add an item to the memcache.
174
166
  </p>
175
- <p><a class="source-toggle" href="#"
176
- onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
177
- <div class="method-source-code" id="M000002-source">
178
- <pre>
179
- <span class="ruby-comment cmt"># File lib/spider/included_in_memcached.rb, line 44</span>
180
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">&lt;&lt;</span>(<span class="ruby-identifier">v</span>)
181
- <span class="ruby-ivar">@c</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">v</span>)
182
- <span class="ruby-keyword kw">end</span>
183
- </pre>
184
- </div>
185
167
  </div>
186
168
  </div>
187
169
 
188
- <div id="method-M000003" class="method-detail">
189
- <a name="M000003"></a>
170
+ <div id="method-M000017" class="method-detail">
171
+ <a name="M000017"></a>
190
172
 
191
173
  <div class="method-heading">
192
- <a href="#M000003" class="method-signature">
174
+ <a href="IncludedInMemcached.src/M000017.html" target="Code" class="method-signature"
175
+ onclick="popupCode('IncludedInMemcached.src/M000017.html');return false;">
193
176
  <span class="method-name">include?</span><span class="method-args">(v)</span>
194
177
  </a>
195
178
  </div>
@@ -198,16 +181,6 @@ Add an item to the memcache.
198
181
  <p>
199
182
  True if the item is in the memcache.
200
183
  </p>
201
- <p><a class="source-toggle" href="#"
202
- onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
203
- <div class="method-source-code" id="M000003-source">
204
- <pre>
205
- <span class="ruby-comment cmt"># File lib/spider/included_in_memcached.rb, line 49</span>
206
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">include?</span>(<span class="ruby-identifier">v</span>)
207
- <span class="ruby-ivar">@c</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">v</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">==</span> <span class="ruby-identifier">v</span>
208
- <span class="ruby-keyword kw">end</span>
209
- </pre>
210
- </div>
211
184
  </div>
212
185
  </div>
213
186
 
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (IncludedInMemcached)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/spider/included_in_memcached.rb, line 40</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
15
+ <span class="ruby-ivar">@c</span> = <span class="ruby-constant">MemCache</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>