icalendar 0.96.4 → 0.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/README +66 -53
  2. data/Rakefile +33 -24
  3. data/docs/api/classes/Array.html +9 -11
  4. data/docs/api/classes/Array.src/M000002.html +18 -0
  5. data/docs/api/classes/Date.html +2 -22
  6. data/docs/api/classes/Date.src/M000004.html +29 -0
  7. data/docs/api/classes/DateTime.html +2 -43
  8. data/docs/api/classes/DateTime.src/M000005.html +50 -0
  9. data/docs/api/classes/Fixnum.html +2 -11
  10. data/docs/api/classes/Fixnum.src/M000011.html +18 -0
  11. data/docs/api/classes/Float.html +2 -11
  12. data/docs/api/classes/Float.src/M000003.html +18 -0
  13. data/docs/api/classes/HashAttrs.html +15 -60
  14. data/docs/api/classes/HashAttrs.src/M000068.html +26 -0
  15. data/docs/api/classes/HashAttrs.src/M000069.html +27 -0
  16. data/docs/api/classes/HashAttrs.src/M000070.html +19 -0
  17. data/docs/api/classes/Icalendar/Alarm.html +5 -15
  18. data/docs/api/classes/Icalendar/Alarm.src/M000020.html +22 -0
  19. data/docs/api/classes/Icalendar/Base.html +41 -0
  20. data/docs/api/classes/Icalendar/Base.src/M000022.html +18 -0
  21. data/docs/api/classes/Icalendar/Base.src/M000023.html +18 -0
  22. data/docs/api/classes/Icalendar/Calendar.html +116 -116
  23. data/docs/api/classes/Icalendar/Calendar.src/M000054.html +23 -0
  24. data/docs/api/classes/Icalendar/Calendar.src/M000055.html +23 -0
  25. data/docs/api/classes/Icalendar/Calendar.src/M000056.html +18 -0
  26. data/docs/api/classes/Icalendar/Calendar.src/M000057.html +23 -0
  27. data/docs/api/classes/Icalendar/Calendar.src/M000058.html +18 -0
  28. data/docs/api/classes/Icalendar/Calendar.src/M000059.html +23 -0
  29. data/docs/api/classes/Icalendar/Calendar.src/M000060.html +18 -0
  30. data/docs/api/classes/Icalendar/Calendar.src/M000061.html +23 -0
  31. data/docs/api/classes/Icalendar/Calendar.src/M000062.html +18 -0
  32. data/docs/api/classes/Icalendar/Calendar.src/M000063.html +23 -0
  33. data/docs/api/classes/Icalendar/Calendar.src/M000064.html +19 -0
  34. data/docs/api/classes/Icalendar/Component.html +200 -367
  35. data/docs/api/classes/Icalendar/Component.src/M000029.html +22 -0
  36. data/docs/api/classes/Icalendar/Component.src/M000030.html +24 -0
  37. data/docs/api/classes/Icalendar/Component.src/M000035.html +22 -0
  38. data/docs/api/classes/Icalendar/Component.src/M000040.html +18 -0
  39. data/docs/api/classes/Icalendar/Component.src/M000041.html +24 -0
  40. data/docs/api/classes/Icalendar/Component.src/M000042.html +28 -0
  41. data/docs/api/classes/Icalendar/Component.src/M000043.html +37 -0
  42. data/docs/api/classes/Icalendar/Component.src/M000044.html +37 -0
  43. data/docs/api/classes/Icalendar/Component.src/M000045.html +18 -0
  44. data/docs/api/classes/Icalendar/Component.src/M000046.html +18 -0
  45. data/docs/api/classes/Icalendar/Component.src/M000047.html +18 -0
  46. data/docs/api/classes/Icalendar/Component.src/M000048.html +26 -0
  47. data/docs/api/classes/Icalendar/Component.src/M000049.html +29 -0
  48. data/docs/api/classes/Icalendar/Component.src/M000050.html +22 -0
  49. data/docs/api/classes/Icalendar/DateProp.html +2 -12
  50. data/docs/api/classes/Icalendar/DateProp.src/M000013.html +19 -0
  51. data/docs/api/classes/Icalendar/DateProp/ClassMethods.html +2 -59
  52. data/docs/api/classes/Icalendar/DateProp/ClassMethods.src/M000014.html +66 -0
  53. data/docs/api/classes/Icalendar/Daylight.html +5 -14
  54. data/docs/api/classes/Icalendar/Daylight.src/M000051.html +18 -0
  55. data/docs/api/classes/Icalendar/Event.html +30 -37
  56. data/docs/api/classes/Icalendar/Event.src/M000052.html +23 -0
  57. data/docs/api/classes/Icalendar/Event.src/M000053.html +23 -0
  58. data/docs/api/classes/Icalendar/Freebusy.html +5 -14
  59. data/docs/api/classes/Icalendar/Freebusy.src/M000065.html +21 -0
  60. data/docs/api/classes/Icalendar/Geo.html +192 -0
  61. data/docs/api/classes/Icalendar/Geo.src/M000024.html +19 -0
  62. data/docs/api/classes/Icalendar/Geo.src/M000025.html +18 -0
  63. data/docs/api/classes/Icalendar/Journal.html +2 -11
  64. data/docs/api/classes/Icalendar/Journal.src/M000016.html +22 -0
  65. data/docs/api/classes/Icalendar/Parameter.html +5 -23
  66. data/docs/api/classes/Icalendar/Parameter.src/M000066.html +27 -0
  67. data/docs/api/classes/Icalendar/Parser.html +36 -212
  68. data/docs/api/classes/Icalendar/Parser.src/M000017.html +32 -0
  69. data/docs/api/classes/Icalendar/Parser.src/M000018.html +43 -0
  70. data/docs/api/classes/Icalendar/Parser.src/M000019.html +33 -0
  71. data/docs/api/classes/Icalendar/Standard.html +2 -11
  72. data/docs/api/classes/Icalendar/Standard.src/M000015.html +18 -0
  73. data/docs/api/classes/Icalendar/Timezone.html +16 -48
  74. data/docs/api/classes/Icalendar/Timezone.src/M000026.html +19 -0
  75. data/docs/api/classes/Icalendar/Timezone.src/M000027.html +22 -0
  76. data/docs/api/classes/Icalendar/Timezone.src/M000028.html +18 -0
  77. data/docs/api/classes/Icalendar/Todo.html +5 -14
  78. data/docs/api/classes/Icalendar/Todo.src/M000021.html +22 -0
  79. data/docs/api/classes/Object.html +10 -59
  80. data/docs/api/classes/Object.src/M000006.html +20 -0
  81. data/docs/api/classes/Object.src/M000007.html +18 -0
  82. data/docs/api/classes/Object.src/M000008.html +20 -0
  83. data/docs/api/classes/Object.src/M000009.html +18 -0
  84. data/docs/api/classes/Object.src/M000010.html +18 -0
  85. data/docs/api/classes/String.html +2 -11
  86. data/docs/api/classes/String.src/M000012.html +18 -0
  87. data/docs/api/classes/Time.html +2 -26
  88. data/docs/api/classes/Time.src/M000001.html +37 -0
  89. data/docs/api/classes/URI/Generic.html +5 -14
  90. data/docs/api/classes/URI/Generic.src/M000067.html +18 -0
  91. data/docs/api/created.rid +1 -1
  92. data/docs/api/files/COPYING.html +1 -1
  93. data/docs/api/files/GPL.html +1 -1
  94. data/docs/api/files/README.html +76 -64
  95. data/docs/api/files/lib/hash_attrs_rb.html +1 -1
  96. data/docs/api/files/lib/icalendar/base_rb.html +1 -1
  97. data/docs/api/files/lib/icalendar/calendar_rb.html +1 -1
  98. data/docs/api/files/lib/icalendar/component/alarm_rb.html +1 -1
  99. data/docs/api/files/lib/icalendar/component/event_rb.html +1 -1
  100. data/docs/api/files/lib/icalendar/component/freebusy_rb.html +1 -1
  101. data/docs/api/files/lib/icalendar/component/journal_rb.html +1 -1
  102. data/docs/api/files/lib/icalendar/component/timezone_rb.html +1 -1
  103. data/docs/api/files/lib/icalendar/component/todo_rb.html +1 -1
  104. data/docs/api/files/lib/icalendar/component_rb.html +8 -1
  105. data/docs/api/files/lib/icalendar/conversions_rb.html +1 -1
  106. data/docs/api/files/lib/icalendar/helpers_rb.html +1 -1
  107. data/docs/api/files/lib/icalendar/parameter_rb.html +1 -1
  108. data/docs/api/files/lib/icalendar/parser_rb.html +2 -1
  109. data/docs/api/files/lib/icalendar_rb.html +1 -1
  110. data/docs/api/files/lib/meta_rb.html +1 -1
  111. data/docs/api/fr_class_index.html +1 -0
  112. data/docs/api/fr_method_index.html +57 -41
  113. data/docs/rfcs/itip_notes.txt +69 -0
  114. data/examples/create_cal.rb +33 -32
  115. data/examples/parse_cal.rb +2 -2
  116. data/lib/icalendar/base.rb +8 -0
  117. data/lib/icalendar/calendar.rb +32 -3
  118. data/lib/icalendar/component.rb +187 -113
  119. data/lib/icalendar/component/alarm.rb +3 -0
  120. data/lib/icalendar/component/event.rb +9 -3
  121. data/lib/icalendar/component/freebusy.rb +3 -0
  122. data/lib/icalendar/component/journal.rb +4 -0
  123. data/lib/icalendar/component/todo.rb +4 -0
  124. data/lib/icalendar/conversions.rb +7 -1
  125. data/lib/icalendar/parser.rb +68 -90
  126. data/test/calendar_test.rb +32 -8
  127. data/test/component/event_test.rb +4 -7
  128. data/test/component/todo_test.rb +13 -0
  129. data/test/component_test.rb +21 -34
  130. data/test/conversions_test.rb +66 -0
  131. data/test/coverage/-home-rosejn-projects-icalendar-lib-hash_attrs_rb.html +574 -0
  132. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-base_rb.html +575 -0
  133. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-calendar_rb.html +629 -0
  134. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-alarm_rb.html +581 -0
  135. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-event_rb.html +658 -0
  136. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-freebusy_rb.html +574 -0
  137. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-journal_rb.html +597 -0
  138. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-timezone_rb.html +625 -0
  139. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-todo_rb.html +600 -0
  140. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component_rb.html +924 -0
  141. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-conversions_rb.html +667 -0
  142. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-parser_rb.html +938 -0
  143. data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar_rb.html +576 -0
  144. data/test/coverage/-home-rosejn-projects-icalendar-lib-meta_rb.html +572 -0
  145. data/test/coverage/calendar_test_rb.html +590 -0
  146. data/test/coverage/component_test_rb.html +602 -0
  147. data/test/coverage/index.html +1009 -0
  148. data/test/coverage/lib-hash_attrs_rb.html +574 -0
  149. data/test/coverage/lib-icalendar-base_rb.html +583 -0
  150. data/test/coverage/lib-icalendar-calendar_rb.html +631 -0
  151. data/test/coverage/lib-icalendar-component-alarm_rb.html +581 -0
  152. data/test/coverage/lib-icalendar-component-event_rb.html +661 -0
  153. data/test/coverage/lib-icalendar-component-freebusy_rb.html +576 -0
  154. data/test/coverage/lib-icalendar-component-journal_rb.html +599 -0
  155. data/test/coverage/lib-icalendar-component-timezone_rb.html +625 -0
  156. data/test/coverage/lib-icalendar-component-todo_rb.html +602 -0
  157. data/test/coverage/lib-icalendar-component_rb.html +941 -0
  158. data/test/coverage/lib-icalendar-conversions_rb.html +673 -0
  159. data/test/coverage/lib-icalendar-parser_rb.html +916 -0
  160. data/test/coverage/lib-icalendar_rb.html +576 -0
  161. data/test/coverage/lib-meta_rb.html +572 -0
  162. data/test/coverage/parameter_test_rb.html +569 -0
  163. data/test/coverage/parser_test_rb.html +623 -0
  164. data/test/coverage/test-calendar_test_rb.html +590 -0
  165. data/test/coverage/test-component-event_test_rb.html +584 -0
  166. data/test/coverage/test-component_test_rb.html +606 -0
  167. data/test/coverage/test-conversions_test_rb.html +603 -0
  168. data/test/coverage/test-parameter_test_rb.html +569 -0
  169. data/test/coverage/test-parser_test_rb.html +624 -0
  170. data/test/interactive.rb +3 -1
  171. data/test/life.ics +46 -1092
  172. data/test/parameter_test.rb +11 -2
  173. data/test/parser_test.rb +12 -11
  174. metadata +259 -126
  175. data/test/old_life.ics +0 -46
  176. data/test/rw.ics +0 -947
