hobix 0.4 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/COPYING +18 -0
  2. data/README +18 -0
  3. data/Rakefile +96 -0
  4. data/bin/hobix +7 -3
  5. data/contrib/blosxom-to-hobix.rb +253 -0
  6. data/contrib/txp-to-hobix.rb +56 -0
  7. data/contrib/webrick-all-mine.rb +20 -0
  8. data/doc/CHANGELOG +285 -0
  9. data/doc/rdoc/classes/Hobix/API.html +382 -0
  10. data/doc/rdoc/classes/Hobix/Article.html +111 -0
  11. data/doc/rdoc/classes/Hobix/BaseContent.html +692 -0
  12. data/doc/rdoc/classes/Hobix/BaseEntry.html +218 -0
  13. data/doc/rdoc/classes/Hobix/BaseFacet.html +205 -0
  14. data/doc/rdoc/classes/Hobix/BaseOutput.html +122 -0
  15. data/doc/rdoc/classes/Hobix/BasePlugin.html +201 -0
  16. data/doc/rdoc/classes/Hobix/BaseProperties/ClassMethods.html +243 -0
  17. data/doc/rdoc/classes/Hobix/BaseProperties.html +218 -0
  18. data/doc/rdoc/classes/Hobix/BasePublish.html +157 -0
  19. data/doc/rdoc/classes/Hobix/BaseStorage.html +417 -0
  20. data/doc/rdoc/classes/Hobix/BixWik/Entry.html +196 -0
  21. data/doc/rdoc/classes/Hobix/BixWik/IndexEntry.html +170 -0
  22. data/doc/rdoc/classes/Hobix/BixWik/WikiRedCloth.html +111 -0
  23. data/doc/rdoc/classes/Hobix/BixWik.html +418 -0
  24. data/doc/rdoc/classes/Hobix/BixWikPlugin.html +158 -0
  25. data/doc/rdoc/classes/Hobix/CommandLine.html +1970 -0
  26. data/doc/rdoc/classes/Hobix/Comment.html +113 -0
  27. data/doc/rdoc/classes/Hobix/Config.html +212 -0
  28. data/doc/rdoc/classes/Hobix/DataMarsh.html +667 -0
  29. data/doc/rdoc/classes/Hobix/Entry.html +178 -0
  30. data/doc/rdoc/classes/Hobix/EntryEnum.html +162 -0
  31. data/doc/rdoc/classes/Hobix/Enumerable.html +170 -0
  32. data/doc/rdoc/classes/Hobix/Facets/WikiEdit.html +180 -0
  33. data/doc/rdoc/classes/Hobix/Facets.html +111 -0
  34. data/doc/rdoc/classes/Hobix/LinkList.html +182 -0
  35. data/doc/rdoc/classes/Hobix/Out/Quick.html +412 -0
  36. data/doc/rdoc/classes/Hobix/Out.html +119 -0
  37. data/doc/rdoc/classes/Hobix/Page.html +381 -0
  38. data/doc/rdoc/classes/Hobix/Trackback.html +113 -0
  39. data/doc/rdoc/classes/Hobix/UriStr.html +198 -0
  40. data/doc/rdoc/classes/Hobix/WebApp/QueryString.html +207 -0
  41. data/doc/rdoc/classes/Hobix/WebApp/QueryValidationFailure.html +111 -0
  42. data/doc/rdoc/classes/Hobix/WebApp.html +1383 -0
  43. data/doc/rdoc/classes/Hobix/Weblog/AuthorNotFound.html +111 -0
  44. data/doc/rdoc/classes/Hobix/Weblog.html +2082 -0
  45. data/doc/rdoc/classes/Hobix.html +399 -0
  46. data/doc/rdoc/classes/Kernel.html +139 -0
  47. data/doc/rdoc/classes/Regexp.html +154 -0
  48. data/doc/rdoc/classes/YAML/Omap.html +144 -0
  49. data/doc/rdoc/classes/YAML.html +111 -0
  50. data/doc/rdoc/created.rid +1 -0
  51. data/doc/rdoc/files/COPYING.html +129 -0
  52. data/doc/rdoc/files/README.html +131 -0
  53. data/doc/rdoc/files/doc/CHANGELOG.html +101 -0
  54. data/doc/rdoc/files/lib/hobix/api_rb.html +119 -0
  55. data/doc/rdoc/files/lib/hobix/article_rb.html +126 -0
  56. data/doc/rdoc/files/lib/hobix/base_rb.html +128 -0
  57. data/doc/rdoc/files/lib/hobix/bixwik_rb.html +126 -0
  58. data/doc/rdoc/files/lib/hobix/commandline_rb.html +140 -0
  59. data/doc/rdoc/files/lib/hobix/comments_rb.html +126 -0
  60. data/doc/rdoc/files/lib/hobix/config_rb.html +125 -0
  61. data/doc/rdoc/files/lib/hobix/datamarsh_rb.html +108 -0
  62. data/doc/rdoc/files/lib/hobix/entry_rb.html +118 -0
  63. data/doc/rdoc/files/lib/hobix/linklist_rb.html +127 -0
  64. data/doc/rdoc/files/lib/hobix/publisher_rb.html +126 -0
  65. data/doc/rdoc/files/lib/hobix/trackbacks_rb.html +128 -0
  66. data/doc/rdoc/files/lib/hobix/webapp_rb.html +127 -0
  67. data/doc/rdoc/files/lib/hobix/weblog_rb.html +135 -0
  68. data/doc/rdoc/files/lib/hobix_rb.html +127 -0
  69. data/doc/rdoc/fr_class_index.html +67 -0
  70. data/doc/rdoc/fr_file_index.html +44 -0
  71. data/doc/rdoc/fr_method_index.html +307 -0
  72. data/doc/rdoc/index.html +24 -0
  73. data/doc/rdoc/rdoc-style.css +208 -0
  74. data/git_hobix_update.php +13 -0
  75. data/lib/hobix/base.rb +6 -3
  76. data/lib/hobix/bixwik.rb +12 -12
  77. data/lib/hobix/commandline.rb +18 -2
  78. data/lib/hobix/comments.rb +4 -5
  79. data/lib/hobix/entry.rb +2 -1
  80. data/lib/hobix/facets/comments.rb +31 -6
  81. data/lib/hobix/linklist.rb +6 -1
  82. data/lib/hobix/out/atom.rb +29 -20
  83. data/lib/hobix/out/quick.rb +8 -6
  84. data/lib/hobix/out/rss.rb +16 -3
  85. data/lib/hobix/plugin/akismet.rb +196 -0
  86. data/lib/hobix/plugin/calendar.rb +6 -14
  87. data/lib/hobix/plugin/recent_comments.rb +4 -2
  88. data/lib/hobix/plugin/tags.rb +1 -1
  89. data/lib/hobix/storage/filesys.rb +41 -31
  90. data/lib/hobix/trackbacks.rb +1 -2
  91. data/lib/hobix/weblog.rb +73 -40
  92. data/lib/hobix.rb +9 -2
  93. data/share/default-blog/hobix.yaml +16 -0
  94. data/share/default-blog/htdocs/site.css +174 -0
  95. data/share/default-blog/skel/entry.html.quick +0 -0
  96. data/share/default-blog/skel/index.atom.atom +0 -0
  97. data/share/default-blog/skel/index.html.quick-summary +0 -0
  98. data/share/default-blog/skel/index.xml.rss +0 -0
  99. data/share/default-blog/skel/index.yaml.okaynews +0 -0
  100. data/share/default-blog/skel/monthly.html.quick-archive +0 -0
  101. data/share/default-blog/skel/section.html.quick-archive +0 -0
  102. data/share/default-blog/skel/yearly.html.quick-archive +0 -0
  103. data/share/default-blog-modes.yaml +7 -0
  104. data/share/default-blog.apache-cgi.patch +8 -0
  105. data/share/default-blog.apache-ssi.patch +38 -0
  106. data/share/default-blog.apache2-ssi.patch +3 -0
  107. data/share/default-blog.cgi.patch +8 -0
  108. data/share/default-blog.comments.patch +5 -0
  109. data/share/default-blog.prototype.patch +766 -0
  110. data/share/default-blog.publisher.patch +5 -0
  111. data/share/default-blog.wiki.patch +29 -0
  112. data/share/publisher/css/control.css +90 -0
  113. data/share/publisher/css/form.css +238 -0
  114. data/share/publisher/css/form.import.css +72 -0
  115. data/share/publisher/css/main-menu.css +134 -0
  116. data/share/publisher/i/hobix-emblazen-1.png +0 -0
  117. data/share/publisher/i/hobix-emblazen-2.png +0 -0
  118. data/share/publisher/i/hobix-emblazen-3.png +0 -0
  119. data/share/publisher/i/hobix-emblazen-4.png +0 -0
  120. data/share/publisher/i/hobix-emblazen-5.png +0 -0
  121. data/share/publisher/i/hobix-emblazen-6.png +0 -0
  122. data/share/publisher/i/hobix-emblazen-7.png +0 -0
  123. data/share/publisher/index.erb +66 -0
  124. data/share/publisher/js/controls.js +261 -0
  125. data/share/publisher/js/dragdrop.js +476 -0
  126. data/share/publisher/js/effects.js +570 -0
  127. data/share/publisher/js/prototype.js +1011 -0
  128. metadata +196 -53
  129. checksums.yaml +0 -7
