icalendar 0.98 → 1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/docs/api/classes/HashAttrs.html +15 -15
- data/docs/api/classes/HashAttrs.src/M000070.html +12 -5
- data/docs/api/classes/HashAttrs.src/{M000069.html → M000071.html} +0 -0
- data/docs/api/classes/HashAttrs.src/M000072.html +19 -0
- data/docs/api/classes/Icalendar/Alarm.html +5 -29
- data/docs/api/classes/Icalendar/Alarm.src/{M000020.html → M000021.html} +0 -0
- data/docs/api/classes/Icalendar/Calendar.html +58 -57
- data/docs/api/classes/Icalendar/Calendar.src/M000056.html +9 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000057.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000058.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000059.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000060.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000061.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000062.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000063.html +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000064.html +4 -5
- data/docs/api/classes/Icalendar/Calendar.src/{M000055.html → M000065.html} +4 -4
- data/docs/api/classes/Icalendar/Calendar.src/M000066.html +19 -0
- data/docs/api/classes/Icalendar/Component.html +61 -25
- data/docs/api/classes/Icalendar/Component.src/M000029.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000030.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000035.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000040.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000041.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000042.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000043.html +22 -12
- data/docs/api/classes/Icalendar/Component.src/M000044.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000045.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000046.html +1 -1
- data/docs/api/classes/Icalendar/Component.src/M000047.html +4 -4
- data/docs/api/classes/Icalendar/Component.src/M000048.html +4 -12
- data/docs/api/classes/Icalendar/Component.src/M000049.html +10 -14
- data/docs/api/classes/Icalendar/Component.src/M000050.html +14 -7
- data/docs/api/classes/Icalendar/Component.src/M000051.html +19 -0
- data/docs/api/classes/Icalendar/Component.src/M000052.html +22 -0
- data/docs/api/classes/Icalendar/Daylight.html +5 -5
- data/docs/api/classes/Icalendar/Daylight.src/{M000051.html → M000053.html} +1 -1
- data/docs/api/classes/Icalendar/Event.html +10 -34
- data/docs/api/classes/Icalendar/Event.src/{M000052.html → M000054.html} +0 -0
- data/docs/api/classes/Icalendar/Event.src/{M000053.html → M000055.html} +0 -0
- data/docs/api/classes/Icalendar/Freebusy.html +5 -44
- data/docs/api/classes/Icalendar/Freebusy.src/{M000065.html → M000067.html} +0 -0
- data/docs/api/classes/Icalendar/Geo.html +2 -2
- data/docs/api/classes/Icalendar/Journal.html +0 -15
- data/docs/api/classes/Icalendar/Parameter.html +5 -5
- data/docs/api/classes/Icalendar/Parameter.src/{M000066.html → M000068.html} +0 -0
- data/docs/api/classes/Icalendar/Parser.src/M000019.html +1 -1
- data/docs/api/classes/Icalendar/Standard.src/M000015.html +1 -1
- data/docs/api/classes/Icalendar/Timezone.src/M000027.html +3 -1
- data/docs/api/classes/Icalendar/Timezone.src/M000028.html +1 -1
- data/docs/api/classes/Icalendar/Todo.html +5 -20
- data/docs/api/classes/Icalendar/Todo.src/{M000021.html → M000020.html} +0 -0
- data/docs/api/classes/Object.html +7 -5
- data/docs/api/classes/URI/Generic.html +5 -5
- data/docs/api/classes/URI/Generic.src/{M000067.html → M000069.html} +0 -0
- data/docs/api/created.rid +1 -1
- data/docs/api/files/COPYING.html +1 -1
- data/docs/api/files/GPL.html +3 -3
- data/docs/api/files/README.html +5 -5
- data/docs/api/files/lib/hash_attrs_rb.html +1 -1
- data/docs/api/files/lib/icalendar/base_rb.html +1 -1
- data/docs/api/files/lib/icalendar/calendar_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component/alarm_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component/event_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component/freebusy_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component/journal_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component/timezone_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component/todo_rb.html +1 -1
- data/docs/api/files/lib/icalendar/component_rb.html +1 -1
- data/docs/api/files/lib/icalendar/conversions_rb.html +1 -1
- data/docs/api/files/lib/icalendar/helpers_rb.html +1 -1
- data/docs/api/files/lib/icalendar/parameter_rb.html +1 -1
- data/docs/api/files/lib/icalendar/parser_rb.html +1 -1
- data/docs/api/files/lib/icalendar_rb.html +1 -1
- data/docs/api/files/lib/meta_rb.html +1 -1
- data/docs/api/fr_method_index.html +32 -30
- data/lib/icalendar/component/alarm.rb +1 -1
- data/lib/icalendar/component/event.rb +1 -1
- data/lib/icalendar/component/freebusy.rb +2 -2
- data/lib/icalendar/component/journal.rb +1 -1
- data/lib/icalendar/component/timezone.rb +3 -1
- data/lib/icalendar/component/todo.rb +1 -1
- data/lib/icalendar/component.rb +36 -14
- data/lib/icalendar/parser.rb +1 -2
- metadata +34 -32
- data/docs/api/classes/HashAttrs.src/M000068.html +0 -26
- data/docs/api/classes/Icalendar/Calendar.src/M000054.html +0 -23
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>find_freebusy (Icalendar::Calendar)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-identifier">
|
|
16
|
-
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 76</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_freebusy</span>(<span class="ruby-identifier">uid</span>)
|
|
15
|
+
<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>}
|
|
17
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
18
17
|
</body>
|
|
19
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>timezone (Icalendar::Calendar)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-identifier">e</span> = <span class="ruby-constant">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/calendar.rb, line 80</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timezone</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
|
15
|
+
<span class="ruby-identifier">e</span> = <span class="ruby-constant">Timezone</span>.<span class="ruby-identifier">new</span>
|
|
16
16
|
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add_component</span> <span class="ruby-identifier">e</span>
|
|
17
17
|
|
|
18
18
|
<span class="ruby-identifier">e</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>
|
|
@@ -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>publish (Icalendar::Calendar)</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/calendar.rb, line 98</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">publish</span>
|
|
15
|
+
<span class="ruby-identifier">ip_method</span> = <span class="ruby-value str">"PUBLISH"</span>
|
|
16
|
+
|
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -108,10 +108,12 @@ an <a href="Alarm.html">Alarm</a>.
|
|
|
108
108
|
<a href="#M000034">add_journal</a>
|
|
109
109
|
<a href="#M000033">add_todo</a>
|
|
110
110
|
<a href="#M000045">custom_property</a>
|
|
111
|
-
<a href="#
|
|
112
|
-
<a href="#
|
|
113
|
-
<a href="#
|
|
111
|
+
<a href="#M000048">ical_component</a>
|
|
112
|
+
<a href="#M000050">ical_multi_property</a>
|
|
113
|
+
<a href="#M000051">ical_multiline_property</a>
|
|
114
|
+
<a href="#M000049">ical_property</a>
|
|
114
115
|
<a href="#M000046">multi_property?</a>
|
|
116
|
+
<a href="#M000047">multiline_property?</a>
|
|
115
117
|
<a href="#M000029">new</a>
|
|
116
118
|
<a href="#M000040">new_uid</a>
|
|
117
119
|
<a href="#M000042">print_component</a>
|
|
@@ -122,7 +124,7 @@ an <a href="Alarm.html">Alarm</a>.
|
|
|
122
124
|
<a href="#M000037">remove_event</a>
|
|
123
125
|
<a href="#M000039">remove_journal</a>
|
|
124
126
|
<a href="#M000038">remove_todo</a>
|
|
125
|
-
<a href="#
|
|
127
|
+
<a href="#M000052">respond_to?</a>
|
|
126
128
|
<a href="#M000041">to_ical</a>
|
|
127
129
|
</div>
|
|
128
130
|
</div>
|
|
@@ -179,12 +181,12 @@ an <a href="Alarm.html">Alarm</a>.
|
|
|
179
181
|
|
|
180
182
|
<h3 class="section-bar">Protected Class methods</h3>
|
|
181
183
|
|
|
182
|
-
<div id="method-
|
|
183
|
-
<a name="
|
|
184
|
+
<div id="method-M000048" class="method-detail">
|
|
185
|
+
<a name="M000048"></a>
|
|
184
186
|
|
|
185
187
|
<div class="method-heading">
|
|
186
|
-
<a href="Component.src/
|
|
187
|
-
onclick="popupCode('Component.src/
|
|
188
|
+
<a href="Component.src/M000048.html" target="Code" class="method-signature"
|
|
189
|
+
onclick="popupCode('Component.src/M000048.html');return false;">
|
|
188
190
|
<span class="method-name">ical_component</span><span class="method-args">(*syms)</span>
|
|
189
191
|
</a>
|
|
190
192
|
</div>
|
|
@@ -196,37 +198,57 @@ Make it protected so we can monitor usage…
|
|
|
196
198
|
</div>
|
|
197
199
|
</div>
|
|
198
200
|
|
|
199
|
-
<div id="method-
|
|
200
|
-
<a name="
|
|
201
|
+
<div id="method-M000050" class="method-detail">
|
|
202
|
+
<a name="M000050"></a>
|
|
201
203
|
|
|
202
204
|
<div class="method-heading">
|
|
203
|
-
<a href="Component.src/
|
|
204
|
-
onclick="popupCode('Component.src/
|
|
205
|
+
<a href="Component.src/M000050.html" target="Code" class="method-signature"
|
|
206
|
+
onclick="popupCode('Component.src/M000050.html');return false;">
|
|
205
207
|
<span class="method-name">ical_multi_property</span><span class="method-args">(property, singular, plural)</span>
|
|
206
208
|
</a>
|
|
207
209
|
</div>
|
|
208
210
|
|
|
209
211
|
<div class="method-description">
|
|
210
212
|
<p>
|
|
211
|
-
Define a set of methods defining a new
|
|
212
|
-
values for the same property name.
|
|
213
|
+
Define a set of methods defining a <a href="Component.html#M000029">new</a>
|
|
214
|
+
property, which supports multiple values for the same property name.
|
|
213
215
|
</p>
|
|
214
216
|
</div>
|
|
215
217
|
</div>
|
|
216
218
|
|
|
217
|
-
<div id="method-
|
|
218
|
-
<a name="
|
|
219
|
+
<div id="method-M000051" class="method-detail">
|
|
220
|
+
<a name="M000051"></a>
|
|
219
221
|
|
|
220
222
|
<div class="method-heading">
|
|
221
|
-
<a href="Component.src/
|
|
222
|
-
onclick="popupCode('Component.src/
|
|
223
|
+
<a href="Component.src/M000051.html" target="Code" class="method-signature"
|
|
224
|
+
onclick="popupCode('Component.src/M000051.html');return false;">
|
|
225
|
+
<span class="method-name">ical_multiline_property</span><span class="method-args">(property, singular, plural)</span>
|
|
226
|
+
</a>
|
|
227
|
+
</div>
|
|
228
|
+
|
|
229
|
+
<div class="method-description">
|
|
230
|
+
<p>
|
|
231
|
+
Define a set of methods defining a <a href="Component.html#M000029">new</a>
|
|
232
|
+
property, which supports multiple values in multiple lines with same
|
|
233
|
+
property name
|
|
234
|
+
</p>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<div id="method-M000049" class="method-detail">
|
|
239
|
+
<a name="M000049"></a>
|
|
240
|
+
|
|
241
|
+
<div class="method-heading">
|
|
242
|
+
<a href="Component.src/M000049.html" target="Code" class="method-signature"
|
|
243
|
+
onclick="popupCode('Component.src/M000049.html');return false;">
|
|
223
244
|
<span class="method-name">ical_property</span><span class="method-args">(property, alias_name = nil, prop_name = nil)</span>
|
|
224
245
|
</a>
|
|
225
246
|
</div>
|
|
226
247
|
|
|
227
248
|
<div class="method-description">
|
|
228
249
|
<p>
|
|
229
|
-
Define a set of methods supporting a
|
|
250
|
+
Define a set of methods supporting a <a
|
|
251
|
+
href="Component.html#M000029">new</a> property
|
|
230
252
|
</p>
|
|
231
253
|
</div>
|
|
232
254
|
</div>
|
|
@@ -319,8 +341,8 @@ Alias for <a href="Component.html#M000030">add_component</a>
|
|
|
319
341
|
<div class="method-description">
|
|
320
342
|
<p>
|
|
321
343
|
TODO: Look into the x-property, x-param stuff… This would really only
|
|
322
|
-
be needed for subclassing to add
|
|
323
|
-
using the API.
|
|
344
|
+
be needed for subclassing to <a href="Component.html#M000031">add</a>
|
|
345
|
+
additional properties to an application using the API.
|
|
324
346
|
</p>
|
|
325
347
|
</div>
|
|
326
348
|
</div>
|
|
@@ -339,6 +361,20 @@ using the API.
|
|
|
339
361
|
</div>
|
|
340
362
|
</div>
|
|
341
363
|
|
|
364
|
+
<div id="method-M000047" class="method-detail">
|
|
365
|
+
<a name="M000047"></a>
|
|
366
|
+
|
|
367
|
+
<div class="method-heading">
|
|
368
|
+
<a href="Component.src/M000047.html" target="Code" class="method-signature"
|
|
369
|
+
onclick="popupCode('Component.src/M000047.html');return false;">
|
|
370
|
+
<span class="method-name">multiline_property?</span><span class="method-args">(name)</span>
|
|
371
|
+
</a>
|
|
372
|
+
</div>
|
|
373
|
+
|
|
374
|
+
<div class="method-description">
|
|
375
|
+
</div>
|
|
376
|
+
</div>
|
|
377
|
+
|
|
342
378
|
<div id="method-M000040" class="method-detail">
|
|
343
379
|
<a name="M000040"></a>
|
|
344
380
|
|
|
@@ -477,12 +513,12 @@ Alias for <a href="Component.html#M000035">remove_component</a>
|
|
|
477
513
|
</div>
|
|
478
514
|
</div>
|
|
479
515
|
|
|
480
|
-
<div id="method-
|
|
481
|
-
<a name="
|
|
516
|
+
<div id="method-M000052" class="method-detail">
|
|
517
|
+
<a name="M000052"></a>
|
|
482
518
|
|
|
483
519
|
<div class="method-heading">
|
|
484
|
-
<a href="Component.src/
|
|
485
|
-
onclick="popupCode('Component.src/
|
|
520
|
+
<a href="Component.src/M000052.html" target="Code" class="method-signature"
|
|
521
|
+
onclick="popupCode('Component.src/M000052.html');return false;">
|
|
486
522
|
<span class="method-name">respond_to?</span><span class="method-args">(method_name)</span>
|
|
487
523
|
</a>
|
|
488
524
|
</div>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 46</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
|
|
15
15
|
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
|
16
16
|
<span class="ruby-ivar">@components</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>([])
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 55</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_component</span>(<span class="ruby-identifier">component</span>)
|
|
15
15
|
<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-operator">+</span> <span class="ruby-value str">'s'</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>
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 77</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_component</span>(<span class="ruby-identifier">component</span>)
|
|
15
15
|
<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-operator">+</span> <span class="ruby-value str">'s'</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>
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 98</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_uid</span>
|
|
15
15
|
<span class="ruby-node">"#{DateTime.now}_#{rand(999999999)}@#{Socket.gethostname}"</span>
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 103</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
|
|
15
15
|
<span class="ruby-identifier">print_component</span> <span class="ruby-keyword kw">do</span>
|
|
16
16
|
<span class="ruby-identifier">s</span> = <span class="ruby-value str">""</span>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 114</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_component</span>
|
|
15
15
|
<span class="ruby-comment cmt"># Begin a new component</span>
|
|
16
16
|
<span class="ruby-node">"BEGIN:#{@name.upcase}\r\n"</span> <span class="ruby-operator">+</span>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 129</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_properties</span>
|
|
15
15
|
<span class="ruby-identifier">s</span> = <span class="ruby-value str">""</span>
|
|
16
16
|
|
|
@@ -22,20 +22,30 @@
|
|
|
22
22
|
<span class="ruby-keyword kw">end</span>
|
|
23
23
|
|
|
24
24
|
<span class="ruby-comment cmt"># Property name</span>
|
|
25
|
-
<span class="ruby-
|
|
25
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">multiline_property?</span>(<span class="ruby-identifier">key</span>)
|
|
26
|
+
<span class="ruby-identifier">prelude</span> = <span class="ruby-node">"#{key.gsub(/_/, '-').upcase}"</span> <span class="ruby-operator">+</span>
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
<span class="ruby-comment cmt"># Possible parameters</span>
|
|
29
|
+
<span class="ruby-identifier">print_parameters</span>(<span class="ruby-identifier">val</span>)
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
<span class="ruby-comment cmt"># Property value</span>
|
|
32
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-node">":#{val.to_ical}"</span>
|
|
33
|
+
<span class="ruby-identifier">escaped</span> = <span class="ruby-identifier">prelude</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"\\"</span>, <span class="ruby-value str">"\\\\"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"\n"</span>, <span class="ruby-value str">"\\n"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">","</span>, <span class="ruby-value str">"\\,"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">";"</span>, <span class="ruby-value str">"\\;"</span>)
|
|
34
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escaped</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span>, <span class="ruby-constant">MAX_LINE_LENGTH</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\r\n "</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">escaped</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-constant">MAX_LINE_LENGTH</span>
|
|
35
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escaped</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\r\n"</span>
|
|
36
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/ *$/</span>, <span class="ruby-value str">''</span>)
|
|
37
|
+
<span class="ruby-keyword kw">else</span>
|
|
38
|
+
<span class="ruby-identifier">prelude</span> = <span class="ruby-node">"#{key.gsub(/_/, '-').upcase}"</span>
|
|
39
|
+
<span class="ruby-identifier">val</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
|
40
|
+
<span class="ruby-identifier">params</span> = <span class="ruby-identifier">print_parameters</span>(<span class="ruby-identifier">v</span>)
|
|
41
|
+
<span class="ruby-identifier">value</span> = <span class="ruby-node">":#{v.to_ical}"</span>
|
|
42
|
+
<span class="ruby-identifier">escaped</span> = <span class="ruby-identifier">prelude</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">params</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"\\"</span>, <span class="ruby-value str">"\\\\"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">"\n"</span>, <span class="ruby-value str">"\\n"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">","</span>, <span class="ruby-value str">"\\,"</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">";"</span>, <span class="ruby-value str">"\\;"</span>)
|
|
43
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escaped</span>.<span class="ruby-identifier">slice!</span>(<span class="ruby-value">0</span>, <span class="ruby-constant">MAX_LINE_LENGTH</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\r\n "</span> <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">escaped</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">></span> <span class="ruby-constant">MAX_LINE_LENGTH</span>
|
|
44
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">escaped</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\r\n"</span>
|
|
45
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/ *$/</span>, <span class="ruby-value str">''</span>)
|
|
46
|
+
<span class="ruby-keyword kw">end</span>
|
|
47
|
+
<span class="ruby-keyword kw">end</span>
|
|
37
48
|
<span class="ruby-keyword kw">end</span>
|
|
38
|
-
|
|
39
49
|
<span class="ruby-identifier">s</span>
|
|
40
50
|
<span class="ruby-keyword kw">end</span></pre>
|
|
41
51
|
</body>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 168</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_parameters</span>(<span class="ruby-identifier">val</span>)
|
|
15
15
|
<span class="ruby-identifier">s</span> = <span class="ruby-value str">""</span>
|
|
16
16
|
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">s</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:ical_params</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">ical_params</span>.<span class="ruby-identifier">nil?</span>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 194</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">custom_property</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
|
15
15
|
<span class="ruby-ivar">@properties</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 198</span>
|
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multi_property?</span>(<span class="ruby-identifier">name</span>)
|
|
15
15
|
<span class="ruby-ivar">@@multi_properties</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>.<span class="ruby-identifier">downcase</span>)
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>multiline_property? (Icalendar::Component)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-
|
|
15
|
-
<span class="ruby-
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 202</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multiline_property?</span>(<span class="ruby-identifier">name</span>)
|
|
15
|
+
<span class="ruby-ivar">@@multiline_properties</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">name</span>.<span class="ruby-identifier">downcase</span>)
|
|
16
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,22 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>ical_component (Icalendar::Component)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Component</span>.<span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-identifier">
|
|
16
|
-
<span class="ruby-identifier">alias_name</span> = <span class="ruby-node">"#{alias_name}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">alias_name</span>.<span class="ruby-identifier">nil?</span>
|
|
17
|
-
|
|
18
|
-
<span class="ruby-comment cmt"># If a prop_name was given then we use that for the actual storage</span>
|
|
19
|
-
<span class="ruby-identifier">property</span> = <span class="ruby-node">"#{prop_name}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">prop_name</span>.<span class="ruby-identifier">nil?</span>
|
|
20
|
-
|
|
21
|
-
<span class="ruby-identifier">generate_getter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span>)
|
|
22
|
-
<span class="ruby-identifier">generate_setter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span>)
|
|
23
|
-
<span class="ruby-identifier">generate_query</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span>)
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 209</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Component</span>.<span class="ruby-identifier">ical_component</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>)
|
|
15
|
+
<span class="ruby-identifier">hash_accessor</span> <span class="ruby-identifier">:@components</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">syms</span>
|
|
24
16
|
<span class="ruby-keyword kw">end</span></pre>
|
|
25
17
|
</body>
|
|
26
18
|
</html>
|
|
@@ -5,25 +5,21 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>ical_property (Icalendar::Component)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Component</span>.<span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-identifier">property</span> = <span class="ruby-node">"#{property}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span
|
|
16
|
-
<span class="ruby-identifier">
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 214</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Component</span>.<span class="ruby-identifier">ical_property</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">prop_name</span> = <span class="ruby-keyword kw">nil</span>)
|
|
15
|
+
<span class="ruby-identifier">property</span> = <span class="ruby-node">"#{property}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>
|
|
16
|
+
<span class="ruby-identifier">alias_name</span> = <span class="ruby-node">"#{alias_name}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">alias_name</span>.<span class="ruby-identifier">nil?</span>
|
|
17
|
+
<span class="ruby-comment cmt"># If a prop_name was given then we use that for the actual storage</span>
|
|
18
|
+
<span class="ruby-identifier">property</span> = <span class="ruby-node">"#{prop_name}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">prop_name</span>.<span class="ruby-identifier">nil?</span>
|
|
17
19
|
|
|
18
|
-
<span class="ruby-
|
|
19
|
-
<span class="ruby-
|
|
20
|
-
<span class="ruby-
|
|
21
|
-
|
|
22
|
-
<span class="ruby-identifier">generate_multi_getter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">plural</span>)
|
|
23
|
-
<span class="ruby-identifier">generate_multi_setter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">plural</span>)
|
|
24
|
-
<span class="ruby-identifier">generate_multi_query</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">plural</span>)
|
|
25
|
-
<span class="ruby-identifier">generate_multi_adder</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>)
|
|
26
|
-
<span class="ruby-identifier">generate_multi_remover</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>)
|
|
20
|
+
<span class="ruby-identifier">generate_getter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span>)
|
|
21
|
+
<span class="ruby-identifier">generate_setter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span>)
|
|
22
|
+
<span class="ruby-identifier">generate_query</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">alias_name</span>)
|
|
27
23
|
<span class="ruby-keyword kw">end</span></pre>
|
|
28
24
|
</body>
|
|
29
25
|
</html>
|
|
@@ -5,18 +5,25 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>ical_multi_property (Icalendar::Component)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
10
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">
|
|
15
|
-
<span class="ruby-
|
|
16
|
-
|
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/icalendar/component.rb, line 227</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Component</span>.<span class="ruby-identifier">ical_multi_property</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>, <span class="ruby-identifier">plural</span>)
|
|
15
|
+
<span class="ruby-identifier">property</span> = <span class="ruby-node">"#{property}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/-/</span>, <span class="ruby-value str">'_'</span>)
|
|
16
|
+
<span class="ruby-identifier">plural</span> = <span class="ruby-node">"#{plural}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>
|
|
18
17
|
|
|
19
|
-
<span class="ruby-
|
|
18
|
+
<span class="ruby-comment cmt"># Set this key so the parser knows to use an array for</span>
|
|
19
|
+
<span class="ruby-comment cmt"># storing this property type.</span>
|
|
20
|
+
<span class="ruby-ivar">@@multi_properties</span>[<span class="ruby-node">"#{property}"</span>] = <span class="ruby-keyword kw">true</span>
|
|
21
|
+
|
|
22
|
+
<span class="ruby-identifier">generate_multi_getter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">plural</span>)
|
|
23
|
+
<span class="ruby-identifier">generate_multi_setter</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">plural</span>)
|
|
24
|
+
<span class="ruby-identifier">generate_multi_query</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">plural</span>)
|
|
25
|
+
<span class="ruby-identifier">generate_multi_adder</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>)
|
|
26
|
+
<span class="ruby-identifier">generate_multi_remover</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>)
|
|
20
27
|
<span class="ruby-keyword kw">end</span></pre>
|
|
21
28
|
</body>
|
|
22
29
|
</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>ical_multiline_property (Icalendar::Component)</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.rb, line 244</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-constant">Component</span>.<span class="ruby-identifier">ical_multiline_property</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>, <span class="ruby-identifier">plural</span>)
|
|
15
|
+
<span class="ruby-ivar">@@multiline_properties</span>[<span class="ruby-node">"#{property}"</span>] = <span class="ruby-keyword kw">true</span>
|
|
16
|
+
<span class="ruby-identifier">ical_multi_property</span>(<span class="ruby-identifier">property</span>, <span class="ruby-identifier">singular</span>, <span class="ruby-identifier">plural</span>)
|
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
18
|
+
</body>
|
|
19
|
+
</html>
|
|
@@ -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>respond_to? (Icalendar::Component)</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.rb, line 437</span>
|
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">method_name</span>)
|
|
15
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">method_name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">downcase</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/x_.*/</span>
|
|
16
|
+
<span class="ruby-keyword kw">super</span>
|
|
17
|
+
<span class="ruby-keyword kw">end</span>
|
|
18
|
+
|
|
19
|
+
<span class="ruby-keyword kw">true</span>
|
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|