@@ -114,22 +114,13 @@
114
114
  <a name="M000011"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000011" class="method-signature">
117
+ <a href="Fixnum.src/M000011.html" target="Code" class="method-signature"
118
+ onclick="popupCode('Fixnum.src/M000011.html');return false;">
118
119
  <span class="method-name">to_ical</span><span class="method-args">()</span>
119
120
  </a>
120
121
  </div>
121
122
 
122
123
  <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000011-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File lib/icalendar/conversions.rb, line 28</span>
128
- 28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
129
- 29: <span class="ruby-node">&quot;#{self}&quot;</span>
130
- 30: <span class="ruby-keyword kw">end</span>
131
- </pre>
132
- </div>
133
124
  </div>
134
125
  </div>
135
126
 
@@ -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>to_ical (Fixnum)</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/icalendar/conversions.rb, line 28</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
15
+ <span class="ruby-node">&quot;#{self}&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -114,22 +114,13 @@
114
114
  <a name="M000003"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000003" class="method-signature">
117
+ <a href="Float.src/M000003.html" target="Code" class="method-signature"
118
+ onclick="popupCode('Float.src/M000003.html');return false;">
118
119
  <span class="method-name">to_ical</span><span class="method-args">()</span>
119
120
  </a>
120
121
  </div>
