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,22 +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::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 46</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>)
|
|
15
|
-
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|
|
16
|
-
<span class="ruby-ivar">@components</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>([])
|
|
17
|
-
<span class="ruby-ivar">@properties</span> = {}
|
|
18
|
-
|
|
19
|
-
<span class="ruby-ivar">@@logger</span>.<span class="ruby-identifier">info</span>(<span class="ruby-node">"New #{@name[1,@name.size].capitalize}..."</span>)
|
|
20
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
-
</body>
|
|
22
|
-
</html>
|
|
@@ -1,24 +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>add_component (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 55</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_component</span>(<span class="ruby-identifier">component</span>)
|
|
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
|
-
|
|
17
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@components</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-identifier">key</span>
|
|
18
|
-
<span class="ruby-ivar">@components</span>[<span class="ruby-identifier">key</span>] = []
|
|
19
|
-
<span class="ruby-keyword kw">end</span>
|
|
20
|
-
|
|
21
|
-
<span class="ruby-ivar">@components</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">component</span>
|
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
@@ -1,22 +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>remove_component (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 77</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_component</span>(<span class="ruby-identifier">component</span>)
|
|
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
|
-
|
|
17
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@components</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-identifier">key</span>
|
|
18
|
-
<span class="ruby-ivar">@components</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">component</span>)
|
|
19
|
-
<span class="ruby-keyword kw">end</span>
|
|
20
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
21
|
-
</body>
|
|
22
|
-
</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_uid (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 98</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_uid</span>
|
|
15
|
-
<span class="ruby-node">"#{DateTime.now}_#{rand(999999999)}@#{Socket.gethostname}"</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,24 +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>to_ical (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 103</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_ical</span>
|
|
15
|
-
<span class="ruby-identifier">print_component</span> <span class="ruby-keyword kw">do</span>
|
|
16
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-value str">""</span>
|
|
17
|
-
<span class="ruby-ivar">@components</span>.<span class="ruby-identifier">each_value</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">comps</span><span class="ruby-operator">|</span>
|
|
18
|
-
<span class="ruby-identifier">comps</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">component</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">component</span>.<span class="ruby-identifier">to_ical</span> }
|
|
19
|
-
<span class="ruby-keyword kw">end</span>
|
|
20
|
-
<span class="ruby-identifier">s</span>
|
|
21
|
-
<span class="ruby-keyword kw">end</span>
|
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
23
|
-
</body>
|
|
24
|
-
</html>
|
|
@@ -1,28 +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>print_component (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 114</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_component</span>
|
|
15
|
-
<span class="ruby-comment cmt"># Begin a new component</span>
|
|
16
|
-
<span class="ruby-node">"BEGIN:#{@name.upcase}\r\n"</span> <span class="ruby-operator">+</span>
|
|
17
|
-
|
|
18
|
-
<span class="ruby-comment cmt"># Then the properties</span>
|
|
19
|
-
<span class="ruby-identifier">print_properties</span> <span class="ruby-operator">+</span>
|
|
20
|
-
|
|
21
|
-
<span class="ruby-comment cmt"># sub components</span>
|
|
22
|
-
<span class="ruby-keyword kw">yield</span> <span class="ruby-operator">+</span>
|
|
23
|
-
|
|
24
|
-
<span class="ruby-comment cmt"># End of this component</span>
|
|
25
|
-
<span class="ruby-node">"END:#{@name.upcase}\r\n"</span>
|
|
26
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
@@ -1,52 +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>print_properties (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 129</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_properties</span>
|
|
15
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-value str">""</span>
|
|
16
|
-
|
|
17
|
-
<span class="ruby-ivar">@properties</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>,<span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
|
|
18
|
-
<span class="ruby-comment cmt"># Take out underscore for property names that conflicted</span>
|
|
19
|
-
<span class="ruby-comment cmt"># with built-in words.</span>
|
|
20
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/ip_.*/</span>
|
|
21
|
-
<span class="ruby-identifier">key</span> = <span class="ruby-identifier">key</span>[<span class="ruby-value">3</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
|
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
|
23
|
-
|
|
24
|
-
<span class="ruby-comment cmt"># Property name</span>
|
|
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>
|
|
27
|
-
|
|
28
|
-
<span class="ruby-comment cmt"># Possible parameters</span>
|
|
29
|
-
<span class="ruby-identifier">print_parameters</span>(<span class="ruby-identifier">val</span>)
|
|
30
|
-
|
|
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>
|
|
48
|
-
<span class="ruby-keyword kw">end</span>
|
|
49
|
-
<span class="ruby-identifier">s</span>
|
|
50
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
51
|
-
</body>
|
|
52
|
-
</html>
|
|
@@ -1,37 +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>print_parameters (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 168</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">print_parameters</span>(<span class="ruby-identifier">val</span>)
|
|
15
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-value str">""</span>
|
|
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>
|
|
17
|
-
|
|
18
|
-
<span class="ruby-identifier">val</span>.<span class="ruby-identifier">ical_params</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>,<span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
|
|
19
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">";#{key}"</span>
|
|
20
|
-
<span class="ruby-identifier">val</span> = [ <span class="ruby-identifier">val</span> ] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>)
|
|
21
|
-
|
|
22
|
-
<span class="ruby-comment cmt"># Possible parameter values</span>
|
|
23
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">val</span>.<span class="ruby-identifier">empty?</span>
|
|
24
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"="</span>
|
|
25
|
-
<span class="ruby-identifier">sep</span> = <span class="ruby-value str">""</span> <span class="ruby-comment cmt"># First entry comes after = sign, but then we need commas</span>
|
|
26
|
-
<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">pval</span><span class="ruby-operator">|</span>
|
|
27
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pval</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_ical</span>
|
|
28
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">sep</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">pval</span>.<span class="ruby-identifier">to_ical</span>
|
|
29
|
-
<span class="ruby-identifier">sep</span> = <span class="ruby-value str">","</span>
|
|
30
|
-
<span class="ruby-keyword kw">end</span>
|
|
31
|
-
<span class="ruby-keyword kw">end</span>
|
|
32
|
-
<span class="ruby-keyword kw">end</span>
|
|
33
|
-
<span class="ruby-keyword kw">end</span>
|
|
34
|
-
<span class="ruby-identifier">s</span>
|
|
35
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
36
|
-
</body>
|
|
37
|
-
</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>custom_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 194</span>
|
|
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
|
-
<span class="ruby-ivar">@properties</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">value</span>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</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>multi_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 198</span>
|
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">multi_property?</span>(<span class="ruby-identifier">name</span>)
|
|
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
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</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>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 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
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</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>ical_component (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 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>
|
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
17
|
-
</body>
|
|
18
|
-
</html>
|
|
@@ -1,25 +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>ical_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 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>
|
|
19
|
-
|
|
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>)
|
|
23
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
24
|
-
</body>
|
|
25
|
-
</html>
|
|
@@ -1,29 +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>ical_multi_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 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>
|
|
17
|
-
|
|
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>)
|
|
27
|
-
<span class="ruby-keyword kw">end</span></pre>
|
|
28
|
-
</body>
|
|
29
|
-
</html>
|
|
@@ -1,19 +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>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>
|
|
@@ -1,22 +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>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>
|
|
@@ -1,177 +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>Module: Icalendar::DateProp</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>Module</strong></td>
|
|
53
|
-
<td class="class-name-in-header">Icalendar::DateProp</td>
|
|
54
|
-
</tr>
|
|
55
|
-
<tr class="top-aligned-row">
|
|
56
|
-
<td><strong>In:</strong></td>
|
|
57
|
-
<td>
|
|
58
|
-
<a href="../../files/lib/icalendar/helpers_rb.html">
|
|
59
|
-
lib/icalendar/helpers.rb
|
|
60
|
-
</a>
|
|
61
|
-
<br />
|
|
62
|
-
</td>
|
|
63
|
-
</tr>
|
|
64
|
-
|
|
65
|
-
</table>
|
|
66
|
-
</div>
|
|
67
|
-
<!-- banner header -->
|
|
68
|
-
|
|
69
|
-
<div id="bodyContent">
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<div id="contextContent">
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
<div id="method-list">
|
|
80
|
-
<h3 class="section-bar">Methods</h3>
|
|
81
|
-
|
|
82
|
-
<div class="name-list">
|
|
83
|
-
<a href="#M000013">append_features</a>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<!-- if includes -->
|
|
91
|
-
|
|
92
|
-
<div id="section">
|
|
93
|
-
|
|
94
|
-
<div id="class-list">
|
|
95
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
|
96
|
-
|
|
97
|
-
Module <a href="DateProp/ClassMethods.html" class="link">Icalendar::DateProp::ClassMethods</a><br />
|
|
98
|
-
|
|
99
|
-
</div>
|
|
100
|
-
|
|
101
|
-
<div id="constants-list">
|
|
102
|
-
<h3 class="section-bar">Constants</h3>
|
|
103
|
-
|
|
104
|
-
<div class="name-list">
|
|
105
|
-
<table summary="Constants">
|
|
106
|
-
<tr class="top-aligned-row context-row">
|
|
107
|
-
<td class="context-item-name">DATE</td>
|
|
108
|
-
<td>=</td>
|
|
109
|
-
<td class="context-item-value">'(\d\d\d\d)(\d\d)(\d\d)'</td>
|
|
110
|
-
<td width="3em"> </td>
|
|
111
|
-
<td class="context-item-desc">
|
|
112
|
-
date = date-fullyear date-month date-mday date-fullyear = 4 DIGIT
|
|
113
|
-
date-month = 2 DIGIT date-mday = 2 DIGIT
|
|
114
|
-
|
|
115
|
-
</td>
|
|
116
|
-
</tr>
|
|
117
|
-
<tr class="top-aligned-row context-row">
|
|
118
|
-
<td class="context-item-name">TIME</td>
|
|
119
|
-
<td>=</td>
|
|
120
|
-
<td class="context-item-value">'(\d\d)(\d\d)(\d\d)'</td>
|
|
121
|
-
<td width="3em"> </td>
|
|
122
|
-
<td class="context-item-desc">
|
|
123
|
-
time = time-hour [":"] time-minute [":"] time-second
|
|
124
|
-
[time-secfrac] [time-zone] time-hour = 2 DIGIT time-minute = 2 DIGIT
|
|
125
|
-
time-second = 2 DIGIT time-secfrac = "," 1*DIGIT time-zone =
|
|
126
|
-
"Z" / time-numzone time-numzome = sign time-hour [":"]
|
|
127
|
-
time-minute
|
|
128
|
-
|
|
129
|
-
<pre>
|
|
130
|
-
TIME = '(\d\d)(\d\d)(\d\d)(Z)?'
|
|
131
|
-
</pre>
|
|
132
|
-
</td>
|
|
133
|
-
</tr>
|
|
134
|
-
</table>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<!-- if method_list -->
|
|
144
|
-
<div id="methods">
|
|
145
|
-
<h3 class="section-bar">Public Class methods</h3>
|
|
146
|
-
|
|
147
|
-
<div id="method-M000013" class="method-detail">
|
|
148
|
-
<a name="M000013"></a>
|
|
149
|
-
|
|
150
|
-
<div class="method-heading">
|
|
151
|
-
<a href="DateProp.src/M000013.html" target="Code" class="method-signature"
|
|
152
|
-
onclick="popupCode('DateProp.src/M000013.html');return false;">
|
|
153
|
-
<span class="method-name">append_features</span><span class="method-args">(base)</span>
|
|
154
|
-
</a>
|
|
155
|
-
</div>
|
|
156
|
-
|
|
157
|
-
<div class="method-description">
|
|
158
|
-
<p>
|
|
159
|
-
This method is called automatically when the module is mixed in. I guess
|
|
160
|
-
you have to do this to mixin class methods rather than instance methods.
|
|
161
|
-
</p>
|
|
162
|
-
</div>
|
|
163
|
-
</div>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
</div>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<div id="validator-badges">
|
|
173
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
</body>
|
|
177
|
-
</html>
|