icalendar 0.96.4 → 0.97
Sign up to get free protection for your applications and to get access to all the features.
- data/README +66 -53
- data/Rakefile +33 -24
- data/docs/api/classes/Array.html +9 -11
- data/docs/api/classes/Array.src/M000002.html +18 -0
- data/docs/api/classes/Date.html +2 -22
- data/docs/api/classes/Date.src/M000004.html +29 -0
- data/docs/api/classes/DateTime.html +2 -43
- data/docs/api/classes/DateTime.src/M000005.html +50 -0
- data/docs/api/classes/Fixnum.html +2 -11
- data/docs/api/classes/Fixnum.src/M000011.html +18 -0
- data/docs/api/classes/Float.html +2 -11
- data/docs/api/classes/Float.src/M000003.html +18 -0
- data/docs/api/classes/HashAttrs.html +15 -60
- data/docs/api/classes/HashAttrs.src/M000068.html +26 -0
- data/docs/api/classes/HashAttrs.src/M000069.html +27 -0
- data/docs/api/classes/HashAttrs.src/M000070.html +19 -0
- data/docs/api/classes/Icalendar/Alarm.html +5 -15
- data/docs/api/classes/Icalendar/Alarm.src/M000020.html +22 -0
- data/docs/api/classes/Icalendar/Base.html +41 -0
- data/docs/api/classes/Icalendar/Base.src/M000022.html +18 -0
- data/docs/api/classes/Icalendar/Base.src/M000023.html +18 -0
- data/docs/api/classes/Icalendar/Calendar.html +116 -116
- data/docs/api/classes/Icalendar/Calendar.src/M000054.html +23 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000055.html +23 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000056.html +18 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000057.html +23 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000058.html +18 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000059.html +23 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000060.html +18 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000061.html +23 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000062.html +18 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000063.html +23 -0
- data/docs/api/classes/Icalendar/Calendar.src/M000064.html +19 -0
- data/docs/api/classes/Icalendar/Component.html +200 -367
- data/docs/api/classes/Icalendar/Component.src/M000029.html +22 -0
- data/docs/api/classes/Icalendar/Component.src/M000030.html +24 -0
- data/docs/api/classes/Icalendar/Component.src/M000035.html +22 -0
- data/docs/api/classes/Icalendar/Component.src/M000040.html +18 -0
- data/docs/api/classes/Icalendar/Component.src/M000041.html +24 -0
- data/docs/api/classes/Icalendar/Component.src/M000042.html +28 -0
- data/docs/api/classes/Icalendar/Component.src/M000043.html +37 -0
- data/docs/api/classes/Icalendar/Component.src/M000044.html +37 -0
- data/docs/api/classes/Icalendar/Component.src/M000045.html +18 -0
- data/docs/api/classes/Icalendar/Component.src/M000046.html +18 -0
- data/docs/api/classes/Icalendar/Component.src/M000047.html +18 -0
- data/docs/api/classes/Icalendar/Component.src/M000048.html +26 -0
- data/docs/api/classes/Icalendar/Component.src/M000049.html +29 -0
- data/docs/api/classes/Icalendar/Component.src/M000050.html +22 -0
- data/docs/api/classes/Icalendar/DateProp.html +2 -12
- data/docs/api/classes/Icalendar/DateProp.src/M000013.html +19 -0
- data/docs/api/classes/Icalendar/DateProp/ClassMethods.html +2 -59
- data/docs/api/classes/Icalendar/DateProp/ClassMethods.src/M000014.html +66 -0
- data/docs/api/classes/Icalendar/Daylight.html +5 -14
- data/docs/api/classes/Icalendar/Daylight.src/M000051.html +18 -0
- data/docs/api/classes/Icalendar/Event.html +30 -37
- data/docs/api/classes/Icalendar/Event.src/M000052.html +23 -0
- data/docs/api/classes/Icalendar/Event.src/M000053.html +23 -0
- data/docs/api/classes/Icalendar/Freebusy.html +5 -14
- data/docs/api/classes/Icalendar/Freebusy.src/M000065.html +21 -0
- data/docs/api/classes/Icalendar/Geo.html +192 -0
- data/docs/api/classes/Icalendar/Geo.src/M000024.html +19 -0
- data/docs/api/classes/Icalendar/Geo.src/M000025.html +18 -0
- data/docs/api/classes/Icalendar/Journal.html +2 -11
- data/docs/api/classes/Icalendar/Journal.src/M000016.html +22 -0
- data/docs/api/classes/Icalendar/Parameter.html +5 -23
- data/docs/api/classes/Icalendar/Parameter.src/M000066.html +27 -0
- data/docs/api/classes/Icalendar/Parser.html +36 -212
- data/docs/api/classes/Icalendar/Parser.src/M000017.html +32 -0
- data/docs/api/classes/Icalendar/Parser.src/M000018.html +43 -0
- data/docs/api/classes/Icalendar/Parser.src/M000019.html +33 -0
- data/docs/api/classes/Icalendar/Standard.html +2 -11
- data/docs/api/classes/Icalendar/Standard.src/M000015.html +18 -0
- data/docs/api/classes/Icalendar/Timezone.html +16 -48
- data/docs/api/classes/Icalendar/Timezone.src/M000026.html +19 -0
- data/docs/api/classes/Icalendar/Timezone.src/M000027.html +22 -0
- data/docs/api/classes/Icalendar/Timezone.src/M000028.html +18 -0
- data/docs/api/classes/Icalendar/Todo.html +5 -14
- data/docs/api/classes/Icalendar/Todo.src/M000021.html +22 -0
- data/docs/api/classes/Object.html +10 -59
- data/docs/api/classes/Object.src/M000006.html +20 -0
- data/docs/api/classes/Object.src/M000007.html +18 -0
- data/docs/api/classes/Object.src/M000008.html +20 -0
- data/docs/api/classes/Object.src/M000009.html +18 -0
- data/docs/api/classes/Object.src/M000010.html +18 -0
- data/docs/api/classes/String.html +2 -11
- data/docs/api/classes/String.src/M000012.html +18 -0
- data/docs/api/classes/Time.html +2 -26
- data/docs/api/classes/Time.src/M000001.html +37 -0
- data/docs/api/classes/URI/Generic.html +5 -14
- data/docs/api/classes/URI/Generic.src/M000067.html +18 -0
- data/docs/api/created.rid +1 -1
- data/docs/api/files/COPYING.html +1 -1
- data/docs/api/files/GPL.html +1 -1
- data/docs/api/files/README.html +76 -64
- 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 +8 -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 +2 -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_class_index.html +1 -0
- data/docs/api/fr_method_index.html +57 -41
- data/docs/rfcs/itip_notes.txt +69 -0
- data/examples/create_cal.rb +33 -32
- data/examples/parse_cal.rb +2 -2
- data/lib/icalendar/base.rb +8 -0
- data/lib/icalendar/calendar.rb +32 -3
- data/lib/icalendar/component.rb +187 -113
- data/lib/icalendar/component/alarm.rb +3 -0
- data/lib/icalendar/component/event.rb +9 -3
- data/lib/icalendar/component/freebusy.rb +3 -0
- data/lib/icalendar/component/journal.rb +4 -0
- data/lib/icalendar/component/todo.rb +4 -0
- data/lib/icalendar/conversions.rb +7 -1
- data/lib/icalendar/parser.rb +68 -90
- data/test/calendar_test.rb +32 -8
- data/test/component/event_test.rb +4 -7
- data/test/component/todo_test.rb +13 -0
- data/test/component_test.rb +21 -34
- data/test/conversions_test.rb +66 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-hash_attrs_rb.html +574 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-base_rb.html +575 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-calendar_rb.html +629 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-alarm_rb.html +581 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-event_rb.html +658 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-freebusy_rb.html +574 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-journal_rb.html +597 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-timezone_rb.html +625 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component-todo_rb.html +600 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-component_rb.html +924 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-conversions_rb.html +667 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar-parser_rb.html +938 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-icalendar_rb.html +576 -0
- data/test/coverage/-home-rosejn-projects-icalendar-lib-meta_rb.html +572 -0
- data/test/coverage/calendar_test_rb.html +590 -0
- data/test/coverage/component_test_rb.html +602 -0
- data/test/coverage/index.html +1009 -0
- data/test/coverage/lib-hash_attrs_rb.html +574 -0
- data/test/coverage/lib-icalendar-base_rb.html +583 -0
- data/test/coverage/lib-icalendar-calendar_rb.html +631 -0
- data/test/coverage/lib-icalendar-component-alarm_rb.html +581 -0
- data/test/coverage/lib-icalendar-component-event_rb.html +661 -0
- data/test/coverage/lib-icalendar-component-freebusy_rb.html +576 -0
- data/test/coverage/lib-icalendar-component-journal_rb.html +599 -0
- data/test/coverage/lib-icalendar-component-timezone_rb.html +625 -0
- data/test/coverage/lib-icalendar-component-todo_rb.html +602 -0
- data/test/coverage/lib-icalendar-component_rb.html +941 -0
- data/test/coverage/lib-icalendar-conversions_rb.html +673 -0
- data/test/coverage/lib-icalendar-parser_rb.html +916 -0
- data/test/coverage/lib-icalendar_rb.html +576 -0
- data/test/coverage/lib-meta_rb.html +572 -0
- data/test/coverage/parameter_test_rb.html +569 -0
- data/test/coverage/parser_test_rb.html +623 -0
- data/test/coverage/test-calendar_test_rb.html +590 -0
- data/test/coverage/test-component-event_test_rb.html +584 -0
- data/test/coverage/test-component_test_rb.html +606 -0
- data/test/coverage/test-conversions_test_rb.html +603 -0
- data/test/coverage/test-parameter_test_rb.html +569 -0
- data/test/coverage/test-parser_test_rb.html +624 -0
- data/test/interactive.rb +3 -1
- data/test/life.ics +46 -1092
- data/test/parameter_test.rb +11 -2
- data/test/parser_test.rb +12 -11
- metadata +259 -126
- data/test/old_life.ics +0 -46
- data/test/rw.ics +0 -947
@@ -0,0 +1,66 @@
|
|
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>date_property (Icalendar::DateProp::ClassMethods)</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/helpers.rb, line 38</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_property</span>(<span class="ruby-identifier">dp</span>, <span class="ruby-identifier">alias_name</span> = <span class="ruby-keyword kw">nil</span>)
|
15
|
+
<span class="ruby-identifier">dp</span> = <span class="ruby-node">"#{dp}"</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>
|
16
|
+
<span class="ruby-identifier">getter</span> = <span class="ruby-identifier">dp</span>
|
17
|
+
<span class="ruby-identifier">setter</span> = <span class="ruby-node">"#{dp}="</span>
|
18
|
+
<span class="ruby-identifier">query</span> = <span class="ruby-node">"#{dp}?"</span>
|
19
|
+
|
20
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">instance_methods</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">getter</span>
|
21
|
+
<span class="ruby-identifier">code</span> = <span class="ruby-value str">"def \#{getter}(*a)\nif a.empty?\n@properties[\#{dp.upcase}]\nelse\nself.\#{dp} = a.first\nend\nend\n"</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">module_eval</span> <span class="ruby-identifier">code</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
|
26
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">instance_methods</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">setter</span>
|
27
|
+
<span class="ruby-identifier">code</span> = <span class="ruby-value str">"def \#{setter} a\n@properties[\#{dp.upcase}] = a\nend\n"</span>
|
28
|
+
|
29
|
+
<span class="ruby-identifier">module_eval</span> <span class="ruby-identifier">code</span>
|
30
|
+
<span class="ruby-keyword kw">end</span>
|
31
|
+
|
32
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">instance_methods</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">query</span>
|
33
|
+
<span class="ruby-identifier">code</span> = <span class="ruby-value str">"def \#{query}\n@properties.has_key?(\#{dp.upcase})\nend\n"</span>
|
34
|
+
|
35
|
+
<span class="ruby-identifier">module_eval</span> <span class="ruby-identifier">code</span>
|
36
|
+
<span class="ruby-keyword kw">end</span>
|
37
|
+
|
38
|
+
<span class="ruby-comment cmt"># Define the getter</span>
|
39
|
+
<span class="ruby-identifier">getter</span> = <span class="ruby-node">"get#{property.to_s.capitalize}"</span>
|
40
|
+
<span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">getter</span>.<span class="ruby-identifier">to_sym</span>) <span class="ruby-keyword kw">do</span>
|
41
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"inside getting..."</span>
|
42
|
+
<span class="ruby-identifier">getDateProperty</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>)
|
43
|
+
<span class="ruby-keyword kw">end</span>
|
44
|
+
|
45
|
+
<span class="ruby-comment cmt"># Define the setter</span>
|
46
|
+
<span class="ruby-identifier">setter</span> = <span class="ruby-node">"set#{property.to_s.capitalize}"</span>
|
47
|
+
<span class="ruby-identifier">define_method</span>(<span class="ruby-identifier">setter</span>.<span class="ruby-identifier">to_sym</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-operator">*</span><span class="ruby-identifier">params</span><span class="ruby-operator">|</span>
|
48
|
+
<span class="ruby-identifier">date</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>]
|
49
|
+
<span class="ruby-identifier">utc</span> = <span class="ruby-identifier">params</span>[<span class="ruby-value">1</span>]
|
50
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"inside setting..."</span>
|
51
|
+
<span class="ruby-identifier">setDateProperty</span>(<span class="ruby-identifier">property</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>, <span class="ruby-identifier">date</span>, <span class="ruby-identifier">utc</span>)
|
52
|
+
<span class="ruby-keyword kw">end</span>
|
53
|
+
|
54
|
+
<span class="ruby-comment cmt"># Create aliases if a name was specified</span>
|
55
|
+
<span class="ruby-comment cmt"># if not aliasName.nil?</span>
|
56
|
+
<span class="ruby-comment cmt"># gasym = "get#{aliasName.to_s.capitalize}".to_sym </span>
|
57
|
+
<span class="ruby-comment cmt"># gsym = getter.to_sym</span>
|
58
|
+
<span class="ruby-comment cmt"># alias gasym gsym </span>
|
59
|
+
|
60
|
+
<span class="ruby-comment cmt"># sasym = "set#{aliasName.to_s.capitalize}".to_sym </span>
|
61
|
+
<span class="ruby-comment cmt"># ssym = setter.to_sym</span>
|
62
|
+
<span class="ruby-comment cmt"># alias sasym ssym </span>
|
63
|
+
<span class="ruby-comment cmt"># end</span>
|
64
|
+
<span class="ruby-keyword kw">end</span></pre>
|
65
|
+
</body>
|
66
|
+
</html>
|
@@ -96,7 +96,7 @@ the time offset for what is commonly known as daylight savings time.
|
|
96
96
|
<h3 class="section-bar">Methods</h3>
|
97
97
|
|
98
98
|
<div class="name-list">
|
99
|
-
<a href="#
|
99
|
+
<a href="#M000051">new</a>
|
100
100
|
</div>
|
101
101
|
</div>
|
102
102
|
|
@@ -118,26 +118,17 @@ the time offset for what is commonly known as daylight savings time.
|
|
118
118
|
<div id="methods">
|
119
119
|
<h3 class="section-bar">Public Class methods</h3>
|
120
120
|
|
121
|
-
<div id="method-
|
122
|
-
<a name="
|
121
|
+
<div id="method-M000051" class="method-detail">
|
122
|
+
<a name="M000051"></a>
|
123
123
|
|
124
124
|
<div class="method-heading">
|
125
|
-
<a href="
|
125
|
+
<a href="Daylight.src/M000051.html" target="Code" class="method-signature"
|
126
|
+
onclick="popupCode('Daylight.src/M000051.html');return false;">
|
126
127
|
<span class="method-name">new</span><span class="method-args">()</span>
|
127
128
|
</a>
|
128
129
|
</div>
|
129
130
|
|
130
131
|
<div class="method-description">
|
131
|
-
<p><a class="source-toggle" href="#"
|
132
|
-
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
133
|
-
<div class="method-source-code" id="M000040-source">
|
134
|
-
<pre>
|
135
|
-
<span class="ruby-comment cmt"># File lib/icalendar/component/timezone.rb, line 80</span>
|
136
|
-
80: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
|
137
|
-
81: <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">"DAYLIGHT"</span>)
|
138
|
-
82: <span class="ruby-keyword kw">end</span>
|
139
|
-
</pre>
|
140
|
-
</div>
|
141
132
|
</div>
|
142
133
|
</div>
|
143
134
|
|
@@ -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>new (Icalendar::Daylight)</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/timezone.rb, line 80</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">"DAYLIGHT"</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -99,8 +99,8 @@ will take up time on an individual calendar.
|
|
99
99
|
<h3 class="section-bar">Methods</h3>
|
100
100
|
|
101
101
|
<div class="name-list">
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
102
|
+
<a href="#M000053">alarm</a>
|
103
|
+
<a href="#M000052">new</a>
|
104
104
|
</div>
|
105
105
|
</div>
|
106
106
|
|
@@ -337,6 +337,14 @@ Specifies a date and time that this item ends
|
|
337
337
|
<td class="context-item-desc">
|
338
338
|
Latitude & longitude for specified activity
|
339
339
|
|
340
|
+
</td>
|
341
|
+
</tr>
|
342
|
+
<tr class="top-aligned-row context-row">
|
343
|
+
<td class="context-item-name">geo_location</td>
|
344
|
+
<td class="context-item-value"> </td>
|
345
|
+
<td class="context-item-desc">
|
346
|
+
Latitude & longitude for specified activity
|
347
|
+
|
340
348
|
</td>
|
341
349
|
</tr>
|
342
350
|
<tr class="top-aligned-row context-row">
|
@@ -345,6 +353,14 @@ Latitude & longitude for specified activity
|
|
345
353
|
<td class="context-item-desc">
|
346
354
|
Access classification (PUBLIC, PRIVATE, CONFIDENTIAL…)
|
347
355
|
|
356
|
+
</td>
|
357
|
+
</tr>
|
358
|
+
<tr class="top-aligned-row context-row">
|
359
|
+
<td class="context-item-name">klass</td>
|
360
|
+
<td class="context-item-value"> </td>
|
361
|
+
<td class="context-item-desc">
|
362
|
+
Access classification (PUBLIC, PRIVATE, CONFIDENTIAL…)
|
363
|
+
|
348
364
|
</td>
|
349
365
|
</tr>
|
350
366
|
<tr class="top-aligned-row context-row">
|
@@ -549,18 +565,18 @@ Defines a persistent, globally unique id for this item
|
|
549
565
|
</td>
|
550
566
|
</tr>
|
551
567
|
<tr class="top-aligned-row context-row">
|
552
|
-
<td class="context-item-name">
|
568
|
+
<td class="context-item-name">unique_id</td>
|
553
569
|
<td class="context-item-value"> </td>
|
554
570
|
<td class="context-item-desc">
|
555
|
-
Defines a
|
571
|
+
Defines a persistent, globally unique id for this item
|
556
572
|
|
557
573
|
</td>
|
558
574
|
</tr>
|
559
575
|
<tr class="top-aligned-row context-row">
|
560
|
-
<td class="context-item-name">
|
576
|
+
<td class="context-item-name">url</td>
|
561
577
|
<td class="context-item-value"> </td>
|
562
578
|
<td class="context-item-desc">
|
563
|
-
Defines a
|
579
|
+
Defines a URL associated with this item
|
564
580
|
|
565
581
|
</td>
|
566
582
|
</tr>
|
@@ -574,56 +590,33 @@ Defines a persistent, globally unique id for this item
|
|
574
590
|
<div id="methods">
|
575
591
|
<h3 class="section-bar">Public Class methods</h3>
|
576
592
|
|
577
|
-
<div id="method-
|
578
|
-
<a name="
|
593
|
+
<div id="method-M000052" class="method-detail">
|
594
|
+
<a name="M000052"></a>
|
579
595
|
|
580
596
|
<div class="method-heading">
|
581
|
-
<a href="
|
597
|
+
<a href="Event.src/M000052.html" target="Code" class="method-signature"
|
598
|
+
onclick="popupCode('Event.src/M000052.html');return false;">
|
582
599
|
<span class="method-name">new</span><span class="method-args">()</span>
|
583
600
|
</a>
|
584
601
|
</div>
|
585
602
|
|
586
603
|
<div class="method-description">
|
587
|
-
<p><a class="source-toggle" href="#"
|
588
|
-
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
589
|
-
<div class="method-source-code" id="M000041-source">
|
590
|
-
<pre>
|
591
|
-
<span class="ruby-comment cmt"># File lib/icalendar/component/event.rb, line 103</span>
|
592
|
-
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
|
593
|
-
104: <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">"VEVENT"</span>)
|
594
|
-
105: <span class="ruby-keyword kw">end</span>
|
595
|
-
</pre>
|
596
|
-
</div>
|
597
604
|
</div>
|
598
605
|
</div>
|
599
606
|
|
600
607
|
<h3 class="section-bar">Public Instance methods</h3>
|
601
608
|
|
602
|
-
<div id="method-
|
603
|
-
<a name="
|
609
|
+
<div id="method-M000053" class="method-detail">
|
610
|
+
<a name="M000053"></a>
|
604
611
|
|
605
612
|
<div class="method-heading">
|
606
|
-
<a href="
|
613
|
+
<a href="Event.src/M000053.html" target="Code" class="method-signature"
|
614
|
+
onclick="popupCode('Event.src/M000053.html');return false;">
|
607
615
|
<span class="method-name">alarm</span><span class="method-args">(&block)</span>
|
608
616
|
</a>
|
609
617
|
</div>
|
610
618
|
|
611
619
|
<div class="method-description">
|
612
|
-
<p><a class="source-toggle" href="#"
|
613
|
-
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
614
|
-
<div class="method-source-code" id="M000042-source">
|
615
|
-
<pre>
|
616
|
-
<span class="ruby-comment cmt"># File lib/icalendar/component/event.rb, line 107</span>
|
617
|
-
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alarm</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
618
|
-
108: <span class="ruby-identifier">a</span> = <span class="ruby-constant">Alarm</span>.<span class="ruby-identifier">new</span>
|
619
|
-
109: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add</span> <span class="ruby-identifier">a</span>
|
620
|
-
110:
|
621
|
-
111: <span class="ruby-identifier">a</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>
|
622
|
-
112:
|
623
|
-
113: <span class="ruby-identifier">a</span>
|
624
|
-
114: <span class="ruby-keyword kw">end</span>
|
625
|
-
</pre>
|
626
|
-
</div>
|
627
620
|
</div>
|
628
621
|
</div>
|
629
622
|
|
@@ -0,0 +1,23 @@
|
|
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::Event)</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/event.rb, line 103</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">"VEVENT"</span>)
|
16
|
+
|
17
|
+
<span class="ruby-comment cmt"># Now doing some basic initialization</span>
|
18
|
+
<span class="ruby-identifier">sequence</span> <span class="ruby-value">0</span>
|
19
|
+
<span class="ruby-identifier">timestamp</span> <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">now</span>
|
20
|
+
<span class="ruby-identifier">uid</span> <span class="ruby-identifier">new_uid</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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>alarm (Icalendar::Event)</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/event.rb, line 112</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">alarm</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
15
|
+
<span class="ruby-identifier">a</span> = <span class="ruby-constant">Alarm</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">add</span> <span class="ruby-identifier">a</span>
|
17
|
+
|
18
|
+
<span class="ruby-identifier">a</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>
|
19
|
+
|
20
|
+
<span class="ruby-identifier">a</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -97,7 +97,7 @@ information.
|
|
97
97
|
<h3 class="section-bar">Methods</h3>
|
98
98
|
|
99
99
|
<div class="name-list">
|
100
|
-
<a href="#
|
100
|
+
<a href="#M000065">new</a>
|
101
101
|
</div>
|
102
102
|
</div>
|
103
103
|
|
@@ -259,26 +259,17 @@ Single properties
|
|
259
259
|
<div id="methods">
|
260
260
|
<h3 class="section-bar">Public Class methods</h3>
|
261
261
|
|
262
|
-
<div id="method-
|
263
|
-
<a name="
|
262
|
+
<div id="method-M000065" class="method-detail">
|
263
|
+
<a name="M000065"></a>
|
264
264
|
|
265
265
|
<div class="method-heading">
|
266
|
-
<a href="
|
266
|
+
<a href="Freebusy.src/M000065.html" target="Code" class="method-signature"
|
267
|
+
onclick="popupCode('Freebusy.src/M000065.html');return false;">
|
267
268
|
<span class="method-name">new</span><span class="method-args">()</span>
|
268
269
|
</a>
|
269
270
|
</div>
|
270
271
|
|
271
272
|
<div class="method-description">
|
272
|
-
<p><a class="source-toggle" href="#"
|
273
|
-
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
274
|
-
<div class="method-source-code" id="M000049-source">
|
275
|
-
<pre>
|
276
|
-
<span class="ruby-comment cmt"># File lib/icalendar/component/freebusy.rb, line 30</span>
|
277
|
-
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
|
278
|
-
31: <span class="ruby-keyword kw">super</span>(<span class="ruby-value str">"VFREEBUSY"</span>)
|
279
|
-
32: <span class="ruby-keyword kw">end</span>
|
280
|
-
</pre>
|
281
|
-
</div>
|
282
273
|
</div>
|
283
274
|
</div>
|
284
275
|
|
@@ -0,0 +1,21 @@
|
|
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::Freebusy)</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/freebusy.rb, line 30</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">"VFREEBUSY"</span>)
|
16
|
+
|
17
|
+
<span class="ruby-identifier">timestamp</span> <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">now</span>
|
18
|
+
<span class="ruby-identifier">uid</span> <span class="ruby-identifier">new_uid</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,192 @@
|
|
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::Geo</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::Geo</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/icalendar/component_rb.html">
|
59
|
+
lib/icalendar/component.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="Base.html">
|
69
|
+
Icalendar::Base
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="method-list">
|
88
|
+
<h3 class="section-bar">Methods</h3>
|
89
|
+
|
90
|
+
<div class="name-list">
|
91
|
+
<a href="#M000024">new</a>
|
92
|
+
<a href="#M000025">to_ical</a>
|
93
|
+
</div>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
|
99
|
+
<!-- if includes -->
|
100
|
+
|
101
|
+
<div id="section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<div id="aliases-list">
|
106
|
+
<h3 class="section-bar">External Aliases</h3>
|
107
|
+
|
108
|
+
<div class="name-list">
|
109
|
+
<table summary="aliases">
|
110
|
+
<tr class="top-aligned-row context-row">
|
111
|
+
<td class="context-item-name">latitude</td>
|
112
|
+
<td>-></td>
|
113
|
+
<td class="context-item-value">lat</td>
|
114
|
+
</tr>
|
115
|
+
<tr class="top-aligned-row context-row">
|
116
|
+
<td class="context-item-name">longitude</td>
|
117
|
+
<td>-></td>
|
118
|
+
<td class="context-item-value">long</td>
|
119
|
+
</tr>
|
120
|
+
</table>
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
|
125
|
+
<div id="attribute-list">
|
126
|
+
<h3 class="section-bar">Attributes</h3>
|
127
|
+
|
128
|
+
<div class="name-list">
|
129
|
+
<table>
|
130
|
+
<tr class="top-aligned-row context-row">
|
131
|
+
<td class="context-item-name">latitude</td>
|
132
|
+
<td class="context-item-value"> [RW] </td>
|
133
|
+
<td class="context-item-desc"></td>
|
134
|
+
</tr>
|
135
|
+
<tr class="top-aligned-row context-row">
|
136
|
+
<td class="context-item-name">longitude</td>
|
137
|
+
<td class="context-item-value"> [RW] </td>
|
138
|
+
<td class="context-item-desc"></td>
|
139
|
+
</tr>
|
140
|
+
</table>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<!-- if method_list -->
|
147
|
+
<div id="methods">
|
148
|
+
<h3 class="section-bar">Public Class methods</h3>
|
149
|
+
|
150
|
+
<div id="method-M000024" class="method-detail">
|
151
|
+
<a name="M000024"></a>
|
152
|
+
|
153
|
+
<div class="method-heading">
|
154
|
+
<a href="Geo.src/M000024.html" target="Code" class="method-signature"
|
155
|
+
onclick="popupCode('Geo.src/M000024.html');return false;">
|
156
|
+
<span class="method-name">new</span><span class="method-args">(lat, long)</span>
|
157
|
+
</a>
|
158
|
+
</div>
|
159
|
+
|
160
|
+
<div class="method-description">
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
165
|
+
|
166
|
+
<div id="method-M000025" class="method-detail">
|
167
|
+
<a name="M000025"></a>
|
168
|
+
|
169
|
+
<div class="method-heading">
|
170
|
+
<a href="Geo.src/M000025.html" target="Code" class="method-signature"
|
171
|
+
onclick="popupCode('Geo.src/M000025.html');return false;">
|
172
|
+
<span class="method-name">to_ical</span><span class="method-args">()</span>
|
173
|
+
</a>
|
174
|
+
</div>
|
175
|
+
|
176
|
+
<div class="method-description">
|
177
|
+
</div>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
</div>
|
182
|
+
|
183
|
+
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
<div id="validator-badges">
|
188
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
</body>
|
192
|
+
</html>
|