121
122
 
122
123
  <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000003-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File lib/icalendar/conversions.rb, line 34</span>
128
- 34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
129
- 35: <span class="ruby-node">&quot;#{self}&quot;</span>
130
- 36: <span class="ruby-keyword kw">end</span>
131
- </pre>
132
- </div>
133
124
  </div>
134
125
  </div>
135
126
 
@@ -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>to_ical (Float)</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/icalendar/conversions.rb, line 34</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
15
+ <span class="ruby-node">&quot;#{self}&quot;</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -86,9 +86,9 @@ A module which adds some generators for hash based accessors.
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000054">hash_accessor</a>&nbsp;&nbsp;
90
- <a href="#M000052">hash_reader</a>&nbsp;&nbsp;
91
- <a href="#M000053">hash_writer</a>&nbsp;&nbsp;
89
+ <a href="#M000070">hash_accessor</a>&nbsp;&nbsp;
90
+ <a href="#M000068">hash_reader</a>&nbsp;&nbsp;
91
+ <a href="#M000069">hash_writer</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -110,90 +110,45 @@ A module which adds some generators for hash based accessors.
110
110
  <div id="methods">
111
111
  <h3 class="section-bar">Public Instance methods</h3>
112
112
 
113
- <div id="method-M000054" class="method-detail">
114
- <a name="M000054"></a>
113
+ <div id="method-M000070" class="method-detail">
114
+ <a name="M000070"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000054" class="method-signature">
117
+ <a href="HashAttrs.src/M000070.html" target="Code" class="method-signature"
118
+ onclick="popupCode('HashAttrs.src/M000070.html');return false;">
118
119
  <span class="method-name">hash_accessor</span><span class="method-args">(hash, *syms)</span>
