icalendar 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/Rakefile +26 -3
  2. data/docs/api/classes/Array.html +155 -0
  3. data/docs/api/classes/Bignum.html +148 -0
  4. data/docs/api/classes/Date.html +172 -0
  5. data/docs/api/classes/DateTime.html +200 -0
  6. data/docs/api/classes/Fixnum.html +148 -0
  7. data/docs/api/classes/Float.html +148 -0
  8. data/docs/api/classes/HashAttrs.html +212 -0
  9. data/docs/api/classes/Icalendar/Alarm.html +228 -0
  10. data/docs/api/classes/Icalendar/Base.html +179 -0
  11. data/docs/api/classes/Icalendar/Calendar.html +504 -0
  12. data/docs/api/classes/Icalendar/Component.html +853 -0
  13. data/docs/api/classes/Icalendar/DateProp.html +187 -0
  14. data/docs/api/classes/Icalendar/DateProp/ClassMethods.html +195 -0
  15. data/docs/api/classes/Icalendar/Daylight.html +156 -0
  16. data/docs/api/classes/Icalendar/Event.html +671 -0
  17. data/docs/api/classes/Icalendar/Freebusy.html +266 -0
  18. data/docs/api/classes/Icalendar/Geo.html +211 -0
  19. data/docs/api/classes/Icalendar/InvalidPropertyValue.html +117 -0
  20. data/docs/api/classes/Icalendar/Journal.html +443 -0
  21. data/docs/api/classes/Icalendar/Parameter.html +166 -0
  22. data/docs/api/classes/Icalendar/Parser.html +352 -0
  23. data/docs/api/classes/Icalendar/RRule.html +428 -0
  24. data/docs/api/classes/Icalendar/RRule/Weekday.html +199 -0
  25. data/docs/api/classes/Icalendar/Standard.html +156 -0
  26. data/docs/api/classes/Icalendar/Timezone.html +450 -0
  27. data/docs/api/classes/Icalendar/Todo.html +480 -0
  28. data/docs/api/classes/Icalendar/TzidSupport.html +118 -0
  29. data/docs/api/classes/Icalendar/UnknownComponentClass.html +117 -0
  30. data/docs/api/classes/Icalendar/UnknownPropertyMethod.html +117 -0
  31. data/docs/api/classes/Object.html +272 -0
  32. data/docs/api/classes/String.html +148 -0
  33. data/docs/api/classes/TZInfo.html +119 -0
  34. data/docs/api/classes/TZInfo/Timezone.html +153 -0
  35. data/docs/api/classes/TZInfo/TimezonePeriod.html +200 -0
  36. data/docs/api/classes/TZInfo/TimezoneTransitionInfo.html +229 -0
  37. data/docs/api/classes/Time.html +180 -0
  38. data/docs/api/classes/URI.html +111 -0
  39. data/docs/api/classes/URI/Generic.html +148 -0
  40. data/docs/api/created.rid +1 -0
  41. data/docs/api/files/COPYING.html +163 -0
  42. data/docs/api/files/GPL.html +531 -0
  43. data/docs/api/files/README.html +401 -0
  44. data/docs/api/files/lib/hash_attrs_rb.html +107 -0
  45. data/docs/api/files/lib/icalendar/base_rb.html +108 -0
  46. data/docs/api/files/lib/icalendar/calendar_rb.html +101 -0
  47. data/docs/api/files/lib/icalendar/component/alarm_rb.html +101 -0
  48. data/docs/api/files/lib/icalendar/component/event_rb.html +101 -0
  49. data/docs/api/files/lib/icalendar/component/freebusy_rb.html +101 -0
  50. data/docs/api/files/lib/icalendar/component/journal_rb.html +101 -0
  51. data/docs/api/files/lib/icalendar/component/timezone_rb.html +101 -0
  52. data/docs/api/files/lib/icalendar/component/todo_rb.html +101 -0
  53. data/docs/api/files/lib/icalendar/component_rb.html +108 -0
  54. data/docs/api/files/lib/icalendar/conversions_rb.html +109 -0
  55. data/docs/api/files/lib/icalendar/helpers_rb.html +101 -0
  56. data/docs/api/files/lib/icalendar/parameter_rb.html +101 -0
  57. data/docs/api/files/lib/icalendar/parser_rb.html +110 -0
  58. data/docs/api/files/lib/icalendar/rrule_rb.html +110 -0
  59. data/docs/api/files/lib/icalendar/tzinfo_rb.html +101 -0
  60. data/docs/api/files/lib/icalendar_rb.html +121 -0
  61. data/docs/api/files/lib/meta_rb.html +107 -0
  62. data/docs/api/fr_class_index.html +64 -0
  63. data/docs/api/fr_file_index.html +47 -0
  64. data/docs/api/fr_method_index.html +123 -0
  65. data/docs/api/index.html +24 -0
  66. data/docs/api/rdoc-style.css +208 -0
  67. data/lib/icalendar.rb +1 -0
  68. data/lib/icalendar/component.rb +3 -3
  69. data/lib/icalendar/component/event.rb +1 -1
  70. data/lib/icalendar/component/freebusy.rb +1 -0
  71. data/lib/icalendar/conversions.rb +6 -0
  72. data/lib/icalendar/conversions.rb.orig +144 -0
  73. data/lib/icalendar/parser.rb +0 -94
  74. data/lib/icalendar/rrule.rb +133 -0
  75. data/test/component/timezone_test.rb +1 -1
  76. data/test/component_test.rb +10 -0
  77. data/test/conversions_test.rb +4 -4
  78. data/test/coverage/index.html +272 -0
  79. data/test/coverage/lib-hash_attrs_rb.html +235 -0
  80. data/test/coverage/lib-icalendar-base_rb.html +249 -0
  81. data/test/coverage/lib-icalendar-calendar_rb.html +324 -0
  82. data/test/coverage/lib-icalendar-component-alarm_rb.html +250 -0
  83. data/test/coverage/lib-icalendar-component-event_rb.html +353 -0
  84. data/test/coverage/lib-icalendar-component-freebusy_rb.html +245 -0
  85. data/test/coverage/lib-icalendar-component-journal_rb.html +278 -0
  86. data/test/coverage/lib-icalendar-component-timezone_rb.html +326 -0
  87. data/test/coverage/lib-icalendar-component-todo_rb.html +277 -0
  88. data/test/coverage/lib-icalendar-component_rb.html +733 -0
  89. data/test/coverage/lib-icalendar-conversions_rb.html +358 -0
  90. data/test/coverage/lib-icalendar-parser_rb.html +671 -0
  91. data/test/coverage/lib-icalendar-rrule_rb.html +357 -0
  92. data/test/coverage/lib-icalendar_rb.html +243 -0
  93. data/test/coverage/lib-meta_rb.html +234 -0
  94. data/test/fixtures/folding.ics +2 -2
  95. metadata +113 -36
  96. data/docs/api/STUB +0 -0