@@ -0,0 +1,667 @@
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: Hobix::DataMarsh</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">Hobix::DataMarsh</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/hobix/datamarsh_rb.html">
59
+ lib/hobix/datamarsh.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
+ ::DBM
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="#M000259">[]</a>&nbsp;&nbsp;
90
+ <a href="#M000260">[]=</a>&nbsp;&nbsp;
91
+ <a href="#M000264">delete</a>&nbsp;&nbsp;
92
+ <a href="#M000265">delete_if</a>&nbsp;&nbsp;
93
+ <a href="#M000279">each</a>&nbsp;&nbsp;
94
+ <a href="#M000267">each_pair</a>&nbsp;&nbsp;
95
+ <a href="#M000268">each_value</a>&nbsp;&nbsp;
96
+ <a href="#M000261">fetch</a>&nbsp;&nbsp;
97
+ <a href="#M000270">has_value?</a>&nbsp;&nbsp;
98
+ <a href="#M000262">index</a>&nbsp;&nbsp;
99
+ <a href="#M000271">invert</a>&nbsp;&nbsp;
100
+ <a href="#M000266">reject</a>&nbsp;&nbsp;
101
+ <a href="#M000272">replace</a>&nbsp;&nbsp;
102
+ <a href="#M000274">select</a>&nbsp;&nbsp;
103
+ <a href="#M000273">shift</a>&nbsp;&nbsp;
104
+ <a href="#M000275">store</a>&nbsp;&nbsp;
105
+ <a href="#M000277">to_a</a>&nbsp;&nbsp;
106
+ <a href="#M000278">to_hash</a>&nbsp;&nbsp;
107
+ <a href="#M000276">update</a>&nbsp;&nbsp;
108
+ <a href="#M000269">values</a>&nbsp;&nbsp;
109
+ <a href="#M000263">values_at</a>&nbsp;&nbsp;
110
+ </div>
111
+ </div>
112
+
113
+ </div>
114
+
115
+
116
+ <!-- if includes -->
117
+
118
+ <div id="section">
119
+
120
+
121
+ <div id="constants-list">
122
+ <h3 class="section-bar">Constants</h3>
123
+
124
+ <div class="name-list">
125
+ <table summary="Constants">
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">VERSION</td>
128
+ <td>=</td>
129
+ <td class="context-item-value">&quot;0.1&quot;</td>
130
+ </tr>
131
+ </table>
132
+ </div>
133
+ </div>
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <!-- if method_list -->
141
+ <div id="methods">
142
+ <h3 class="section-bar">Public Instance methods</h3>
143
+
144
+ <div id="method-M000259" class="method-detail">
145
+ <a name="M000259"></a>
146
+
147
+ <div class="method-heading">
148
+ <a href="#M000259" class="method-signature">
149
+ <span class="method-name">[]</span><span class="method-args">( key )</span>
150
+ </a>
151
+ </div>
152
+
153
+ <div class="method-description">
154
+ <p><a class="source-toggle" href="#"
155
+ onclick="toggleCode('M000259-source');return false;">[Source]</a></p>
156
+ <div class="method-source-code" id="M000259-source">
157
+ <pre>
158
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 10</span>
159
+ 10: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>( <span class="ruby-identifier">key</span> )
160
+ 11: <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">key</span> )
161
+ 12: <span class="ruby-keyword kw">end</span>
162
+ </pre>
163
+ </div>
164
+ </div>
165
+ </div>
166
+
167
+ <div id="method-M000260" class="method-detail">
168
+ <a name="M000260"></a>
169
+
170
+ <div class="method-heading">
171
+ <a href="#M000260" class="method-signature">
172
+ <span class="method-name">[]=</span><span class="method-args">( key, val )</span>
173
+ </a>
174
+ </div>
175
+
176
+ <div class="method-description">
177
+ <p><a class="source-toggle" href="#"
178
+ onclick="toggleCode('M000260-source');return false;">[Source]</a></p>
179
+ <div class="method-source-code" id="M000260-source">
180
+ <pre>
181
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 13</span>
182
+ 13: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>( <span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span> )
183
+ 14: <span class="ruby-identifier">store</span>( <span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span> )
184
+ 15: <span class="ruby-keyword kw">end</span>
185
+ </pre>
186
+ </div>
187
+ </div>
188
+ </div>
189
+
190
+ <div id="method-M000264" class="method-detail">
191
+ <a name="M000264"></a>
192
+
193
+ <div class="method-heading">
194
+ <a href="#M000264" class="method-signature">
195
+ <span class="method-name">delete</span><span class="method-args">( key )</span>
196
+ </a>
197
+ </div>
198
+
199
+ <div class="method-description">
200
+ <p><a class="source-toggle" href="#"
201
+ onclick="toggleCode('M000264-source');return false;">[Source]</a></p>
202
+ <div class="method-source-code" id="M000264-source">
203
+ <pre>
204
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 34</span>
205
+ 34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>( <span class="ruby-identifier">key</span> )
206
+ 35: <span class="ruby-identifier">v</span> = <span class="ruby-keyword kw">super</span>( <span class="ruby-identifier">key</span> )
207
+ 36: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">v</span>
208
+ 37: <span class="ruby-identifier">v</span> = <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>( <span class="ruby-identifier">v</span> )
209
+ 38: <span class="ruby-keyword kw">end</span>
210
+ 39: <span class="ruby-identifier">v</span>
211
+ 40: <span class="ruby-keyword kw">end</span>
212
+ </pre>
213
+ </div>
214
+ </div>
215
+ </div>
216
+
217
+ <div id="method-M000265" class="method-detail">
218
+ <a name="M000265"></a>
219
+
220
+ <div class="method-heading">
221
+ <a href="#M000265" class="method-signature">
222
+ <span class="method-name">delete_if</span><span class="method-args">() {|k, fetch( k )| ...}</span>
223
+ </a>
224
+ </div>
225
+
226
+ <div class="method-description">
227
+ <p><a class="source-toggle" href="#"
228
+ onclick="toggleCode('M000265-source');return false;">[Source]</a></p>
229
+ <div class="method-source-code" id="M000265-source">
230
+ <pre>
231
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 41</span>
232
+ 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete_if</span>
233
+ 42: <span class="ruby-identifier">del_keys</span> = <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">dup</span>
234
+ 43: <span class="ruby-identifier">del_keys</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span>( <span class="ruby-identifier">k</span>, <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) ) <span class="ruby-operator">==</span> <span class="ruby-keyword kw">false</span> }
235
+ 44: <span class="ruby-identifier">del_keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">delete</span>( <span class="ruby-identifier">k</span> ) }
236
+ 45: <span class="ruby-keyword kw">self</span>
237
+ 46: <span class="ruby-keyword kw">end</span>
238
+ </pre>
239
+ </div>
240
+ </div>
241
+ </div>
242
+
243
+ <div id="method-M000279" class="method-detail">
244
+ <a name="M000279"></a>
245
+
246
+ <div class="method-heading">
247
+ <span class="method-name">each</span><span class="method-args">()</span>
248
+ </div>
249
+
250
+ <div class="method-description">
251
+ <p>
252
+ Alias for <a href="DataMarsh.html#M000267">each_pair</a>
253
+ </p>
254
+ </div>
255
+ </div>
256
+
257
+ <div id="method-M000267" class="method-detail">
258
+ <a name="M000267"></a>
259
+
260
+ <div class="method-heading">
261
+ <a href="#M000267" class="method-signature">
262
+ <span class="method-name">each_pair</span><span class="method-args">() {|k, fetch( k ) }| ...}</span>
263
+ </a>
264
+ </div>
265
+
266
+ <div class="method-description">
267
+ <p><a class="source-toggle" href="#"
268
+ onclick="toggleCode('M000267-source');return false;">[Source]</a></p>
269
+ <div class="method-source-code" id="M000267-source">
270
+ <pre>
271
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 51</span>
272
+ 51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_pair</span>
273
+ 52: <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">k</span>, <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) }
274
+ 53: <span class="ruby-keyword kw">self</span>
275
+ 54: <span class="ruby-keyword kw">end</span>
276
+ </pre>
277
+ </div>
278
+ </div>
279
+ </div>
280
+
281
+ <div id="method-M000268" class="method-detail">
282
+ <a name="M000268"></a>
283
+
284
+ <div class="method-heading">
285
+ <a href="#M000268" class="method-signature">
286
+ <span class="method-name">each_value</span><span class="method-args">() {|Marshal::load( v ) }| ...}</span>
287
+ </a>
288
+ </div>
289
+
290
+ <div class="method-description">
291
+ <p><a class="source-toggle" href="#"
292
+ onclick="toggleCode('M000268-source');return false;">[Source]</a></p>
293
+ <div class="method-source-code" id="M000268-source">
294
+ <pre>
295
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 55</span>
296
+ 55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_value</span>
297
+ 56: <span class="ruby-keyword kw">super</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>( <span class="ruby-identifier">v</span> ) }
298
+ 57: <span class="ruby-keyword kw">self</span>
299
+ 58: <span class="ruby-keyword kw">end</span>
300
+ </pre>
301
+ </div>
302
+ </div>
303
+ </div>
304
+
305
+ <div id="method-M000261" class="method-detail">
306
+ <a name="M000261"></a>
307
+
308
+ <div class="method-heading">
309
+ <a href="#M000261" class="method-signature">
310
+ <span class="method-name">fetch</span><span class="method-args">( keystr, ifnone = nil ) {|keystr| ...}</span>
311
+ </a>
312
+ </div>
313
+
314
+ <div class="method-description">
315
+ <p><a class="source-toggle" href="#"
316
+ onclick="toggleCode('M000261-source');return false;">[Source]</a></p>
317
+ <div class="method-source-code" id="M000261-source">
318
+ <pre>
319
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 16</span>
320
+ 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">keystr</span>, <span class="ruby-identifier">ifnone</span> = <span class="ruby-keyword kw">nil</span> )
321
+ 17: <span class="ruby-keyword kw">begin</span>
322
+ 18: <span class="ruby-identifier">val</span> = <span class="ruby-keyword kw">super</span>( <span class="ruby-identifier">keystr</span> )
323
+ 19: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>( <span class="ruby-identifier">val</span> ) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">String</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">val</span>
324
+ 20: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">IndexError</span>
325
+ 21: <span class="ruby-keyword kw">end</span>
326
+ 22: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
327
+ 23: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">keystr</span>
328
+ 24: <span class="ruby-keyword kw">else</span>
329
+ 25: <span class="ruby-identifier">ifnone</span>
330
+ 26: <span class="ruby-keyword kw">end</span>
331
+ 27: <span class="ruby-keyword kw">end</span>
332
+ </pre>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <div id="method-M000270" class="method-detail">
338
+ <a name="M000270"></a>
339
+
340
+ <div class="method-heading">
341
+ <a href="#M000270" class="method-signature">
342
+ <span class="method-name">has_value?</span><span class="method-args">( val )</span>
343
+ </a>
344
+ </div>
345
+
346
+ <div class="method-description">
347
+ <p><a class="source-toggle" href="#"
348
+ onclick="toggleCode('M000270-source');return false;">[Source]</a></p>
349
+ <div class="method-source-code" id="M000270-source">
350
+ <pre>
351
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 62</span>
352
+ 62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">has_value?</span>( <span class="ruby-identifier">val</span> )
353
+ 63: <span class="ruby-identifier">each_value</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">val</span> }
354
+ 64: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
355
+ 65: <span class="ruby-keyword kw">end</span>
356
+ </pre>
357
+ </div>
358
+ </div>
359
+ </div>
360
+
361
+ <div id="method-M000262" class="method-detail">
362
+ <a name="M000262"></a>
363
+
364
+ <div class="method-heading">
365
+ <a href="#M000262" class="method-signature">
366
+ <span class="method-name">index</span><span class="method-args">( keystr )</span>
367
+ </a>
368
+ </div>
369
+
370
+ <div class="method-description">
371
+ <p><a class="source-toggle" href="#"
372
+ onclick="toggleCode('M000262-source');return false;">[Source]</a></p>
373
+ <div class="method-source-code" id="M000262-source">
374
+ <pre>
375
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 28</span>
376
+ 28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>( <span class="ruby-identifier">keystr</span> )
377
+ 29: <span class="ruby-keyword kw">super</span>( <span class="ruby-identifier">keystr</span>.<span class="ruby-identifier">to_yaml</span> )
378
+ 30: <span class="ruby-keyword kw">end</span>
379
+ </pre>
380
+ </div>
381
+ </div>
382
+ </div>
383
+
384
+ <div id="method-M000271" class="method-detail">
385
+ <a name="M000271"></a>
386
+
387
+ <div class="method-heading">
388
+ <a href="#M000271" class="method-signature">
389
+ <span class="method-name">invert</span><span class="method-args">()</span>
390
+ </a>
391
+ </div>
392
+
393
+ <div class="method-description">
394
+ <p><a class="source-toggle" href="#"
395
+ onclick="toggleCode('M000271-source');return false;">[Source]</a></p>
396
+ <div class="method-source-code" id="M000271-source">
397
+ <pre>
398
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 66</span>
399
+ 66: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invert</span>
400
+ 67: <span class="ruby-identifier">h</span> = {}
401
+ 68: <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) ] = <span class="ruby-identifier">k</span> }
402
+ 69: <span class="ruby-identifier">h</span>
403
+ 70: <span class="ruby-keyword kw">end</span>
404
+ </pre>
405
+ </div>
406
+ </div>
407
+ </div>
408
+
409
+ <div id="method-M000266" class="method-detail">
410
+ <a name="M000266"></a>
411
+
412
+ <div class="method-heading">
413
+ <a href="#M000266" class="method-signature">
414
+ <span class="method-name">reject</span><span class="method-args">() {|k, v| ...}</span>
415
+ </a>
416
+ </div>
417
+
418
+ <div class="method-description">
419
+ <p><a class="source-toggle" href="#"
420
+ onclick="toggleCode('M000266-source');return false;">[Source]</a></p>
421
+ <div class="method-source-code" id="M000266-source">
422
+ <pre>
423
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 47</span>
424
+ 47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reject</span>
425
+ 48: <span class="ruby-identifier">hsh</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">to_hash</span>
426
+ 49: <span class="ruby-identifier">hsh</span>.<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span> }
427
+ 50: <span class="ruby-keyword kw">end</span>
428
+ </pre>
429
+ </div>
430
+ </div>
431
+ </div>
432
+
433
+ <div id="method-M000272" class="method-detail">
434
+ <a name="M000272"></a>
435
+
436
+ <div class="method-heading">
437
+ <a href="#M000272" class="method-signature">
438
+ <span class="method-name">replace</span><span class="method-args">( hsh )</span>
439
+ </a>
440
+ </div>
441
+
442
+ <div class="method-description">
443
+ <p><a class="source-toggle" href="#"
444
+ onclick="toggleCode('M000272-source');return false;">[Source]</a></p>
445
+ <div class="method-source-code" id="M000272-source">
446
+ <pre>
447
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 71</span>
448
+ 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">replace</span>( <span class="ruby-identifier">hsh</span> )
449
+ 72: <span class="ruby-identifier">clear</span>
450
+ 73: <span class="ruby-identifier">update</span>( <span class="ruby-identifier">hsh</span> )
451
+ 74: <span class="ruby-keyword kw">end</span>
452
+ </pre>
453
+ </div>
454
+ </div>
455
+ </div>
456
+
457
+ <div id="method-M000274" class="method-detail">
458
+ <a name="M000274"></a>
459
+
460
+ <div class="method-heading">
461
+ <a href="#M000274" class="method-signature">
462
+ <span class="method-name">select</span><span class="method-args">( *keys ) {|k, v| ...}</span>
463
+ </a>
464
+ </div>
465
+
466
+ <div class="method-description">
467
+ <p><a class="source-toggle" href="#"
468
+ onclick="toggleCode('M000274-source');return false;">[Source]</a></p>
469
+ <div class="method-source-code" id="M000274-source">
470
+ <pre>
471
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 80</span>
472
+ 80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">keys</span> )
473
+ 81: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
474
+ 82: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">v</span> = <span class="ruby-keyword kw">self</span>[<span class="ruby-identifier">k</span>]; [<span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span> }.<span class="ruby-identifier">compact</span>
475
+ 83: <span class="ruby-keyword kw">else</span>
476
+ 84: <span class="ruby-identifier">values_at</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">keys</span> )
477
+ 85: <span class="ruby-keyword kw">end</span>
478
+ 86: <span class="ruby-keyword kw">end</span>
479
+ </pre>
480
+ </div>
481
+ </div>
482
+ </div>
483
+
484
+ <div id="method-M000273" class="method-detail">
485
+ <a name="M000273"></a>
486
+
487
+ <div class="method-heading">
488
+ <a href="#M000273" class="method-signature">
489
+ <span class="method-name">shift</span><span class="method-args">()</span>
490
+ </a>
491
+ </div>
492
+
493
+ <div class="method-description">
494
+ <p><a class="source-toggle" href="#"
495
+ onclick="toggleCode('M000273-source');return false;">[Source]</a></p>
496
+ <div class="method-source-code" id="M000273-source">
497
+ <pre>
498
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 75</span>
499
+ 75: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shift</span>
500
+ 76: <span class="ruby-identifier">a</span> = <span class="ruby-keyword kw">super</span>
501
+ 77: <span class="ruby-identifier">a</span>[<span class="ruby-value">1</span>] = <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>( <span class="ruby-identifier">a</span>[<span class="ruby-value">1</span>] ) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">a</span>
502
+ 78: <span class="ruby-identifier">a</span>
503
+ 79: <span class="ruby-keyword kw">end</span>
504
+ </pre>
505
+ </div>
506
+ </div>
507
+ </div>
508
+
509
+ <div id="method-M000275" class="method-detail">
510
+ <a name="M000275"></a>
511
+
512
+ <div class="method-heading">
513
+ <a href="#M000275" class="method-signature">
514
+ <span class="method-name">store</span><span class="method-args">( key, val )</span>
515
+ </a>
516
+ </div>
517
+
518
+ <div class="method-description">
519
+ <p><a class="source-toggle" href="#"
520
+ onclick="toggleCode('M000275-source');return false;">[Source]</a></p>
521
+ <div class="method-source-code" id="M000275-source">
522
+ <pre>
523
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 87</span>
524
+ 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store</span>( <span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span> )
525
+ 88: <span class="ruby-keyword kw">super</span>( <span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span>.<span class="ruby-identifier">to_yaml</span> )
526
+ 89: <span class="ruby-identifier">val</span>
527
+ 90: <span class="ruby-keyword kw">end</span>
528
+ </pre>
529
+ </div>
530
+ </div>
531
+ </div>
532
+
533
+ <div id="method-M000277" class="method-detail">
534
+ <a name="M000277"></a>
535
+
536
+ <div class="method-heading">
537
+ <a href="#M000277" class="method-signature">
538
+ <span class="method-name">to_a</span><span class="method-args">()</span>
539
+ </a>
540
+ </div>
541
+
542
+ <div class="method-description">
543
+ <p><a class="source-toggle" href="#"
544
+ onclick="toggleCode('M000277-source');return false;">[Source]</a></p>
545
+ <div class="method-source-code" id="M000277-source">
546
+ <pre>
547
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 97</span>
548
+ 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
549
+ 98: <span class="ruby-identifier">a</span> = []
550
+ 99: <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">a</span>.<span class="ruby-identifier">push</span> [ <span class="ruby-identifier">k</span>, <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) ] }
551
+ 100: <span class="ruby-identifier">a</span>
552
+ 101: <span class="ruby-keyword kw">end</span>
553
+ </pre>
554
+ </div>
555
+ </div>
556
+ </div>
557
+
558
+ <div id="method-M000278" class="method-detail">
559
+ <a name="M000278"></a>
560
+
561
+ <div class="method-heading">
562
+ <a href="#M000278" class="method-signature">
563
+ <span class="method-name">to_hash</span><span class="method-args">()</span>
564
+ </a>
565
+ </div>
566
+
567
+ <div class="method-description">
568
+ <p><a class="source-toggle" href="#"
569
+ onclick="toggleCode('M000278-source');return false;">[Source]</a></p>
570
+ <div class="method-source-code" id="M000278-source">
571
+ <pre>
572
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 102</span>
573
+ 102: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_hash</span>
574
+ 103: <span class="ruby-identifier">h</span> = {}
575
+ 104: <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">h</span>[ <span class="ruby-identifier">k</span> ] = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) }
576
+ 105: <span class="ruby-identifier">h</span>
577
+ 106: <span class="ruby-keyword kw">end</span>
578
+ </pre>
579
+ </div>
580
+ </div>
581
+ </div>
582
+
583
+ <div id="method-M000276" class="method-detail">
584
+ <a name="M000276"></a>
585
+
586
+ <div class="method-heading">
587
+ <a href="#M000276" class="method-signature">
588
+ <span class="method-name">update</span><span class="method-args">( hsh )</span>
589
+ </a>
590
+ </div>
591
+
592
+ <div class="method-description">
593
+ <p><a class="source-toggle" href="#"
594
+ onclick="toggleCode('M000276-source');return false;">[Source]</a></p>
595
+ <div class="method-source-code" id="M000276-source">
596
+ <pre>
597
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 91</span>
598
+ 91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>( <span class="ruby-identifier">hsh</span> )
599
+ 92: <span class="ruby-identifier">hsh</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span>
600
+ 93: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">store</span>( <span class="ruby-identifier">k</span>, <span class="ruby-identifier">hsh</span>.<span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) )
601
+ 94: <span class="ruby-keyword kw">end</span>
602
+ 95: <span class="ruby-keyword kw">self</span>
603
+ 96: <span class="ruby-keyword kw">end</span>
604
+ </pre>
605
+ </div>
606
+ </div>
607
+ </div>
608
+
609
+ <div id="method-M000269" class="method-detail">
610
+ <a name="M000269"></a>
611
+
612
+ <div class="method-heading">
613
+ <a href="#M000269" class="method-signature">
614
+ <span class="method-name">values</span><span class="method-args">()</span>
615
+ </a>
616
+ </div>
617
+
618
+ <div class="method-description">
619
+ <p><a class="source-toggle" href="#"
620
+ onclick="toggleCode('M000269-source');return false;">[Source]</a></p>
621
+ <div class="method-source-code" id="M000269-source">
622
+ <pre>
623
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 59</span>
624
+ 59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values</span>
625
+ 60: <span class="ruby-keyword kw">super</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-constant">Marshal</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>( <span class="ruby-identifier">v</span> ) }
626
+ 61: <span class="ruby-keyword kw">end</span>
627
+ </pre>
628
+ </div>
629
+ </div>
630
+ </div>
631
+
632
+ <div id="method-M000263" class="method-detail">
633
+ <a name="M000263"></a>
634
+
635
+ <div class="method-heading">
636
+ <a href="#M000263" class="method-signature">
637
+ <span class="method-name">values_at</span><span class="method-args">( *keys )</span>
638
+ </a>
639
+ </div>
640
+
641
+ <div class="method-description">
642
+ <p><a class="source-toggle" href="#"
643
+ onclick="toggleCode('M000263-source');return false;">[Source]</a></p>
644
+ <div class="method-source-code" id="M000263-source">
645
+ <pre>
646
+ <span class="ruby-comment cmt"># File lib/hobix/datamarsh.rb, line 31</span>
647
+ 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values_at</span>( <span class="ruby-operator">*</span><span class="ruby-identifier">keys</span> )
648
+ 32: <span class="ruby-identifier">keys</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">fetch</span>( <span class="ruby-identifier">k</span> ) }
649
+ 33: <span class="ruby-keyword kw">end</span>
650
+ </pre>
651
+ </div>
652
+ </div>
653
+ </div>
654
+
655
+
656
+ </div>
657
+
658
+
659
+ </div>
660
+
661
+
662
+ <div id="validator-badges">
663
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
664
+ </div>
665
+
666
+ </body>
667
+ </html>