119
120
  </a>
120
121
  </div>
121
122
 
122
123
  <div class="method-description">
123
- <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000054-source">
126
- <pre>
127
- <span class="ruby-comment cmt"># File lib/hash_attrs.rb, line 29</span>
128
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_accessor</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>)
129
- 30: <span class="ruby-identifier">hash_reader</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-identifier">syms</span>)
130
- 31: <span class="ruby-identifier">hash_writer</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-identifier">syms</span>)
131
- 32: <span class="ruby-keyword kw">end</span>
132
- </pre>
133
- </div>
134
124
  </div>
135
125
  </div>
136
126
 
137
- <div id="method-M000052" class="method-detail">
138
- <a name="M000052"></a>
127
+ <div id="method-M000068" class="method-detail">
128
+ <a name="M000068"></a>
139
129
 
140
130
  <div class="method-heading">
141
- <a href="#M000052" class="method-signature">
131
+ <a href="HashAttrs.src/M000068.html" target="Code" class="method-signature"
132
+ onclick="popupCode('HashAttrs.src/M000068.html');return false;">
142
133
  <span class="method-name">hash_reader</span><span class="method-args">(hash_sym, syms)</span>
143
134
  </a>
144
135
  </div>
145
136
 
146
137
  <div class="method-description">
147
- <p><a class="source-toggle" href="#"
148
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
149
- <div class="method-source-code" id="M000052-source">
150
- <pre>
151
- <span class="ruby-comment cmt"># File lib/hash_attrs.rb, line 4</span>
152
- 4: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_reader</span>(<span class="ruby-identifier">hash_sym</span>, <span class="ruby-identifier">syms</span>)
153
- 5: <span class="ruby-identifier">syms</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span>
154
- 6: <span class="ruby-identifier">id</span> = <span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
155
- 7: <span class="ruby-identifier">func</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
156
- 8: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">hash_sym</span>)
157
- 9: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_sym</span>]
158
- 10: <span class="ruby-keyword kw">end</span>
159
- 11:
160
- 12: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:define_method</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">func</span>)
161
- 13: <span class="ruby-keyword kw">end</span>
162
- 14: <span class="ruby-keyword kw">end</span>
163
- </pre>
164
- </div>
165
138
  </div>
166
139
  </div>
167
140
 
168
- <div id="method-M000053" class="method-detail">
169
- <a name="M000053"></a>
141
+ <div id="method-M000069" class="method-detail">
142
+ <a name="M000069"></a>
170
143
 
171
144
  <div class="method-heading">
172
- <a href="#M000053" class="method-signature">
145
+ <a href="HashAttrs.src/M000069.html" target="Code" class="method-signature"
146
+ onclick="popupCode('HashAttrs.src/M000069.html');return false;">
173
147
  <span class="method-name">hash_writer</span><span class="method-args">(hash_sym, syms)</span>
174
148
  </a>
175
149
  </div>
176
150
 
177
151
  <div class="method-description">
