icalendar 1.0 → 1.0.1
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/lib/icalendar/component/event.rb +1 -1
- data/lib/icalendar/component/journal.rb +1 -1
- data/test/conversions_test.rb +2 -2
- data/test/fixtures/folding.ics +1 -1
- metadata +2 -155
- data/docs/api/classes/Array.html +0 -146
- data/docs/api/classes/Array.src/M000002.html +0 -18
- data/docs/api/classes/Date.html +0 -139
- data/docs/api/classes/Date.src/M000004.html +0 -29
- data/docs/api/classes/DateTime.html +0 -139
- data/docs/api/classes/DateTime.src/M000005.html +0 -50
- data/docs/api/classes/Fixnum.html +0 -139
- data/docs/api/classes/Fixnum.src/M000011.html +0 -18
- data/docs/api/classes/Float.html +0 -139
- data/docs/api/classes/Float.src/M000003.html +0 -18
- data/docs/api/classes/HashAttrs.html +0 -167
- data/docs/api/classes/HashAttrs.src/M000070.html +0 -26
- data/docs/api/classes/HashAttrs.src/M000071.html +0 -27
- data/docs/api/classes/HashAttrs.src/M000072.html +0 -19
- data/docs/api/classes/Icalendar/Alarm.html +0 -230
- data/docs/api/classes/Icalendar/Alarm.src/M000021.html +0 -22
- data/docs/api/classes/Icalendar/Base.html +0 -161
- data/docs/api/classes/Icalendar/Base.src/M000022.html +0 -18
- data/docs/api/classes/Icalendar/Base.src/M000023.html +0 -18
- data/docs/api/classes/Icalendar/Calendar.html +0 -366
- data/docs/api/classes/Icalendar/Calendar.src/M000056.html +0 -23
- data/docs/api/classes/Icalendar/Calendar.src/M000057.html +0 -23
- data/docs/api/classes/Icalendar/Calendar.src/M000058.html +0 -18
- data/docs/api/classes/Icalendar/Calendar.src/M000059.html +0 -23
- data/docs/api/classes/Icalendar/Calendar.src/M000060.html +0 -18
- data/docs/api/classes/Icalendar/Calendar.src/M000061.html +0 -23
- data/docs/api/classes/Icalendar/Calendar.src/M000062.html +0 -18
- data/docs/api/classes/Icalendar/Calendar.src/M000063.html +0 -23
- data/docs/api/classes/Icalendar/Calendar.src/M000064.html +0 -18
- data/docs/api/classes/Icalendar/Calendar.src/M000065.html +0 -23
- data/docs/api/classes/Icalendar/Calendar.src/M000066.html +0 -19
- data/docs/api/classes/Icalendar/Component.html +0 -559
- data/docs/api/classes/Icalendar/Component.src/M000029.html +0 -22
- data/docs/api/classes/Icalendar/Component.src/M000030.html +0 -24
- data/docs/api/classes/Icalendar/Component.src/M000035.html +0 -22
- data/docs/api/classes/Icalendar/Component.src/M000040.html +0 -18
- data/docs/api/classes/Icalendar/Component.src/M000041.html +0 -24
- data/docs/api/classes/Icalendar/Component.src/M000042.html +0 -28
- data/docs/api/classes/Icalendar/Component.src/M000043.html +0 -52
- data/docs/api/classes/Icalendar/Component.src/M000044.html +0 -37
- data/docs/api/classes/Icalendar/Component.src/M000045.html +0 -18
- data/docs/api/classes/Icalendar/Component.src/M000046.html +0 -18
- data/docs/api/classes/Icalendar/Component.src/M000047.html +0 -18
- data/docs/api/classes/Icalendar/Component.src/M000048.html +0 -18
- data/docs/api/classes/Icalendar/Component.src/M000049.html +0 -25
- data/docs/api/classes/Icalendar/Component.src/M000050.html +0 -29
- data/docs/api/classes/Icalendar/Component.src/M000051.html +0 -19
- data/docs/api/classes/Icalendar/Component.src/M000052.html +0 -22
- data/docs/api/classes/Icalendar/DateProp.html +0 -177
- data/docs/api/classes/Icalendar/DateProp.src/M000013.html +0 -19
- data/docs/api/classes/Icalendar/DateProp/ClassMethods.html +0 -138
- data/docs/api/classes/Icalendar/DateProp/ClassMethods.src/M000014.html +0 -66
- data/docs/api/classes/Icalendar/Daylight.html +0 -147
- data/docs/api/classes/Icalendar/Daylight.src/M000053.html +0 -18
- data/docs/api/classes/Icalendar/Event.html +0 -611
- data/docs/api/classes/Icalendar/Event.src/M000054.html +0 -23
- data/docs/api/classes/Icalendar/Event.src/M000055.html +0 -23
- data/docs/api/classes/Icalendar/Freebusy.html +0 -249
- data/docs/api/classes/Icalendar/Freebusy.src/M000067.html +0 -21
- data/docs/api/classes/Icalendar/Geo.html +0 -192
- data/docs/api/classes/Icalendar/Geo.src/M000024.html +0 -19
- data/docs/api/classes/Icalendar/Geo.src/M000025.html +0 -18
- data/docs/api/classes/Icalendar/InvalidPropertyValue.html +0 -117
- data/docs/api/classes/Icalendar/Journal.html +0 -430
- data/docs/api/classes/Icalendar/Journal.src/M000016.html +0 -22
- data/docs/api/classes/Icalendar/Parameter.html +0 -148
- data/docs/api/classes/Icalendar/Parameter.src/M000068.html +0 -27
- data/docs/api/classes/Icalendar/Parser.html +0 -271
- data/docs/api/classes/Icalendar/Parser.src/M000017.html +0 -32
- data/docs/api/classes/Icalendar/Parser.src/M000018.html +0 -43
- data/docs/api/classes/Icalendar/Parser.src/M000019.html +0 -33
- data/docs/api/classes/Icalendar/Standard.html +0 -147
- data/docs/api/classes/Icalendar/Standard.src/M000015.html +0 -18
- data/docs/api/classes/Icalendar/Timezone.html +0 -351
- data/docs/api/classes/Icalendar/Timezone.src/M000026.html +0 -19
- data/docs/api/classes/Icalendar/Timezone.src/M000027.html +0 -24
- data/docs/api/classes/Icalendar/Timezone.src/M000028.html +0 -18
- data/docs/api/classes/Icalendar/Todo.html +0 -467
- data/docs/api/classes/Icalendar/Todo.src/M000020.html +0 -22
- data/docs/api/classes/Icalendar/UnknownComponentClass.html +0 -117
- data/docs/api/classes/Icalendar/UnknownPropertyMethod.html +0 -117
- data/docs/api/classes/Object.html +0 -223
- data/docs/api/classes/Object.src/M000006.html +0 -20
- data/docs/api/classes/Object.src/M000007.html +0 -18
- data/docs/api/classes/Object.src/M000008.html +0 -20
- data/docs/api/classes/Object.src/M000009.html +0 -18
- data/docs/api/classes/Object.src/M000010.html +0 -18
- data/docs/api/classes/String.html +0 -139
- data/docs/api/classes/String.src/M000012.html +0 -18
- data/docs/api/classes/Time.html +0 -139
- data/docs/api/classes/Time.src/M000001.html +0 -37
- data/docs/api/classes/URI.html +0 -111
- data/docs/api/classes/URI/Generic.html +0 -139
- data/docs/api/classes/URI/Generic.src/M000069.html +0 -18
- data/docs/api/created.rid +0 -1
- data/docs/api/files/COPYING.html +0 -163
- data/docs/api/files/GPL.html +0 -531
- data/docs/api/files/README.html +0 -266
- data/docs/api/files/lib/hash_attrs_rb.html +0 -107
- data/docs/api/files/lib/icalendar/base_rb.html +0 -108
- data/docs/api/files/lib/icalendar/calendar_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component/alarm_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component/event_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component/freebusy_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component/journal_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component/timezone_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component/todo_rb.html +0 -101
- data/docs/api/files/lib/icalendar/component_rb.html +0 -108
- data/docs/api/files/lib/icalendar/conversions_rb.html +0 -109
- data/docs/api/files/lib/icalendar/helpers_rb.html +0 -101
- data/docs/api/files/lib/icalendar/parameter_rb.html +0 -101
- data/docs/api/files/lib/icalendar/parser_rb.html +0 -110
- data/docs/api/files/lib/icalendar_rb.html +0 -120
- data/docs/api/files/lib/meta_rb.html +0 -107
- data/docs/api/fr_class_index.html +0 -56
- data/docs/api/fr_file_index.html +0 -45
- data/docs/api/fr_method_index.html +0 -98
- data/docs/api/index.html +0 -24
- data/docs/api/rdoc-style.css +0 -208
|
@@ -1,32 +0,0 @@
|
|
|
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::Parser)</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/parser.rb, line 41</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">src</span>)
|
|
15
|
-
<span class="ruby-comment cmt"># Setup the parser method hash table</span>
|
|
16
|
-
<span class="ruby-identifier">setup_parsers</span>()
|
|
17
|
-
|
|
18
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:gets</span>)
|
|
19
|
-
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">src</span>
|
|
20
|
-
<span class="ruby-keyword kw">elsif</span> (<span class="ruby-keyword kw">not</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">src</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_s</span>)
|
|
21
|
-
<span class="ruby-ivar">@file</span> = <span class="ruby-constant">StringIO</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">src</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-value str">'r'</span>)
|
|
22
|
-
<span class="ruby-keyword kw">else</span>
|
|
23
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"CalendarParser.new cannot be called with a #{src.class} type!"</span>
|
|
24
|
-
<span class="ruby-keyword kw">end</span>
|
|
25
|
-
|
|
26
|
-
<span class="ruby-ivar">@prev_line</span> = <span class="ruby-ivar">@file</span>.<span class="ruby-identifier">gets</span>
|
|
27
|
-
<span class="ruby-ivar">@prev_line</span>.<span class="ruby-identifier">chomp!</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@prev_line</span>.<span class="ruby-identifier">nil?</span>
|
|
28
|
-
|
|
29
|
-
<span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">debug</span>(<span class="ruby-node">"New Calendar Parser: #{@file.inspect}"</span>)
|
|
30
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
31
|
-
</body>
|
|
32
|
-
</html>
|
|
@@ -1,43 +0,0 @@
|
|
|
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>next_line (Icalendar::Parser)</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/parser.rb, line 61</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">next_line</span>
|
|
15
|
-
<span class="ruby-identifier">line</span> = <span class="ruby-ivar">@prev_line</span>
|
|
16
|
-
|
|
17
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">line</span>.<span class="ruby-identifier">nil?</span>
|
|
18
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
|
19
|
-
<span class="ruby-keyword kw">end</span>
|
|
20
|
-
|
|
21
|
-
<span class="ruby-comment cmt"># Loop through until we get to a non-continuation line...</span>
|
|
22
|
-
<span class="ruby-identifier">loop</span> <span class="ruby-keyword kw">do</span>
|
|
23
|
-
<span class="ruby-identifier">nextLine</span> = <span class="ruby-ivar">@file</span>.<span class="ruby-identifier">gets</span>
|
|
24
|
-
<span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-node">"new_line: #{nextLine}"</span>
|
|
25
|
-
|
|
26
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">nextLine</span>.<span class="ruby-identifier">nil?</span>
|
|
27
|
-
<span class="ruby-identifier">nextLine</span>.<span class="ruby-identifier">chomp!</span>
|
|
28
|
-
<span class="ruby-keyword kw">end</span>
|
|
29
|
-
|
|
30
|
-
<span class="ruby-comment cmt"># If it's a continuation line, add it to the last.</span>
|
|
31
|
-
<span class="ruby-comment cmt"># If it's an empty line, drop it from the input.</span>
|
|
32
|
-
<span class="ruby-keyword kw">if</span>( <span class="ruby-identifier">nextLine</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^[ \t]/</span> )
|
|
33
|
-
<span class="ruby-identifier">line</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">nextLine</span>[<span class="ruby-value">1</span>, <span class="ruby-identifier">nextLine</span>.<span class="ruby-identifier">size</span>]
|
|
34
|
-
<span class="ruby-keyword kw">elsif</span>( <span class="ruby-identifier">nextLine</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^$/</span> )
|
|
35
|
-
<span class="ruby-keyword kw">else</span>
|
|
36
|
-
<span class="ruby-ivar">@prev_line</span> = <span class="ruby-identifier">nextLine</span>
|
|
37
|
-
<span class="ruby-keyword kw">break</span>
|
|
38
|
-
<span class="ruby-keyword kw">end</span>
|
|
39
|
-
<span class="ruby-keyword kw">end</span>
|
|
40
|
-
<span class="ruby-identifier">line</span>
|
|
41
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
|
@@ -1,33 +0,0 @@
|
|
|
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>parse (Icalendar::Parser)</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/parser.rb, line 91</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span>
|
|
15
|
-
<span class="ruby-identifier">calendars</span> = []
|
|
16
|
-
|
|
17
|
-
<span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-value str">"parsing..."</span>
|
|
18
|
-
<span class="ruby-comment cmt"># Outer loop for Calendar objects</span>
|
|
19
|
-
<span class="ruby-keyword kw">while</span> (<span class="ruby-identifier">line</span> = <span class="ruby-identifier">next_line</span>)
|
|
20
|
-
<span class="ruby-identifier">fields</span> = <span class="ruby-identifier">parse_line</span>(<span class="ruby-identifier">line</span>)
|
|
21
|
-
|
|
22
|
-
<span class="ruby-comment cmt"># Just iterate through until we find the beginning of a calendar object</span>
|
|
23
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">fields</span>[<span class="ruby-identifier">:name</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"BEGIN"</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">fields</span>[<span class="ruby-identifier">:value</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">"VCALENDAR"</span>
|
|
24
|
-
<span class="ruby-identifier">cal</span> = <span class="ruby-identifier">parse_component</span>
|
|
25
|
-
<span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">debug</span> <span class="ruby-value str">"Added parsed calendar..."</span>
|
|
26
|
-
<span class="ruby-identifier">calendars</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">cal</span>
|
|
27
|
-
<span class="ruby-keyword kw">end</span>
|
|
28
|
-
<span class="ruby-keyword kw">end</span>
|
|
29
|
-
|
|
30
|
-
<span class="ruby-identifier">calendars</span>
|
|
31
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
32
|
-
</body>
|
|
33
|
-
</html>
|
|
@@ -1,147 +0,0 @@
|
|
|
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="#M000015">new</a>
|
|
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-M000015" class="method-detail">
|
|
122
|
-
<a name="M000015"></a>
|
|
123
|
-
|
|
124
|
-
<div class="method-heading">
|
|
125
|
-
<a href="Standard.src/M000015.html" target="Code" class="method-signature"
|
|
126
|
-
onclick="popupCode('Standard.src/M000015.html');return false;">
|
|
127
|
-
<span class="method-name">new</span><span class="method-args">()</span>
|
|
128
|
-
</a>
|
|
129
|
-
</div>
|
|
130
|
-
|
|
131
|
-
<div class="method-description">
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
</div>
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<div id="validator-badges">
|
|
143
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
144
|
-
</div>
|
|
145
|
-
|
|
146
|
-
</body>
|
|
147
|
-
</html>
|
|
@@ -1,18 +0,0 @@
|
|
|
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::Standard)</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 72</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">"STANDARD"</span>)
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,351 +0,0 @@
|
|
|
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 daylight hours, often referred to
|
|
93
|
-
as <a href="Daylight.html">Daylight</a> Saving <a
|
|
94
|
-
href="../Time.html">Time</a>. Some locations adjust their time by a
|
|
95
|
-
fraction of an hour. <a href="Standard.html">Standard</a> <a
|
|
96
|
-
href="../Time.html">Time</a> is also known as Winter <a
|
|
97
|
-
href="../Time.html">Time</a>. <a href="Daylight.html">Daylight</a> Saving
|
|
98
|
-
<a href="../Time.html">Time</a> is also known as Advanced <a
|
|
99
|
-
href="../Time.html">Time</a>, Summer <a href="../Time.html">Time</a>, or
|
|
100
|
-
Legal <a href="../Time.html">Time</a> in certain countries. The following
|
|
101
|
-
table shows the changes in time zone rules in effect for New York City
|
|
102
|
-
starting from 1967. Each line represents a description or rule for a
|
|
103
|
-
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="#M000026">add_component</a>
|
|
116
|
-
<a href="#M000028">new</a>
|
|
117
|
-
<a href="#M000027">to_ical</a>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<!-- if includes -->
|
|
125
|
-
|
|
126
|
-
<div id="section">
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
<div id="attribute-list">
|
|
133
|
-
<h3 class="section-bar">Attributes</h3>
|
|
134
|
-
|
|
135
|
-
<div class="name-list">
|
|
136
|
-
<table>
|
|
137
|
-
<tr class="top-aligned-row context-row">
|
|
138
|
-
<td class="context-item-name">comment</td>
|
|
139
|
-
<td class="context-item-value"> </td>
|
|
140
|
-
<td class="context-item-desc">
|
|
141
|
-
Multi-properties
|
|
142
|
-
|
|
143
|
-
</td>
|
|
144
|
-
</tr>
|
|
145
|
-
<tr class="top-aligned-row context-row">
|
|
146
|
-
<td class="context-item-name">comment</td>
|
|
147
|
-
<td class="context-item-value"> </td>
|
|
148
|
-
<td class="context-item-desc">
|
|
149
|
-
Multi-properties
|
|
150
|
-
|
|
151
|
-
</td>
|
|
152
|
-
</tr>
|
|
153
|
-
<tr class="top-aligned-row context-row">
|
|
154
|
-
<td class="context-item-name">comments</td>
|
|
155
|
-
<td class="context-item-value"> </td>
|
|
156
|
-
<td class="context-item-desc">
|
|
157
|
-
Multi-properties
|
|
158
|
-
|
|
159
|
-
</td>
|
|
160
|
-
</tr>
|
|
161
|
-
<tr class="top-aligned-row context-row">
|
|
162
|
-
<td class="context-item-name">created</td>
|
|
163
|
-
<td class="context-item-value"> </td>
|
|
164
|
-
<td class="context-item-desc"></td>
|
|
165
|
-
</tr>
|
|
166
|
-
<tr class="top-aligned-row context-row">
|
|
167
|
-
<td class="context-item-name">daylight</td>
|
|
168
|
-
<td class="context-item-value"> </td>
|
|
169
|
-
<td class="context-item-desc"></td>
|
|
170
|
-
</tr>
|
|
171
|
-
<tr class="top-aligned-row context-row">
|
|
172
|
-
<td class="context-item-name">dtstart</td>
|
|
173
|
-
<td class="context-item-value"> </td>
|
|
174
|
-
<td class="context-item-desc">
|
|
175
|
-
Single properties
|
|
176
|
-
|
|
177
|
-
</td>
|
|
178
|
-
</tr>
|
|
179
|
-
<tr class="top-aligned-row context-row">
|
|
180
|
-
<td class="context-item-name">last_modified</td>
|
|
181
|
-
<td class="context-item-value"> </td>
|
|
182
|
-
<td class="context-item-desc"></td>
|
|
183
|
-
</tr>
|
|
184
|
-
<tr class="top-aligned-row context-row">
|
|
185
|
-
<td class="context-item-name">rdate</td>
|
|
186
|
-
<td class="context-item-value"> </td>
|
|
187
|
-
<td class="context-item-desc"></td>
|
|
188
|
-
</tr>
|
|
189
|
-
<tr class="top-aligned-row context-row">
|
|
190
|
-
<td class="context-item-name">recurrence_date</td>
|
|
191
|
-
<td class="context-item-value"> </td>
|
|
192
|
-
<td class="context-item-desc"></td>
|
|
193
|
-
</tr>
|
|
194
|
-
<tr class="top-aligned-row context-row">
|
|
195
|
-
<td class="context-item-name">recurrence_dates</td>
|
|
196
|
-
<td class="context-item-value"> </td>
|
|
197
|
-
<td class="context-item-desc"></td>
|
|
198
|
-
</tr>
|
|
199
|
-
<tr class="top-aligned-row context-row">
|
|
200
|
-
<td class="context-item-name">recurrence_rule</td>
|
|
201
|
-
<td class="context-item-value"> </td>
|
|
202
|
-
<td class="context-item-desc"></td>
|
|
203
|
-
</tr>
|
|
204
|
-
<tr class="top-aligned-row context-row">
|
|
205
|
-
<td class="context-item-name">recurrence_rules</td>
|
|
206
|
-
<td class="context-item-value"> </td>
|
|
207
|
-
<td class="context-item-desc"></td>
|
|
208
|
-
</tr>
|
|
209
|
-
<tr class="top-aligned-row context-row">
|
|
210
|
-
<td class="context-item-name">rrule</td>
|
|
211
|
-
<td class="context-item-value"> </td>
|
|
212
|
-
<td class="context-item-desc"></td>
|
|
213
|
-
</tr>
|
|
214
|
-
<tr class="top-aligned-row context-row">
|
|
215
|
-
<td class="context-item-name">sequence</td>
|
|
216
|
-
<td class="context-item-value"> </td>
|
|
217
|
-
<td class="context-item-desc"></td>
|
|
218
|
-
</tr>
|
|
219
|
-
<tr class="top-aligned-row context-row">
|
|
220
|
-
<td class="context-item-name">standard</td>
|
|
221
|
-
<td class="context-item-value"> </td>
|
|
222
|
-
<td class="context-item-desc"></td>
|
|
223
|
-
</tr>
|
|
224
|
-
<tr class="top-aligned-row context-row">
|
|
225
|
-
<td class="context-item-name">start</td>
|
|
226
|
-
<td class="context-item-value"> </td>
|
|
227
|
-
<td class="context-item-desc">
|
|
228
|
-
Single properties
|
|
229
|
-
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr class="top-aligned-row context-row">
|
|
233
|
-
<td class="context-item-name">timestamp</td>
|
|
234
|
-
<td class="context-item-value"> </td>
|
|
235
|
-
<td class="context-item-desc"></td>
|
|
236
|
-
</tr>
|
|
237
|
-
<tr class="top-aligned-row context-row">
|
|
238
|
-
<td class="context-item-name">timezone_id</td>
|
|
239
|
-
<td class="context-item-value"> </td>
|
|
240
|
-
<td class="context-item-desc"></td>
|
|
241
|
-
</tr>
|
|
242
|
-
<tr class="top-aligned-row context-row">
|
|
243
|
-
<td class="context-item-name">timezone_name</td>
|
|
244
|
-
<td class="context-item-value"> </td>
|
|
245
|
-
<td class="context-item-desc"></td>
|
|
246
|
-
</tr>
|
|
247
|
-
<tr class="top-aligned-row context-row">
|
|
248
|
-
<td class="context-item-name">timezone_offset_from</td>
|
|
249
|
-
<td class="context-item-value"> </td>
|
|
250
|
-
<td class="context-item-desc"></td>
|
|
251
|
-
</tr>
|
|
252
|
-
<tr class="top-aligned-row context-row">
|
|
253
|
-
<td class="context-item-name">timezone_offset_to</td>
|
|
254
|
-
<td class="context-item-value"> </td>
|
|
255
|
-
<td class="context-item-desc"></td>
|
|
256
|
-
</tr>
|
|
257
|
-
<tr class="top-aligned-row context-row">
|
|
258
|
-
<td class="context-item-name">tzid</td>
|
|
259
|
-
<td class="context-item-value"> </td>
|
|
260
|
-
<td class="context-item-desc"></td>
|
|
261
|
-
</tr>
|
|
262
|
-
<tr class="top-aligned-row context-row">
|
|
263
|
-
<td class="context-item-name">tzname</td>
|
|
264
|
-
<td class="context-item-value"> </td>
|
|
265
|
-
<td class="context-item-desc"></td>
|
|
266
|
-
</tr>
|
|
267
|
-
<tr class="top-aligned-row context-row">
|
|
268
|
-
<td class="context-item-name">tzoffsetfrom</td>
|
|
269
|
-
<td class="context-item-value"> </td>
|
|
270
|
-
<td class="context-item-desc"></td>
|
|
271
|
-
</tr>
|
|
272
|
-
<tr class="top-aligned-row context-row">
|
|
273
|
-
<td class="context-item-name">tzoffsetto</td>
|
|
274
|
-
<td class="context-item-value"> </td>
|
|
275
|
-
<td class="context-item-desc"></td>
|
|
276
|
-
</tr>
|
|
277
|
-
</table>
|
|
278
|
-
</div>
|
|
279
|
-
</div>
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<!-- if method_list -->
|
|
284
|
-
<div id="methods">
|
|
285
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
286
|
-
|
|
287
|
-
<div id="method-M000028" class="method-detail">
|
|
288
|
-
<a name="M000028"></a>
|
|
289
|
-
|
|
290
|
-
<div class="method-heading">
|
|
291
|
-
<a href="Timezone.src/M000028.html" target="Code" class="method-signature"
|
|
292
|
-
onclick="popupCode('Timezone.src/M000028.html');return false;">
|
|
293
|
-
<span class="method-name">new</span><span class="method-args">(name = "VTIMEZONE")</span>
|
|
294
|
-
</a>
|
|
295
|
-
</div>
|
|
296
|
-
|
|
297
|
-
<div class="method-description">
|
|
298
|
-
</div>
|
|
299
|
-
</div>
|
|
300
|
-
|
|
301
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
|
302
|
-
|
|
303
|
-
<div id="method-M000026" class="method-detail">
|
|
304
|
-
<a name="M000026"></a>
|
|
305
|
-
|
|
306
|
-
<div class="method-heading">
|
|
307
|
-
<a href="Timezone.src/M000026.html" target="Code" class="method-signature"
|
|
308
|
-
onclick="popupCode('Timezone.src/M000026.html');return false;">
|
|
309
|
-
<span class="method-name">add_component</span><span class="method-args">(component)</span>
|
|
310
|
-
</a>
|
|
311
|
-
</div>
|
|
312
|
-
|
|
313
|
-
<div class="method-description">
|
|
314
|
-
<p>
|
|
315
|
-
Define a custom add component method because standard and daylight are the
|
|
316
|
-
only components that can occur just once with their parent.
|
|
317
|
-
</p>
|
|
318
|
-
</div>
|
|
319
|
-
</div>
|
|
320
|
-
|
|
321
|
-
<div id="method-M000027" class="method-detail">
|
|
322
|
-
<a name="M000027"></a>
|
|
323
|
-
|
|
324
|
-
<div class="method-heading">
|
|
325
|
-
<a href="Timezone.src/M000027.html" target="Code" class="method-signature"
|
|
326
|
-
onclick="popupCode('Timezone.src/M000027.html');return false;">
|
|
327
|
-
<span class="method-name">to_ical</span><span class="method-args">()</span>
|
|
328
|
-
</a>
|
|
329
|
-
</div>
|
|
330
|
-
|
|
331
|
-
<div class="method-description">
|
|
332
|
-
<p>
|
|
333
|
-
Also need a custom <a href="Timezone.html#M000027">to_ical</a> because
|
|
334
|
-
typically it iterates over an array of components.
|
|
335
|
-
</p>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
</div>
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
</div>
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
<div id="validator-badges">
|
|
347
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
348
|
-
</div>
|
|
349
|
-
|
|
350
|
-
</body>
|
|
351
|
-
</html>
|