magnolia 1.1.0 → 1.1.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/doc/classes/Magnolia.html +576 -0
- data/doc/classes/Magnolia.src/M000001.html +18 -0
- data/doc/classes/Magnolia.src/M000002.html +18 -0
- data/doc/classes/Magnolia.src/M000003.html +28 -0
- data/doc/classes/Magnolia.src/M000004.html +19 -0
- data/doc/classes/Magnolia.src/M000005.html +19 -0
- data/doc/classes/Magnolia.src/M000006.html +18 -0
- data/doc/classes/Magnolia.src/M000007.html +19 -0
- data/doc/classes/Magnolia.src/M000008.html +20 -0
- data/doc/classes/Magnolia.src/M000009.html +20 -0
- data/doc/classes/Magnolia.src/M000010.html +21 -0
- data/doc/classes/Magnolia.src/M000011.html +20 -0
- data/doc/classes/Magnolia/Mark.html +330 -0
- data/doc/classes/Magnolia/Mark.src/M000012.html +18 -0
- data/doc/classes/Magnolia/Mark.src/M000013.html +18 -0
- data/doc/classes/Magnolia/Mark.src/M000014.html +18 -0
- data/doc/classes/Magnolia/Mark.src/M000015.html +27 -0
- data/doc/classes/Magnolia/Mark.src/M000016.html +19 -0
- data/doc/classes/Magnolia/Mark.src/M000017.html +32 -0
- data/doc/classes/Magnolia/Tag.html +155 -0
- data/doc/classes/Magnolia/Tag.src/M000018.html +21 -0
- data/doc/created.rid +1 -0
- data/doc/files/lib/magnolia/magnolia_rb.html +186 -0
- data/doc/fr_class_index.html +29 -0
- data/doc/fr_file_index.html +27 -0
- data/doc/fr_method_index.html +44 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/lib/magnolia/magnolia.rb +1 -2
- data/lib/magnolia/version.rb +2 -2
- metadata +41 -4
@@ -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 (Magnolia::Mark)</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/magnolia/magnolia.rb, line 374</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
+
<span class="ruby-ivar">@tags</span> = []
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -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>img_tag (Magnolia::Mark)</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/magnolia/magnolia.rb, line 383</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">img_tag</span>
|
15
|
+
<span class="ruby-node">"<img src='#{self.screenshot}' alt='#{self.title}' />"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -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>a_tag (Magnolia::Mark)</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/magnolia/magnolia.rb, line 388</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">a_tag</span>
|
15
|
+
<span class="ruby-node">"<a href='#{self.url}' title='Link to #{self.title}'>#{self.title}</a>"</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
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>save (Magnolia::Mark)</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/magnolia/magnolia.rb, line 408</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">id</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-comment cmt"># create a new bookmark</span>
|
17
|
+
<span class="ruby-identifier">mark</span> = <span class="ruby-identifier">to_h</span>
|
18
|
+
<span class="ruby-identifier">marks</span> = <span class="ruby-constant">Magnolia</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">mark</span>)
|
19
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">id</span> = <span class="ruby-identifier">marks</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">id</span>
|
20
|
+
<span class="ruby-keyword kw">else</span>
|
21
|
+
<span class="ruby-comment cmt"># update an existing bookmark</span>
|
22
|
+
<span class="ruby-identifier">mark</span> = <span class="ruby-identifier">to_h</span>
|
23
|
+
<span class="ruby-identifier">marks</span> = <span class="ruby-constant">Magnolia</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">mark</span>)
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>find (Magnolia::Mark)</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/magnolia/magnolia.rb, line 448</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">id</span>)
|
15
|
+
<span class="ruby-identifier">marks</span> = <span class="ruby-constant">Magnolia</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">:id</span> =<span class="ruby-operator">></span><span class="ruby-identifier">id</span>)
|
16
|
+
<span class="ruby-identifier">marks</span>[<span class="ruby-value">0</span>]
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
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>from_xml (Magnolia::Mark)</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/magnolia/magnolia.rb, line 454</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">xml</span>)
|
15
|
+
<span class="ruby-identifier">mark</span> = <span class="ruby-constant">Mark</span>.<span class="ruby-identifier">new</span>()
|
16
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value str">'title'</span>].<span class="ruby-identifier">text</span>
|
17
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">url</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value str">'url'</span>].<span class="ruby-identifier">text</span>
|
18
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">description</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value str">'description'</span>].<span class="ruby-identifier">text</span>
|
19
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">screenshot</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">elements</span>[<span class="ruby-value str">'screenshot'</span>].<span class="ruby-identifier">text</span>
|
20
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">id</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'id'</span>]
|
21
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">rating</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'rating'</span>]
|
22
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">private</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'private'</span>]
|
23
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">created</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'created'</span>]
|
24
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'updated'</span>]
|
25
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">owner</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'owner'</span>]
|
26
|
+
<span class="ruby-constant">REXML</span><span class="ruby-operator">::</span><span class="ruby-constant">XPath</span>.<span class="ruby-identifier">each</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-value str">'tags/tag'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tag</span><span class="ruby-operator">|</span>
|
27
|
+
<span class="ruby-identifier">mark</span>.<span class="ruby-identifier">tags</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">tag</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'name'</span>]
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
<span class="ruby-identifier">mark</span>
|
30
|
+
<span class="ruby-keyword kw">end</span></pre>
|
31
|
+
</body>
|
32
|
+
</html>
|
@@ -0,0 +1,155 @@
|
|
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: Magnolia::Tag</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">Magnolia::Tag</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/magnolia/magnolia_rb.html">
|
59
|
+
lib/magnolia/magnolia.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
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000018">from_xml</a>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<!-- if includes -->
|
97
|
+
|
98
|
+
<div id="section">
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
<div id="attribute-list">
|
105
|
+
<h3 class="section-bar">Attributes</h3>
|
106
|
+
|
107
|
+
<div class="name-list">
|
108
|
+
<table>
|
109
|
+
<tr class="top-aligned-row context-row">
|
110
|
+
<td class="context-item-name">count</td>
|
111
|
+
<td class="context-item-value"> [RW] </td>
|
112
|
+
<td class="context-item-desc"></td>
|
113
|
+
</tr>
|
114
|
+
<tr class="top-aligned-row context-row">
|
115
|
+
<td class="context-item-name">name</td>
|
116
|
+
<td class="context-item-value"> [RW] </td>
|
117
|
+
<td class="context-item-desc"></td>
|
118
|
+
</tr>
|
119
|
+
</table>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<!-- if method_list -->
|
126
|
+
<div id="methods">
|
127
|
+
<h3 class="section-bar">Public Class methods</h3>
|
128
|
+
|
129
|
+
<div id="method-M000018" class="method-detail">
|
130
|
+
<a name="M000018"></a>
|
131
|
+
|
132
|
+
<div class="method-heading">
|
133
|
+
<a href="Tag.src/M000018.html" target="Code" class="method-signature"
|
134
|
+
onclick="popupCode('Tag.src/M000018.html');return false;">
|
135
|
+
<span class="method-name">from_xml</span><span class="method-args">(xml)</span>
|
136
|
+
</a>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<div class="method-description">
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
|
144
|
+
</div>
|
145
|
+
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
|
150
|
+
<div id="validator-badges">
|
151
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
</body>
|
155
|
+
</html>
|
@@ -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>from_xml (Magnolia::Tag)</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/magnolia/magnolia.rb, line 478</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">from_xml</span>(<span class="ruby-identifier">xml</span>)
|
15
|
+
<span class="ruby-identifier">t</span> = <span class="ruby-constant">Tag</span>.<span class="ruby-identifier">new</span>
|
16
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">name</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'name'</span>]
|
17
|
+
<span class="ruby-identifier">t</span>.<span class="ruby-identifier">count</span> = <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'count'</span>]
|
18
|
+
<span class="ruby-identifier">t</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
data/doc/created.rid
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Sun Nov 26 20:18:12 -0500 2006
|
@@ -0,0 +1,186 @@
|
|
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>File: magnolia.rb</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="fileHeader">
|
50
|
+
<h1>magnolia.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>lib/magnolia/magnolia.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Sat Oct 21 01:45:35 -0400 2006</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
<div id="description">
|
72
|
+
<h1>Addicted To Ma.gnolia</h1>
|
73
|
+
<p>
|
74
|
+
This class makes it really simple to access your Ma.gnolia bookmarks using
|
75
|
+
the Ma.gnolia <a href="http://ma.gnolia.com/support/api/">API</a>.
|
76
|
+
</p>
|
77
|
+
<table>
|
78
|
+
<tr><td valign="top">Author:</td><td>John Nunemaker
|
79
|
+
|
80
|
+
</td></tr>
|
81
|
+
<tr><td valign="top">Website:</td><td><a href="http://addictedtonew.com">addictedtonew.com</a>
|
82
|
+
|
83
|
+
</td></tr>
|
84
|
+
<tr><td valign="top">Last Updated:</td><td>June 3, 2006 @ 12:57AM EST
|
85
|
+
|
86
|
+
</td></tr>
|
87
|
+
<tr><td valign="top">Copyright:</td><td>Copyright (c) 2006 John Nunemaker
|
88
|
+
|
89
|
+
</td></tr>
|
90
|
+
<tr><td valign="top">License:</td><td>MIT <<a
|
91
|
+
href="http://www.opensource.org/licenses/mit-license.php">www.opensource.org/licenses/mit-license.php</a>>
|
92
|
+
|
93
|
+
</td></tr>
|
94
|
+
</table>
|
95
|
+
<h2>URL‘s For Downloads and Information</h2>
|
96
|
+
<ul>
|
97
|
+
<li>Ruby Forge: <a
|
98
|
+
href="http://rubyforge.org/projects/magnolia">rubyforge.org/projects/magnolia</a>/
|
99
|
+
|
100
|
+
</li>
|
101
|
+
<li>SVN: svn checkout <a
|
102
|
+
href="http://svn.addictedtonew.com/libs/addicted-to-magnolia">svn.addictedtonew.com/libs/addicted-to-magnolia</a>/
|
103
|
+
|
104
|
+
</li>
|
105
|
+
<li>Blog Entry: <a
|
106
|
+
href="http://addictedtonew.com/archives/155/ruby-magnolia-api-class">addictedtonew.com/archives/155/ruby-magnolia-api-class</a>/
|
107
|
+
|
108
|
+
</li>
|
109
|
+
<li>Online RDocs: <a
|
110
|
+
href="http://addictedtonew.com/examples/magnolia">addictedtonew.com/examples/magnolia</a>/
|
111
|
+
|
112
|
+
</li>
|
113
|
+
</ul>
|
114
|
+
<h2>Examples</h2>
|
115
|
+
<pre>
|
116
|
+
my_latest = Magnolia.search(:person => 'jnunemaker') # will find my last ten bookmarks
|
117
|
+
group_latest = Magnolia.search(:group => 'webmedia') # will find the last ten bookmarks of the webmedia group
|
118
|
+
</pre>
|
119
|
+
<h2>Copyright</h2>
|
120
|
+
<p>
|
121
|
+
Copyright (c) 2006 John Nunemaker
|
122
|
+
</p>
|
123
|
+
<p>
|
124
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
125
|
+
copy of this software and associated documentation files (the
|
126
|
+
"Software"), to deal in the Software without restriction,
|
127
|
+
including without limitation the rights to use, copy, modify, merge,
|
128
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
129
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
130
|
+
following conditions:
|
131
|
+
</p>
|
132
|
+
<p>
|
133
|
+
The above copyright notice and this permission notice shall be included in
|
134
|
+
all copies or substantial portions of the Software.
|
135
|
+
</p>
|
136
|
+
<p>
|
137
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
138
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
139
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
140
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
141
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
142
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
143
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
144
|
+
</p>
|
145
|
+
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div id="requires-list">
|
149
|
+
<h3 class="section-bar">Required files</h3>
|
150
|
+
|
151
|
+
<div class="name-list">
|
152
|
+
net/http
|
153
|
+
rexml/document
|
154
|
+
cgi
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
|
158
|
+
</div>
|
159
|
+
|
160
|
+
|
161
|
+
</div>
|
162
|
+
|
163
|
+
|
164
|
+
<!-- if includes -->
|
165
|
+
|
166
|
+
<div id="section">
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<!-- if method_list -->
|
176
|
+
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
<div id="validator-badges">
|
182
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
183
|
+
</div>
|
184
|
+
|
185
|
+
</body>
|
186
|
+
</html>
|