178
- <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000053-source">
181
- <pre>
182
- <span class="ruby-comment cmt"># File lib/hash_attrs.rb, line 16</span>
183
- 16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_writer</span>(<span class="ruby-identifier">hash_sym</span>, <span class="ruby-identifier">syms</span>)
184
- 17: <span class="ruby-identifier">syms</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span>
185
- 18: <span class="ruby-identifier">id</span> = <span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
186
- 19:
187
- 20: <span class="ruby-identifier">func</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
188
- 21: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">hash_sym</span>)
189
- 22: <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">val</span>
190
- 23: <span class="ruby-keyword kw">end</span>
191
- 24:
192
- 25: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:define_method</span>, <span class="ruby-identifier">id</span><span class="ruby-operator">+</span><span class="ruby-value str">'='</span>, <span class="ruby-identifier">func</span>)
193
- 26: <span class="ruby-keyword kw">end</span>
194
- 27: <span class="ruby-keyword kw">end</span>
195
- </pre>
196
- </div>
197
152
  </div>
198
153
  </div>
199
154
 
@@ -0,0 +1,26 @@
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>hash_reader (HashAttrs)</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/hash_attrs.rb, line 4</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_reader</span>(<span class="ruby-identifier">hash_sym</span>, <span class="ruby-identifier">syms</span>)
15
+ <span class="ruby-identifier">syms</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-identifier">id</span> = <span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
17
+ <span class="ruby-identifier">func</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
18
+ <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">hash_sym</span>)
19
+ <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_sym</span>]
20
+ <span class="ruby-keyword kw">end</span>
21
+
22
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:define_method</span>, <span class="ruby-identifier">id</span>, <span class="ruby-identifier">func</span>)
23
+ <span class="ruby-keyword kw">end</span>
24
+ <span class="ruby-keyword kw">end</span></pre>
25
+ </body>
26
+ </html>
@@ -0,0 +1,27 @@
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>hash_writer (HashAttrs)</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/hash_attrs.rb, line 16</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_writer</span>(<span class="ruby-identifier">hash_sym</span>, <span class="ruby-identifier">syms</span>)
15
+ <span class="ruby-identifier">syms</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span>
16
+ <span class="ruby-identifier">id</span> = <span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>
17
+
18
+ <span class="ruby-identifier">func</span> = <span class="ruby-constant">Proc</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">hash_sym</span>)
20
+ <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">id</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-identifier">val</span>
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:define_method</span>, <span class="ruby-identifier">id</span><span class="ruby-operator">+</span><span class="ruby-value str">'='</span>, <span class="ruby-identifier">func</span>)
24
+ <span class="ruby-keyword kw">end</span>
25
+ <span class="ruby-keyword kw">end</span></pre>
26
+ </body>
27
+ </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>hash_accessor (HashAttrs)</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/hash_attrs.rb, line 29</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">hash_accessor</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>)
15
+ <span class="ruby-identifier">hash_reader</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-identifier">syms</span>)
16
+ <span class="ruby-identifier">hash_writer</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-identifier">syms</span>)
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -97,7 +97,7 @@ href="Event.html">Event</a> or an overdue <a href="Todo.html">Todo</a>.
97
97
  <h3 class="section-bar">Methods</h3>
98
98
 
99
99
  <div class="name-list">
100
- <a href="#M000021">new</a>&nbsp;&nbsp;
100
+ <a href="#M000020">new</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -225,27 +225,17 @@ Single but must appear together
225
225
  <div id="methods">
226
226
  <h3 class="section-bar">Public Class methods</h3>
227
227
 
228
- <div id="method-M000021" class="method-detail">
229
- <a name="M000021"></a>
228
+ <div id="method-M000020" class="method-detail">
229
+ <a name="M000020"></a>
230
230
 
231
231
  <div class="method-heading">
232
- <a href="#M000021" class="method-signature">
232
+ <a href="Alarm.src/M000020.html" target="Code" class="method-signature"
233
+ onclick="popupCode('Alarm.src/M000020.html');return false;">
233
234
  <span class="method-name">new</span><span class="method-args">()</span>
234
235
  </a>
235
236
  </div>
236
237
 
237
238
  <div class="method-description">
238
- <p><a class="source-toggle" href="#"
239
- onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
240
- <div class="method-source-code" id="M000021-source">
241
- <pre>
242
- <span class="ruby-comment cmt"># File lib/icalendar/component/alarm.rb, line 36</span>
243
- 36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
244
- 37: <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;VALARM&quot;</span>)
245
- 38:
246
- 39: <span class="ruby-keyword kw">end</span>
247
- </pre>
248
- </div>
249
239
  </div>
250
240
  </div>
251
241
 
@@ -0,0 +1,22 @@
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 (Icalendar::Alarm)</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/icalendar/component/alarm.rb, line 36</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
15
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;VALARM&quot;</span>)
16
+
17
+ <span class="ruby-comment cmt"># Almost everyone just wants to display so I make it the </span>
18
+ <span class="ruby-comment cmt"># default so it works for most people right away...</span>
19
+ <span class="ruby-identifier">action</span> <span class="ruby-value str">&quot;DISPLAY&quot;</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -91,6 +91,14 @@ library so that the logging system can be configured in one place.
91
91
 
