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,156 @@
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::Standard</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::Standard</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/icalendar/component/timezone_rb.html">
59
+ lib/icalendar/component/timezone.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="Timezone.html">
69
+ Timezone
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
+ <div id="description">
84
+ <p>
85
+ A <a href="Standard.html">Standard</a> component is a sub-component of the
86
+ <a href="Timezone.html">Timezone</a> component which is used to describe
87
+ the standard time offset.
88
+ </p>
89
+
90
+ </div>
91
+
92
+
93
+ </div>
94
+
95
+ <div id="method-list">
96
+ <h3 class="section-bar">Methods</h3>
97
+
98
+ <div class="name-list">
99
+ <a href="#M000030">new</a>&nbsp;&nbsp;
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+
105
+
106
+ <!-- if includes -->
107
+
108
+ <div id="section">
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <!-- if method_list -->
118
+ <div id="methods">
119
+ <h3 class="section-bar">Public Class methods</h3>
120
+
121
+ <div id="method-M000030" class="method-detail">
122
+ <a name="M000030"></a>
123
+
124
+ <div class="method-heading">
125
+ <a href="#M000030" class="method-signature">
126
+ <span class="method-name">new</span><span class="method-args">()</span>
127
+ </a>
128
+ </div>
129
+
130
+ <div class="method-description">
131
+ <p><a class="source-toggle" href="#"
132
+ onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
133
+ <div class="method-source-code" id="M000030-source">
134
+ <pre>
135
+ <span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 90</span>
136
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
137
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">&quot;STANDARD&quot;</span>)
138
+ <span class="ruby-keyword kw">end</span>
139
+ </pre>
140
+ </div>
141
+ </div>
142
+ </div>
143
+
144
+
145
+ </div>
146
+
147
+
148
+ </div>
149
+
150
+
151
+ <div id="validator-badges">
152
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
153
+ </div>
154
+
155
+ </body>
156
+ </html>
@@ -0,0 +1,450 @@
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::Timezone</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::Timezone</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/icalendar/component/timezone_rb.html">
59
+ lib/icalendar/component/timezone.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
+ <div id="description">
84
+ <p>
85
+ A <a href="Timezone.html">Timezone</a> is unambiguously defined by the set
86
+ of time measurement rules determined by the governing body for a given
87
+ geographic area. These rules describe at a minimum the base offset from UTC
88
+ for the time zone, often referred to as the <a
89
+ href="Standard.html">Standard</a> <a href="../Time.html">Time</a> offset.
90
+ Many locations adjust their <a href="Standard.html">Standard</a> <a
91
+ href="../Time.html">Time</a> forward or backward by one hour, in order to
92
+ accommodate seasonal changes in number of <a
93
+ href="Timezone.html#M000052">daylight</a> hours, often referred to as <a
94
+ href="Daylight.html">Daylight</a> Saving <a href="../Time.html">Time</a>.
95
+ Some locations adjust their time by a fraction of an hour. <a
96
+ href="Standard.html">Standard</a> <a href="../Time.html">Time</a> is also
97
+ known as Winter <a href="../Time.html">Time</a>. <a
98
+ href="Daylight.html">Daylight</a> Saving <a href="../Time.html">Time</a> is
99
+ also known as Advanced <a href="../Time.html">Time</a>, Summer <a
100
+ href="../Time.html">Time</a>, or Legal <a href="../Time.html">Time</a> in
101
+ certain countries. The following table shows the changes in time zone rules
102
+ in effect for New York City starting from 1967. Each line represents a
103
+ description or rule for a particular observance.
104
+ </p>
105
+
106
+ </div>
107
+
108
+
109
+ </div>
110
+
111
+ <div id="method-list">
112
+ <h3 class="section-bar">Methods</h3>
113
+
114
+ <div class="name-list">
115
+ <a href="#M000048">add_component</a>&nbsp;&nbsp;
116
+ <a href="#M000052">daylight</a>&nbsp;&nbsp;
117
+ <a href="#M000050">new</a>&nbsp;&nbsp;
118
+ <a href="#M000051">standard</a>&nbsp;&nbsp;
119
+ <a href="#M000049">to_ical</a>&nbsp;&nbsp;
120
+ </div>
121
+ </div>
122
+
123
+ </div>
124
+
125
+
126
+ <!-- if includes -->
127
+
128
+ <div id="section">
129
+
130
+
131
+
132
+
133
+
134
+ <div id="attribute-list">
135
+ <h3 class="section-bar">Attributes</h3>
136
+
137
+ <div class="name-list">
138
+ <table>
139
+ <tr class="top-aligned-row context-row">
140
+ <td class="context-item-name">comment</td>
141
+ <td class="context-item-value">&nbsp;&nbsp;</td>
142
+ <td class="context-item-desc">
143
+ Multi-properties
144
+
145
+ </td>
146
+ </tr>
147
+ <tr class="top-aligned-row context-row">
148
+ <td class="context-item-name">comment</td>
149
+ <td class="context-item-value">&nbsp;&nbsp;</td>
150
+ <td class="context-item-desc">
151
+ Multi-properties
152
+
153
+ </td>
154
+ </tr>
155
+ <tr class="top-aligned-row context-row">
156
+ <td class="context-item-name">comments</td>
157
+ <td class="context-item-value">&nbsp;&nbsp;</td>
158
+ <td class="context-item-desc">
159
+ Multi-properties
160
+
161
+ </td>
162
+ </tr>
163
+ <tr class="top-aligned-row context-row">
164
+ <td class="context-item-name">created</td>
165
+ <td class="context-item-value">&nbsp;&nbsp;</td>
166
+ <td class="context-item-desc"></td>
167
+ </tr>
168
+ <tr class="top-aligned-row context-row">
169
+ <td class="context-item-name">daylight</td>
170
+ <td class="context-item-value">&nbsp;&nbsp;</td>
171
+ <td class="context-item-desc"></td>
172
+ </tr>
173
+ <tr class="top-aligned-row context-row">
174
+ <td class="context-item-name">dtstart</td>
175
+ <td class="context-item-value">&nbsp;&nbsp;</td>
176
+ <td class="context-item-desc">
177
+ Single properties
178
+
179
+ </td>
180
+ </tr>
181
+ <tr class="top-aligned-row context-row">
182
+ <td class="context-item-name">last_modified</td>
183
+ <td class="context-item-value">&nbsp;&nbsp;</td>
184
+ <td class="context-item-desc"></td>
185
+ </tr>
186
+ <tr class="top-aligned-row context-row">
187
+ <td class="context-item-name">rdate</td>
188
+ <td class="context-item-value">&nbsp;&nbsp;</td>
189
+ <td class="context-item-desc"></td>
190
+ </tr>
191
+ <tr class="top-aligned-row context-row">
192
+ <td class="context-item-name">recurrence_date</td>
193
+ <td class="context-item-value">&nbsp;&nbsp;</td>
194
+ <td class="context-item-desc"></td>
195
+ </tr>
196
+ <tr class="top-aligned-row context-row">
197
+ <td class="context-item-name">recurrence_dates</td>
198
+ <td class="context-item-value">&nbsp;&nbsp;</td>
199
+ <td class="context-item-desc"></td>
200
+ </tr>
201
+ <tr class="top-aligned-row context-row">
202
+ <td class="context-item-name">recurrence_rule</td>
203
+ <td class="context-item-value">&nbsp;&nbsp;</td>
204
+ <td class="context-item-desc"></td>
205
+ </tr>
206
+ <tr class="top-aligned-row context-row">
207
+ <td class="context-item-name">recurrence_rules</td>
208
+ <td class="context-item-value">&nbsp;&nbsp;</td>
209
+ <td class="context-item-desc"></td>
210
+ </tr>
211
+ <tr class="top-aligned-row context-row">
212
+ <td class="context-item-name">rrule</td>
213
+ <td class="context-item-value">&nbsp;&nbsp;</td>
214
+ <td class="context-item-desc"></td>
215
+ </tr>
216
+ <tr class="top-aligned-row context-row">
217
+ <td class="context-item-name">sequence</td>
218
+ <td class="context-item-value">&nbsp;&nbsp;</td>
219
+ <td class="context-item-desc"></td>
220
+ </tr>
221
+ <tr class="top-aligned-row context-row">
222
+ <td class="context-item-name">standard</td>
223
+ <td class="context-item-value">&nbsp;&nbsp;</td>
224
+ <td class="context-item-desc"></td>
225
+ </tr>
226
+ <tr class="top-aligned-row context-row">
227
+ <td class="context-item-name">start</td>
228
+ <td class="context-item-value">&nbsp;&nbsp;</td>
229
+ <td class="context-item-desc">
230
+ Single properties
231
+
232
+ </td>
233
+ </tr>
234
+ <tr class="top-aligned-row context-row">
235
+ <td class="context-item-name">timestamp</td>
236
+ <td class="context-item-value">&nbsp;&nbsp;</td>
237
+ <td class="context-item-desc"></td>
238
+ </tr>
239
+ <tr class="top-aligned-row context-row">
240
+ <td class="context-item-name">timezone_id</td>
241
+ <td class="context-item-value">&nbsp;&nbsp;</td>
242
+ <td class="context-item-desc"></td>
243
+ </tr>
244
+ <tr class="top-aligned-row context-row">
245
+ <td class="context-item-name">timezone_name</td>
246
+ <td class="context-item-value">&nbsp;&nbsp;</td>
247
+ <td class="context-item-desc"></td>
248
+ </tr>
249
+ <tr class="top-aligned-row context-row">
250
+ <td class="context-item-name">timezone_offset_from</td>
251
+ <td class="context-item-value">&nbsp;&nbsp;</td>
252
+ <td class="context-item-desc"></td>
253
+ </tr>
254
+ <tr class="top-aligned-row context-row">
255
+ <td class="context-item-name">timezone_offset_to</td>
256
+ <td class="context-item-value">&nbsp;&nbsp;</td>
257
+ <td class="context-item-desc"></td>
258
+ </tr>
259
+ <tr class="top-aligned-row context-row">
260
+ <td class="context-item-name">tzid</td>
261
+ <td class="context-item-value">&nbsp;&nbsp;</td>
262
+ <td class="context-item-desc"></td>
263
+ </tr>
264
+ <tr class="top-aligned-row context-row">
265
+ <td class="context-item-name">tzname</td>
266
+ <td class="context-item-value">&nbsp;&nbsp;</td>
267
+ <td class="context-item-desc"></td>
268
+ </tr>
269
+ <tr class="top-aligned-row context-row">
270
+ <td class="context-item-name">tzoffsetfrom</td>
271
+ <td class="context-item-value">&nbsp;&nbsp;</td>
272
+ <td class="context-item-desc"></td>
273
+ </tr>
274
+ <tr class="top-aligned-row context-row">
275
+ <td class="context-item-name">tzoffsetto</td>
276
+ <td class="context-item-value">&nbsp;&nbsp;</td>
277
+ <td class="context-item-desc"></td>
278
+ </tr>
279
+ </table>
280
+ </div>
281
+ </div>
282
+
283
+
284
+
285
+ <!-- if method_list -->
286
+ <div id="methods">
287
+ <h3 class="section-bar">Public Class methods</h3>
288
+
289
+ <div id="method-M000050" class="method-detail">
290
+ <a name="M000050"></a>
291
+
292
+ <div class="method-heading">
293
+ <a href="#M000050" class="method-signature">
294
+ <span class="method-name">new</span><span class="method-args">(name = &quot;VTIMEZONE&quot;)</span>
295
+ </a>
296
+ </div>
297
+
298
+ <div class="method-description">
299
+ <p><a class="source-toggle" href="#"
300
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
301
+ <div class="method-source-code" id="M000050-source">
302
+ <pre>
303
+ <span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 62</span>
304
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span> = <span class="ruby-value str">&quot;VTIMEZONE&quot;</span>)
305
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">name</span>)
306
+ <span class="ruby-keyword kw">end</span>
307
+ </pre>
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ <h3 class="section-bar">Public Instance methods</h3>
313
+
314
+ <div id="method-M000048" class="method-detail">
315
+ <a name="M000048"></a>
316
+
317
+ <div class="method-heading">
318
+ <a href="#M000048" class="method-signature">
319
+ <span class="method-name">add_component</span><span class="method-args">(component)</span>
320
+ </a>
321
+ </div>
322
+
323
+ <div class="method-description">
324
+ <p>
325
+ Define a custom add component method because <a
326
+ href="Timezone.html#M000051">standard</a> and <a
327
+ href="Timezone.html#M000052">daylight</a> are the only components that can
328
+ occur just once with their parent.
329
+ </p>
330
+ <p><a class="source-toggle" href="#"
331
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
332
+ <div class="method-source-code" id="M000048-source">
333
+ <pre>
334
+ <span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 44</span>
335
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_component</span>(<span class="ruby-identifier">component</span>)
336
+ <span class="ruby-identifier">key</span> = <span class="ruby-identifier">component</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'icalendar::'</span>,<span class="ruby-value str">''</span>).<span class="ruby-identifier">to_sym</span>
337
+ <span class="ruby-ivar">@components</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">component</span>
338
+ <span class="ruby-keyword kw">end</span>
339
+ </pre>
340
+ </div>
341
+ </div>
342
+ </div>
343
+
344
+ <div id="method-M000052" class="method-detail">
345
+ <a name="M000052"></a>
346
+
347
+ <div class="method-heading">
348
+ <a href="#M000052" class="method-signature">
349
+ <span class="method-name">daylight</span><span class="method-args">(&amp;block)</span>
350
+ </a>
351
+ </div>
352
+
353
+ <div class="method-description">
354
+ <p><a class="source-toggle" href="#"
355
+ onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
356
+ <div class="method-source-code" id="M000052-source">
357
+ <pre>
358
+ <span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 76</span>
359
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">daylight</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
360
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Daylight</span>.<span class="ruby-identifier">new</span>
361
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
362
+
363
+ <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>
364
+
365
+ <span class="ruby-identifier">e</span>
366
+ <span class="ruby-keyword kw">end</span>
367
+ </pre>
368
+ </div>
369
+ </div>
370
+ </div>
371
+
372
+ <div id="method-M000051" class="method-detail">
373
+ <a name="M000051"></a>
374
+
375
+ <div class="method-heading">
376
+ <a href="#M000051" class="method-signature">
377
+ <span class="method-name">standard</span><span class="method-args">(&amp;block)</span>
378
+ </a>
379
+ </div>
380
+
381
+ <div class="method-description">
382
+ <p>
383
+ Allow block syntax for declaration of <a
384
+ href="Timezone.html#M000051">standard</a> and <a
385
+ href="Timezone.html#M000052">daylight</a> components of timezone
386
+ </p>
387
+ <p><a class="source-toggle" href="#"
388
+ onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
389
+ <div class="method-source-code" id="M000051-source">
390
+ <pre>
391
+ <span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 67</span>
392
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">standard</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
393
+ <span class="ruby-identifier">e</span> = <span class="ruby-constant">Standard</span>.<span class="ruby-identifier">new</span>
394
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
395
+
396
+ <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>
397
+
398
+ <span class="ruby-identifier">e</span>
399
+ <span class="ruby-keyword kw">end</span>
400
+ </pre>
401
+ </div>
402
+ </div>
403
+ </div>
404
+
405
+ <div id="method-M000049" class="method-detail">
406
+ <a name="M000049"></a>
407
+
408
+ <div class="method-heading">
409
+ <a href="#M000049" class="method-signature">
410
+ <span class="method-name">to_ical</span><span class="method-args">()</span>
411
+ </a>
412
+ </div>
413
+
414
+ <div class="method-description">
415
+ <p>
416
+ Also need a custom <a href="Timezone.html#M000049">to_ical</a> because
417
+ typically it iterates over an array of components.
418
+ </p>
419
+ <p><a class="source-toggle" href="#"
420
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
421
+ <div class="method-source-code" id="M000049-source">
422
+ <pre>
423
+ <span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 51</span>
424
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
425
+ <span class="ruby-identifier">print_component</span> <span class="ruby-keyword kw">do</span>
426
+ <span class="ruby-identifier">s</span> = <span class="ruby-value str">&quot;&quot;</span>
427
+ <span class="ruby-ivar">@components</span>.<span class="ruby-identifier">each_value</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">comp</span><span class="ruby-operator">|</span>
428
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">comp</span>.<span class="ruby-identifier">to_ical</span>
429
+ <span class="ruby-keyword kw">end</span>
430
+ <span class="ruby-identifier">s</span>
431
+ <span class="ruby-keyword kw">end</span>
432
+ <span class="ruby-keyword kw">end</span>
433
+ </pre>
434
+ </div>
435
+ </div>
436
+ </div>
437
+
438
+
439
+ </div>
440
+
441
+
442
+ </div>
443
+
444
+
445
+ <div id="validator-badges">
446
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
447
+ </div>
448
+
449
+ </body>
450
+ </html>