@@ -0,0 +1,504 @@
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: Icalendar::Calendar</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">Icalendar::Calendar</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/icalendar/calendar_rb.html">
59
+ lib/icalendar/calendar.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
+ <a href="Component.html">
69
+ Component
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000060">event</a>&nbsp;&nbsp;
92
+ <a href="#M000061">find_event</a>&nbsp;&nbsp;
93
+ <a href="#M000067">find_freebusy</a>&nbsp;&nbsp;
94
+ <a href="#M000065">find_journal</a>&nbsp;&nbsp;
95
+ <a href="#M000063">find_todo</a>&nbsp;&nbsp;
96
+ <a href="#M000066">freebusy</a>&nbsp;&nbsp;
97
+ <a href="#M000064">journal</a>&nbsp;&nbsp;
98
+ <a href="#M000059">new</a>&nbsp;&nbsp;
99
+ <a href="#M000069">publish</a>&nbsp;&nbsp;
100
+ <a href="#M000068">timezone</a>&nbsp;&nbsp;
101
+ <a href="#M000062">todo</a>&nbsp;&nbsp;
102
+ </div>
103
+ </div>
104
+
105
+ </div>
106
+
107
+
108
+ <!-- if includes -->
109
+
110
+ <div id="section">
111
+
112
+
113
+
114
+
115
+
116
+ <div id="attribute-list">
117
+ <h3 class="section-bar">Attributes</h3>
118
+
119
+ <div class="name-list">
120
+ <table>
121
+ <tr class="top-aligned-row context-row">
122
+ <td class="context-item-name">calendar_scale</td>
123
+ <td class="context-item-value">&nbsp;&nbsp;</td>
124
+ <td class="context-item-desc"></td>
125
+ </tr>
126
+ <tr class="top-aligned-row context-row">
127
+ <td class="context-item-name">calscale</td>
128
+ <td class="context-item-value">&nbsp;&nbsp;</td>
129
+ <td class="context-item-desc"></td>
130
+ </tr>
131
+ <tr class="top-aligned-row context-row">
132
+ <td class="context-item-name">events</td>
133
+ <td class="context-item-value">&nbsp;&nbsp;</td>
134
+ <td class="context-item-desc"></td>
135
+ </tr>
136
+ <tr class="top-aligned-row context-row">
137
+ <td class="context-item-name">freebusys</td>
138
+ <td class="context-item-value">&nbsp;&nbsp;</td>
139
+ <td class="context-item-desc"></td>
140
+ </tr>
141
+ <tr class="top-aligned-row context-row">
142
+ <td class="context-item-name">ip_method</td>
143
+ <td class="context-item-value">&nbsp;&nbsp;</td>
144
+ <td class="context-item-desc"></td>
145
+ </tr>
146
+ <tr class="top-aligned-row context-row">
147
+ <td class="context-item-name">journals</td>
148
+ <td class="context-item-value">&nbsp;&nbsp;</td>
149
+ <td class="context-item-desc"></td>
150
+ </tr>
151
+ <tr class="top-aligned-row context-row">
152
+ <td class="context-item-name">prodid</td>
153
+ <td class="context-item-value">&nbsp;&nbsp;</td>
154
+ <td class="context-item-desc"></td>
155
+ </tr>
156
+ <tr class="top-aligned-row context-row">
157
+ <td class="context-item-name">product_id</td>
158
+ <td class="context-item-value">&nbsp;&nbsp;</td>
159
+ <td class="context-item-desc"></td>
160
+ </tr>
161
+ <tr class="top-aligned-row context-row">
162
+ <td class="context-item-name">timezones</td>
163
+ <td class="context-item-value">&nbsp;&nbsp;</td>
164
+ <td class="context-item-desc"></td>
165
+ </tr>
166
+ <tr class="top-aligned-row context-row">
167
+ <td class="context-item-name">todos</td>
168
+ <td class="context-item-value">&nbsp;&nbsp;</td>
169
+ <td class="context-item-desc"></td>
170
+ </tr>
171
+ <tr class="top-aligned-row context-row">
172
+ <td class="context-item-name">version</td>
173
+ <td class="context-item-value">&nbsp;&nbsp;</td>
174
+ <td class="context-item-desc"></td>
175
+ </tr>
176
+ </table>
177
+ </div>
178
+ </div>
179
+
180
+
181
+
182
+ <!-- if method_list -->
183
+ <div id="methods">
184
+ <h3 class="section-bar">Public Class methods</h3>
185
+
186
+ <div id="method-M000059" class="method-detail">
187
+ <a name="M000059"></a>
188
+
189
+ <div class="method-heading">
190
+ <a href="#M000059" class="method-signature">
191
+ <span class="method-name">new</span><span class="method-args">()</span>
192
+ </a>
193
+ </div>
194
+
195
+ <div class="method-description">
196
+ <p><a class="source-toggle" href="#"
197
+ onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
198
+ <div class="method-source-code" id="M000059-source">
199
+ <pre>
200
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 19</span>
201
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
202
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;VCALENDAR&quot;</span>)
203
+
204
+ <span class="ruby-comment cmt"># Set some defaults</span>
205
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">calscale</span> = <span class="ruby-value str">&quot;GREGORIAN&quot;</span> <span class="ruby-comment cmt"># Who knows, but this is the only one in the spec.</span>
206
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">prodid</span> = <span class="ruby-value str">&quot;iCalendar-Ruby&quot;</span> <span class="ruby-comment cmt"># Current product... Should be overwritten by apps that use the library</span>
207
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">version</span> = <span class="ruby-value str">&quot;2.0&quot;</span> <span class="ruby-comment cmt"># Version of the specification</span>
208
+ <span class="ruby-keyword kw">end</span>
209
+ </pre>
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <h3 class="section-bar">Public Instance methods</h3>
215
+
216
+ <div id="method-M000060" class="method-detail">
217
+ <a name="M000060"></a>
218
+
219
+ <div class="method-heading">
220
+ <a href="#M000060" class="method-signature">
221
+ <span class="method-name">event</span><span class="method-args">(&amp;block)</span>
222
+ </a>
223
+ </div>
224
+
225
+ <div class="method-description">
226
+ <p><a class="source-toggle" href="#"
227
+ onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
228
+ <div class="method-source-code" id="M000060-source">
229
+ <pre>
230
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 28</span>
231
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">event</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
232
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Event</span>.<span class="ruby-identifier">new</span>
233
+ <span class="ruby-comment cmt"># Note: I'm not sure this is the best way to pass this down, but it works</span>
234
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">timezones</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">tzid</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">timezones</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
235
+
236
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
237
+
238
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
239
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
240
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span>
241
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">dtstart</span>.<span class="ruby-identifier">ical_params</span> = { <span class="ruby-value str">&quot;TZID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span> }
242
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">dtend</span>.<span class="ruby-identifier">ical_params</span> = { <span class="ruby-value str">&quot;TZID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">tzid</span> }
243
+ <span class="ruby-keyword kw">end</span>
244
+ <span class="ruby-keyword kw">end</span>
245
+
246
+ <span class="ruby-identifier">e</span>
247
+ <span class="ruby-keyword kw">end</span>
248
+ </pre>
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+ <div id="method-M000061" class="method-detail">
254
+ <a name="M000061"></a>
255
+
256
+ <div class="method-heading">
257
+ <a href="#M000061" class="method-signature">
258
+ <span class="method-name">find_event</span><span class="method-args">(uid)</span>
259
+ </a>
260
+ </div>
261
+
262
+ <div class="method-description">
263
+ <p><a class="source-toggle" href="#"
264
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
265
+ <div class="method-source-code" id="M000061-source">
266
+ <pre>
267
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 46</span>
268
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_event</span>(<span class="ruby-identifier">uid</span>)
269
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">events</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
270
+ <span class="ruby-keyword kw">end</span>
271
+ </pre>
272
+ </div>
273
+ </div>
274
+ </div>
275
+
276
+ <div id="method-M000067" class="method-detail">
277
+ <a name="M000067"></a>
278
+
279
+ <div class="method-heading">
280
+ <a href="#M000067" class="method-signature">
281
+ <span class="method-name">find_freebusy</span><span class="method-args">(uid)</span>
282
+ </a>
283
+ </div>
284
+
285
+ <div class="method-description">
286
+ <p><a class="source-toggle" href="#"
287
+ onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
288
+ <div class="method-source-code" id="M000067-source">
289
+ <pre>
290
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 85</span>
291
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_freebusy</span>(<span class="ruby-identifier">uid</span>)
292
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">freebusys</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
293
+ <span class="ruby-keyword kw">end</span>
294
+ </pre>
295
+ </div>
296
+ </div>
297
+ </div>
298
+
299
+ <div id="method-M000065" class="method-detail">
300
+ <a name="M000065"></a>
301
+
302
+ <div class="method-heading">
303
+ <a href="#M000065" class="method-signature">
304
+ <span class="method-name">find_journal</span><span class="method-args">(uid)</span>
305
+ </a>
306
+ </div>
307
+
308
+ <div class="method-description">
309
+ <p><a class="source-toggle" href="#"
310
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
311
+ <div class="method-source-code" id="M000065-source">
312
+ <pre>
313
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 72</span>
314
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_journal</span>(<span class="ruby-identifier">uid</span>)
315
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">journals</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">j</span><span class="ruby-operator">|</span> <span class="ruby-identifier">j</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
316
+ <span class="ruby-keyword kw">end</span>
317
+ </pre>
318
+ </div>
319
+ </div>
320
+ </div>
321
+
322
+ <div id="method-M000063" class="method-detail">
323
+ <a name="M000063"></a>
324
+
325
+ <div class="method-heading">
326
+ <a href="#M000063" class="method-signature">
327
+ <span class="method-name">find_todo</span><span class="method-args">(uid)</span>
328
+ </a>
329
+ </div>
330
+
331
+ <div class="method-description">
332
+ <p><a class="source-toggle" href="#"
333
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
334
+ <div class="method-source-code" id="M000063-source">
335
+ <pre>
336
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 59</span>
337
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_todo</span>(<span class="ruby-identifier">uid</span>)
338
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">todos</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">t</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">uid</span>}
339
+ <span class="ruby-keyword kw">end</span>
340
+ </pre>
341
+ </div>
342
+ </div>
343
+ </div>
344
+
345
+ <div id="method-M000066" class="method-detail">
346
+ <a name="M000066"></a>
347
+
348
+ <div class="method-heading">
349
+ <a href="#M000066" class="method-signature">
350
+ <span class="method-name">freebusy</span><span class="method-args">(&amp;block)</span>
351
+ </a>
352
+ </div>
353
+
354
+ <div class="method-description">
355
+ <p><a class="source-toggle" href="#"
356
+ onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
357
+ <div class="method-source-code" id="M000066-source">
358
+ <pre>
359
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 76</span>
360
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">freebusy</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
361
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Freebusy</span>.<span class="ruby-identifier">new</span>
362
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
363
+
364
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
365
+
366
+ <span class="ruby-identifier">e</span>
367
+ <span class="ruby-keyword kw">end</span>
368
+ </pre>
369
+ </div>
370
+ </div>
371
+ </div>
372
+
373
+ <div id="method-M000064" class="method-detail">
374
+ <a name="M000064"></a>
375
+
376
+ <div class="method-heading">
377
+ <a href="#M000064" class="method-signature">
378
+ <span class="method-name">journal</span><span class="method-args">(&amp;block)</span>
379
+ </a>
380
+ </div>
381
+
382
+ <div class="method-description">
383
+ <p><a class="source-toggle" href="#"
384
+ onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
385
+ <div class="method-source-code" id="M000064-source">
386
+ <pre>
387
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 63</span>
388
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">journal</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
389
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Journal</span>.<span class="ruby-identifier">new</span>
390
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
391
+
392
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
393
+
394
+ <span class="ruby-identifier">e</span>
395
+ <span class="ruby-keyword kw">end</span>
396
+ </pre>
397
+ </div>
398
+ </div>
399
+ </div>
400
+
401
+ <div id="method-M000069" class="method-detail">
402
+ <a name="M000069"></a>
403
+
404
+ <div class="method-heading">
405
+ <a href="#M000069" class="method-signature">
406
+ <span class="method-name">publish</span><span class="method-args">()</span>
407
+ </a>
408
+ </div>
409
+
410
+ <div class="method-description">
411
+ <p>
412
+ The &quot;PUBLISH&quot; method in a &quot;VEVENT&quot; calendar component
413
+ is an unsolicited posting of an iCalendar object. Any CU may add published
414
+ components to their calendar. The &quot;Organizer&quot; MUST be present in
415
+ a published iCalendar component. &quot;Attendees&quot; MUST NOT be present.
416
+ Its expected usage is for encapsulating an arbitrary <a
417
+ href="Calendar.html#M000060">event</a> as an iCalendar object. The
418
+ &quot;Organizer&quot; may subsequently update (with another
419
+ &quot;PUBLISH&quot; method), add instances to (with an &quot;ADD&quot;
420
+ method), or cancel (with a &quot;CANCEL&quot; method) a previously
421
+ published &quot;VEVENT&quot; calendar component.
422
+ </p>
423
+ <p><a class="source-toggle" href="#"
424
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
425
+ <div class="method-source-code" id="M000069-source">
426
+ <pre>
427
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 107</span>
428
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">publish</span>
429
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ip_method</span> = <span class="ruby-value str">&quot;PUBLISH&quot;</span>
430
+ <span class="ruby-keyword kw">end</span>
431
+ </pre>
432
+ </div>
433
+ </div>
434
+ </div>
435
+
436
+ <div id="method-M000068" class="method-detail">
437
+ <a name="M000068"></a>
438
+
439
+ <div class="method-heading">
440
+ <a href="#M000068" class="method-signature">
441
+ <span class="method-name">timezone</span><span class="method-args">(&amp;block)</span>
442
+ </a>
443
+ </div>
444
+
445
+ <div class="method-description">
446
+ <p><a class="source-toggle" href="#"
447
+ onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
448
+ <div class="method-source-code" id="M000068-source">
449
+ <pre>
450
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 89</span>
451
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timezone</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
452
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Timezone</span>.<span class="ruby-identifier">new</span>
453
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
454
+
455
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
456
+
457
+ <span class="ruby-identifier">e</span>
458
+ <span class="ruby-keyword kw">end</span>
459
+ </pre>
460
+ </div>
461
+ </div>
462
+ </div>
463
+
464
+ <div id="method-M000062" class="method-detail">
465
+ <a name="M000062"></a>
466
+
467
+ <div class="method-heading">
468
+ <a href="#M000062" class="method-signature">
469
+ <span class="method-name">todo</span><span class="method-args">(&amp;block)</span>
470
+ </a>
471
+ </div>
472
+
473
+ <div class="method-description">
474
+ <p><a class="source-toggle" href="#"
475
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
476
+ <div class="method-source-code" id="M000062-source">
477
+ <pre>
478
+ <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 50</span>
479
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">todo</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
480
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Todo</span>.<span class="ruby-identifier">new</span>
481
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
482
+
483
+ <span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
484
+
485
+ <span class="ruby-identifier">e</span>
486
+ <span class="ruby-keyword kw">end</span>
487
+ </pre>
488
+ </div>
489
+ </div>
490
+ </div>
491
+
492
+
493
+ </div>
494
+
495
+
496
+ </div>
497
+
498
+
499
+ <div id="validator-badges">
500
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
501
+ </div>
502
+
503
+ </body>
504
+ </html>