92
92
  </div>
93
93
 
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000022">debug</a>&nbsp;&nbsp;
99
+ <a href="#M000023">quiet</a>&nbsp;&nbsp;
100
+ </div>
101
+ </div>
94
102
 
95
103
  </div>
96
104
 
@@ -107,6 +115,39 @@ library so that the logging system can be configured in one place.
107
115
 
108
116
 
109
117
  <!-- if method_list -->
118
+ <div id="methods">
119
+ <h3 class="section-bar">Public Class methods</h3>
120
+
121
+ <div id="method-M000022" class="method-detail">
122
+ <a name="M000022"></a>
123
+
124
+ <div class="method-heading">
125
+ <a href="Base.src/M000022.html" target="Code" class="method-signature"
126
+ onclick="popupCode('Base.src/M000022.html');return false;">
127
+ <span class="method-name">debug</span><span class="method-args">()</span>
128
+ </a>
129
+ </div>
130
+
131
+ <div class="method-description">
132
+ </div>
133
+ </div>
134
+
135
+ <div id="method-M000023" class="method-detail">
136
+ <a name="M000023"></a>
137
+
138
+ <div class="method-heading">
139
+ <a href="Base.src/M000023.html" target="Code" class="method-signature"
140
+ onclick="popupCode('Base.src/M000023.html');return false;">
141
+ <span class="method-name">quiet</span><span class="method-args">()</span>
142
+ </a>
143
+ </div>
144
+
145
+ <div class="method-description">
146
+ </div>
147
+ </div>
148
+
149
+
150
+ </div>
110
151
 
111
152
 
112
153
  </div>
@@ -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>debug (Icalendar::Base)</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/icalendar/base.rb, line 35</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">debug</span>
15
+ <span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</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>quiet (Icalendar::Base)</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/icalendar/base.rb, line 39</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">quiet</span>
15
+ <span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">FATAL</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -88,12 +88,17 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000044">event</a>&nbsp;&nbsp;
92
- <a href="#M000047">freebusy</a>&nbsp;&nbsp;
93
- <a href="#M000046">journal</a>&nbsp;&nbsp;
94
- <a href="#M000043">new</a>&nbsp;&nbsp;
95
- <a href="#M000048">timezone</a>&nbsp;&nbsp;
96
- <a href="#M000045">todo</a>&nbsp;&nbsp;
91
+ <a href="#M000055">event</a>&nbsp;&nbsp;
92
+ <a href="#M000056">find_event</a>&nbsp;&nbsp;
93
+ <a href="#M000062">find_freebusy</a>&nbsp;&nbsp;
94
+ <a href="#M000060">find_journal</a>&nbsp;&nbsp;
95
+ <a href="#M000058">find_todo</a>&nbsp;&nbsp;
96
+ <a href="#M000061">freebusy</a>&nbsp;&nbsp;
97
+ <a href="#M000059">journal</a>&nbsp;&nbsp;
98
+ <a href="#M000054">new</a>&nbsp;&nbsp;
99
+ <a href="#M000064">publish</a>&nbsp;&nbsp;
100
+ <a href="#M000063">timezone</a>&nbsp;&nbsp;
101
+ <a href="#M000057">todo</a>&nbsp;&nbsp;
97
102
  </div>
98
103
  </div>
99
104
 
@@ -178,175 +183,170 @@
178
183
  <div id="methods">
179
184
  <h3 class="section-bar">Public Class methods</h3>
180
185
 
181
- <div id="method-M000043" class="method-detail">
182
- <a name="M000043"></a>
186
+ <div id="method-M000054" class="method-detail">
187
+ <a name="M000054"></a>
183
188
 
184
189
  <div class="method-heading">
185
- <a href="#M000043" class="method-signature">
190
+ <a href="Calendar.src/M000054.html" target="Code" class="method-signature"
191
+ onclick="popupCode('Calendar.src/M000054.html');return false;">
186
192
  <span class="method-name">new</span><span class="method-args">()</span>
187
193
  </a>
188
194
  </div>
189
195
 
190
196
  <div class="method-description">
191
- <p><a class="source-toggle" href="#"
192
- onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
193
- <div class="method-source-code" id="M000043-source">
194
- <pre>
195
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 19</span>
196
- 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
197
- 20: <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;VCALENDAR&quot;</span>)
198
- 21: <span class="ruby-ivar">@properties</span> = {}
199
- 22: <span class="ruby-ivar">@property_params</span> = {}
200
- 23:
201
- 24: <span class="ruby-comment cmt"># Set some defaults</span>
202
- 25: <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>
203
- 26: <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</span>
204
- 27: <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>
205
- 28: <span class="ruby-keyword kw">end</span>
206
- </pre>
207
- </div>
208
197
  </div>
209
198
  </div>
210
199
 
211
200
  <h3 class="section-bar">Public Instance methods</h3>
212
201
 
213
- <div id="method-M000044" class="method-detail">
214
- <a name="M000044"></a>
202
+ <div id="method-M000055" class="method-detail">
203
+ <a name="M000055"></a>
215
204
 
216
205
  <div class="method-heading">
217
- <a href="#M000044" class="method-signature">
206
+ <a href="Calendar.src/M000055.html" target="Code" class="method-signature"
207
+ onclick="popupCode('Calendar.src/M000055.html');return false;">
218
208
  <span class="method-name">event</span><span class="method-args">(&amp;block)</span>
219
209
  </a>
220
210
  </div>
221
211
 
222
212
  <div class="method-description">
223
- <p><a class="source-toggle" href="#"
224
- onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
225
- <div class="method-source-code" id="M000044-source">
226
- <pre>
227
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 30</span>
228
- 30: <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>)
229
- 31: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Event</span>.<span class="ruby-identifier">new</span>
230
- 32: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
231
- 33:
232
- 34: <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>
233
- 35:
234
- 36: <span class="ruby-identifier">e</span>
235
- 37: <span class="ruby-keyword kw">end</span>
236
- </pre>
237
- </div>
238
213
  </div>
239
214
  </div>
240
215
 
241
- <div id="method-M000047" class="method-detail">
242
- <a name="M000047"></a>
216
+ <div id="method-M000056" class="method-detail">
217
+ <a name="M000056"></a>
243
218
 
244
219
  <div class="method-heading">
245
- <a href="#M000047" class="method-signature">
220
+ <a href="Calendar.src/M000056.html" target="Code" class="method-signature"
221
+ onclick="popupCode('Calendar.src/M000056.html');return false;">
222
+ <span class="method-name">find_event</span><span class="method-args">(uid)</span>
223
+ </a>
224
+ </div>
225
+
226
+ <div class="method-description">
227
+ </div>
228
+ </div>
229
+
230
+ <div id="method-M000062" class="method-detail">
231
+ <a name="M000062"></a>
232
+
233
+ <div class="method-heading">
234
+ <a href="Calendar.src/M000062.html" target="Code" class="method-signature"
235
+ onclick="popupCode('Calendar.src/M000062.html');return false;">
236
+ <span class="method-name">find_freebusy</span><span class="method-args">(uid)</span>
237
+ </a>
238
+ </div>
239
+
240
+ <div class="method-description">
241
+ </div>
242
+ </div>
243
+
244
+ <div id="method-M000060" class="method-detail">
245
+ <a name="M000060"></a>
246
+
247
+ <div class="method-heading">
248
+ <a href="Calendar.src/M000060.html" target="Code" class="method-signature"
249
+ onclick="popupCode('Calendar.src/M000060.html');return false;">
250
+ <span class="method-name">find_journal</span><span class="method-args">(uid)</span>
251
+ </a>
252
+ </div>
253
+
254
+ <div class="method-description">
255
+ </div>
256
+ </div>
257
+
258
+ <div id="method-M000058" class="method-detail">
259
+ <a name="M000058"></a>
260
+
261
+ <div class="method-heading">
262
+ <a href="Calendar.src/M000058.html" target="Code" class="method-signature"
263
+ onclick="popupCode('Calendar.src/M000058.html');return false;">
264
+ <span class="method-name">find_todo</span><span class="method-args">(uid)</span>
265
+ </a>
266
+ </div>
267
+
268
+ <div class="method-description">
269
+ </div>
270
+ </div>
271
+
272
+ <div id="method-M000061" class="method-detail">
273
+ <a name="M000061"></a>
274
+
275
+ <div class="method-heading">
276
+ <a href="Calendar.src/M000061.html" target="Code" class="method-signature"
277
+ onclick="popupCode('Calendar.src/M000061.html');return false;">
246
278
  <span class="method-name">freebusy</span><span class="method-args">(&amp;block)</span>
247
279
  </a>
248
280
  </div>
249
281
 
250
282
  <div class="method-description">
251
- <p><a class="source-toggle" href="#"
252
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
253
- <div class="method-source-code" id="M000047-source">
254
- <pre>
255
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 57</span>
256
- 57: <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>)
257
- 58: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Freebusy</span>.<span class="ruby-identifier">new</span>
258
- 59: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
259
- 60:
260
- 61: <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>
261
- 62:
262
- 63: <span class="ruby-identifier">e</span>
263
- 64: <span class="ruby-keyword kw">end</span>
264
- </pre>
265
- </div>
266
283
  </div>
267
284
  </div>
268
285
 
269
- <div id="method-M000046" class="method-detail">
270
- <a name="M000046"></a>
286
+ <div id="method-M000059" class="method-detail">
287
+ <a name="M000059"></a>
271
288
 
272
289
  <div class="method-heading">
273
- <a href="#M000046" class="method-signature">
290
+ <a href="Calendar.src/M000059.html" target="Code" class="method-signature"
291
+ onclick="popupCode('Calendar.src/M000059.html');return false;">
274
292
  <span class="method-name">journal</span><span class="method-args">(&amp;block)</span>
275
293
  </a>
276
294
  </div>
277
295
 
278
296
  <div class="method-description">
279
- <p><a class="source-toggle" href="#"
280
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
281
- <div class="method-source-code" id="M000046-source">
282
- <pre>
283
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 48</span>
284
- 48: <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>)
285
- 49: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Journal</span>.<span class="ruby-identifier">new</span>
286
- 50: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
287
- 51:
288
- 52: <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>
289
- 53:
290
- 54: <span class="ruby-identifier">e</span>
291
- 55: <span class="ruby-keyword kw">end</span>
292
- </pre>
293
- </div>
294
297
  </div>
295
298
  </div>
296
299
 
297
- <div id="method-M000048" class="method-detail">
298
- <a name="M000048"></a>
300
+ <div id="method-M000064" class="method-detail">
301
+ <a name="M000064"></a>
302
+
303
+ <div class="method-heading">
304
+ <a href="Calendar.src/M000064.html" target="Code" class="method-signature"
305
+ onclick="popupCode('Calendar.src/M000064.html');return false;">
306
+ <span class="method-name">publish</span><span class="method-args">()</span>
307
+ </a>
308
+ </div>
309
+
310
+ <div class="method-description">
311
+ <p>
312
+ The &quot;PUBLISH&quot; method in a &quot;VEVENT&quot; calendar component
313
+ is an unsolicited posting of an iCalendar object. Any CU may add published
314
+ components to their calendar. The &quot;Organizer&quot; MUST be present in
315
+ a published iCalendar component. &quot;Attendees&quot; MUST NOT be present.
316
+ Its expected usage is for encapsulating an arbitrary event as an iCalendar
317
+ object. The &quot;Organizer&quot; may subsequently update (with another
318
+ &quot;PUBLISH&quot; method), add instances to (with an &quot;ADD&quot;
319
+ method), or cancel (with a &quot;CANCEL&quot; method) a previously
320
+ published &quot;VEVENT&quot; calendar component.
321
+ </p>
322
+ </div>
323
+ </div>
324
+
325
+ <div id="method-M000063" class="method-detail">
326
+ <a name="M000063"></a>
299
327
 
300
328
  <div class="method-heading">
301
- <a href="#M000048" class="method-signature">
329
+ <a href="Calendar.src/M000063.html" target="Code" class="method-signature"
330
+ onclick="popupCode('Calendar.src/M000063.html');return false;">
302
331
  <span class="method-name">timezone</span><span class="method-args">(&amp;block)</span>
303
332
  </a>
304
333
  </div>
305
334
 
306
335
  <div class="method-description">
307
- <p><a class="source-toggle" href="#"
308
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
309
- <div class="method-source-code" id="M000048-source">
310
- <pre>
311
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 66</span>
312
- 66: <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>)
313
- 67: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Timezone</span>.<span class="ruby-identifier">new</span>
314
- 68: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
315
- 69:
316
- 70: <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>
317
- 71:
318
- 72: <span class="ruby-identifier">e</span>
319
- 73: <span class="ruby-keyword kw">end</span>
320
- </pre>
321
- </div>
322
336
  </div>
323
337
  </div>
324
338
 
325
- <div id="method-M000045" class="method-detail">
326
- <a name="M000045"></a>
339
+ <div id="method-M000057" class="method-detail">
340
+ <a name="M000057"></a>
327
341
 
328
342
  <div class="method-heading">
329
- <a href="#M000045" class="method-signature">
343
+ <a href="Calendar.src/M000057.html" target="Code" class="method-signature"
344
+ onclick="popupCode('Calendar.src/M000057.html');return false;">
330
345
  <span class="method-name">todo</span><span class="method-args">(&amp;block)</span>
331
346
  </a>
332
347
  </div>
333
348
 
334
349
  <div class="method-description">
335
- <p><a class="source-toggle" href="#"
336
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
337
- <div class="method-source-code" id="M000045-source">
338
- <pre>
339
- <span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 39</span>
340
- 39: <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>)
341
- 40: <span class="ruby-identifier">e</span> = <span class="ruby-constant">Todo</span>.<span class="ruby-identifier">new</span>
342
- 41: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
343
- 42:
344
- 43: <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>
345
- 44:
346
- 45: <span class="ruby-identifier">e</span>
347
- 46: <span class="ruby-keyword kw">end</span>
348
- </pre>
349
- </div>
350
350
  </div>
351
351
  </div>
352
352