easy_multipart 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -0
- data/README.md +138 -0
- data/lib/easy_multipart/base.rb +89 -0
- data/lib/easy_multipart/helper.rb +66 -0
- data/lib/easy_multipart/version.rb +3 -0
- data/lib/easy_multipart.rb +1 -0
- data/lib/rdoc/classes/EasyMultipart/Base.html +163 -0
- data/lib/rdoc/classes/EasyMultipart/Base.src/M000001.html +26 -0
- data/lib/rdoc/classes/EasyMultipart/Base.src/M000002.html +26 -0
- data/lib/rdoc/classes/EasyMultipart/Base.src/M000003.html +22 -0
- data/lib/rdoc/classes/EasyMultipart/Base.src/M000004.html +40 -0
- data/lib/rdoc/classes/EasyMultipart/Base.src/M000005.html +22 -0
- data/lib/rdoc/classes/EasyMultipart/Base.src/M000006.html +18 -0
- data/lib/rdoc/classes/EasyMultipart/Helper.html +177 -0
- data/lib/rdoc/classes/EasyMultipart/Helper.src/M000001.html +45 -0
- data/lib/rdoc/classes/EasyMultipart/Helper.src/M000007.html +45 -0
- data/lib/rdoc/created.rid +1 -0
- data/lib/rdoc/files/easy_multipart/base_rb.html +108 -0
- data/lib/rdoc/files/easy_multipart/helper_rb.html +101 -0
- data/lib/rdoc/files/easy_multipart/version_rb.html +101 -0
- data/lib/rdoc/files/easy_multipart_rb.html +108 -0
- data/lib/rdoc/fr_class_index.html +27 -0
- data/lib/rdoc/fr_file_index.html +27 -0
- data/lib/rdoc/fr_method_index.html +27 -0
- data/lib/rdoc/index.html +24 -0
- data/lib/rdoc/rdoc-style.css +208 -0
- metadata +95 -0
@@ -0,0 +1,177 @@
|
|
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: EasyMultipart::Helper</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">EasyMultipart::Helper</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/easy_multipart/helper_rb.html">
|
59
|
+
easy_multipart/helper.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
|
+
<div id="description">
|
76
|
+
<p>
|
77
|
+
This module provides methods for generating HTML body parts that include
|
78
|
+
embedded images.
|
79
|
+
</p>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="method-list">
|
87
|
+
<h3 class="section-bar">Methods</h3>
|
88
|
+
|
89
|
+
<div class="name-list">
|
90
|
+
<a href="#M000001">related_image_tag</a>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if includes -->
|
98
|
+
|
99
|
+
<div id="section">
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<!-- if method_list -->
|
109
|
+
<div id="methods">
|
110
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
111
|
+
|
112
|
+
<div id="method-M000001" class="method-detail">
|
113
|
+
<a name="M000001"></a>
|
114
|
+
|
115
|
+
<div class="method-heading">
|
116
|
+
<a href="Helper.src/M000001.html" target="Code" class="method-signature"
|
117
|
+
onclick="popupCode('Helper.src/M000001.html');return false;">
|
118
|
+
<span class="method-name">related_image_tag</span><span class="method-args">(source, image_options = {}, related_options = {})</span>
|
119
|
+
</a>
|
120
|
+
</div>
|
121
|
+
|
122
|
+
<div class="method-description">
|
123
|
+
<p>
|
124
|
+
Returns an HTML image tag for the <tt>source</tt>. The <tt>source</tt> can
|
125
|
+
be a full path or a file that exists in your public images directory.
|
126
|
+
Alternatively, it can be a hash with these mandatory keys:
|
127
|
+
</p>
|
128
|
+
<ul>
|
129
|
+
<li><tt>:body</tt> - An object representing the image content. Any kind of
|
130
|
+
object can be used, as long as it responds to :to_s.
|
131
|
+
|
132
|
+
</li>
|
133
|
+
<li><tt>:content_id</tt> - A string that uniquely identifies the image within
|
134
|
+
the current document.
|
135
|
+
|
136
|
+
</li>
|
137
|
+
</ul>
|
138
|
+
<h4>Options</h4>
|
139
|
+
<p>
|
140
|
+
You can add HTML attributes using the <tt>image_options</tt>. You can pass
|
141
|
+
any option accepted by <tt>image_tag</tt>.
|
142
|
+
</p>
|
143
|
+
<p>
|
144
|
+
You can pass additional options through <tt>related_options</tt>:
|
145
|
+
</p>
|
146
|
+
<ul>
|
147
|
+
<li><tt>:content_type</tt> - The value to use for the Content-Type MIME header.
|
148
|
+
If not provided it defaults to ‘image/png’.
|
149
|
+
|
150
|
+
</li>
|
151
|
+
<li><tt>:transfer_encoding</tt> - The value to use for the Transfer-Encoding
|
152
|
+
MIME header. If not provided it defaults to ‘base64’. Unless
|
153
|
+
you have special requirements, you should not provide a value for this key.
|
154
|
+
|
155
|
+
</li>
|
156
|
+
<li><tt>:content_disposition</tt> - The value to use for the
|
157
|
+
Content-Disposition MIME header. If not provided it defaults to not
|
158
|
+
generating a Content-Disposition header.
|
159
|
+
|
160
|
+
</li>
|
161
|
+
</ul>
|
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>
|
@@ -0,0 +1,45 @@
|
|
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>related_image_tag (EasyMultipart::Helper)</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 easy_multipart/helper.rb, line 29</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">related_image_tag</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">image_options</span> = {}, <span class="ruby-identifier">related_options</span> = {})
|
15
|
+
<span class="ruby-identifier">related_options</span>.<span class="ruby-identifier">reverse_merge!</span> <span class="ruby-identifier">:content_type</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'image/png'</span>,
|
16
|
+
<span class="ruby-identifier">:transfer_encoding</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'base64'</span>
|
17
|
+
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
19
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">:content_id</span>)
|
20
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"You must specify a :content_id if you provide a :body"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">content_id</span> = <span class="ruby-identifier">source</span>[<span class="ruby-identifier">:content_id</span>]
|
24
|
+
<span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>[<span class="ruby-identifier">:body</span>].<span class="ruby-identifier">to_s</span>
|
25
|
+
<span class="ruby-keyword kw">else</span>
|
26
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'/'</span>
|
27
|
+
<span class="ruby-identifier">assets_dir</span> = <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Rails</span>.<span class="ruby-identifier">public_path</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">public_path</span> <span class="ruby-operator">:</span> <span class="ruby-value str">"public"</span>
|
28
|
+
<span class="ruby-identifier">source</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">assets_dir</span>, <span class="ruby-value str">"images"</span>, <span class="ruby-identifier">source</span>)
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
|
31
|
+
<span class="ruby-identifier">content_id</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">source</span>)
|
32
|
+
<span class="ruby-identifier">source</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">source</span>)
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-identifier">content_id</span> = <span class="ruby-identifier">normalize_content_id</span>(<span class="ruby-identifier">content_id</span>)
|
35
|
+
|
36
|
+
<span class="ruby-ivar">@related</span>[<span class="ruby-identifier">content_id</span>] = [<span class="ruby-identifier">related_options</span>[<span class="ruby-identifier">:content_type</span>], <span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">image</span><span class="ruby-operator">|</span>
|
37
|
+
<span class="ruby-identifier">image</span>.<span class="ruby-identifier">body</span> = <span class="ruby-identifier">source</span>
|
38
|
+
<span class="ruby-identifier">image</span>.<span class="ruby-identifier">transfer_encoding</span> = <span class="ruby-identifier">related_options</span>[<span class="ruby-identifier">:transfer_encoding</span>]
|
39
|
+
<span class="ruby-identifier">image</span>.<span class="ruby-identifier">content_disposition</span> = <span class="ruby-identifier">related_options</span>[<span class="ruby-identifier">:content_disposition</span>] <span class="ruby-comment cmt"># default is none</span>
|
40
|
+
<span class="ruby-keyword kw">end</span>]
|
41
|
+
|
42
|
+
<span class="ruby-ivar">@template</span>.<span class="ruby-identifier">tag</span>(<span class="ruby-identifier">:img</span>, <span class="ruby-identifier">image_options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:src</span> =<span class="ruby-operator">></span> <span class="ruby-node">"cid:#{content_id}"</span>))
|
43
|
+
<span class="ruby-keyword kw">end</span></pre>
|
44
|
+
</body>
|
45
|
+
</html>
|
@@ -0,0 +1,45 @@
|
|
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>related_image_tag (EasyMultipart::Helper)</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 easy_multipart/helper.rb, line 30</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">related_image_tag</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">image_options</span> = {}, <span class="ruby-identifier">related_options</span> = {})
|
15
|
+
<span class="ruby-identifier">related_options</span>.<span class="ruby-identifier">reverse_merge!</span> <span class="ruby-identifier">:content_type</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'image/png'</span>,
|
16
|
+
<span class="ruby-identifier">:transfer_encoding</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'base64'</span>
|
17
|
+
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
19
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">:content_id</span>)
|
20
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"You must specify a :content_id if you provide a :body"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">content_id</span> = <span class="ruby-identifier">source</span>[<span class="ruby-identifier">:content_id</span>]
|
24
|
+
<span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>[<span class="ruby-identifier">:body</span>].<span class="ruby-identifier">to_s</span>
|
25
|
+
<span class="ruby-keyword kw">else</span>
|
26
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'/'</span>
|
27
|
+
<span class="ruby-identifier">assets_dir</span> = <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Rails</span>.<span class="ruby-identifier">public_path</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">public_path</span> <span class="ruby-operator">:</span> <span class="ruby-value str">"public"</span>
|
28
|
+
<span class="ruby-identifier">source</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">assets_dir</span>, <span class="ruby-value str">"images"</span>, <span class="ruby-identifier">source</span>)
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
|
31
|
+
<span class="ruby-identifier">content_id</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">source</span>)
|
32
|
+
<span class="ruby-identifier">source</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">source</span>)
|
33
|
+
<span class="ruby-keyword kw">end</span>
|
34
|
+
<span class="ruby-identifier">content_id</span> = <span class="ruby-identifier">normalize_content_id</span>(<span class="ruby-identifier">content_id</span>)
|
35
|
+
|
36
|
+
<span class="ruby-ivar">@related</span>[<span class="ruby-identifier">content_id</span>] = [<span class="ruby-identifier">related_options</span>[<span class="ruby-identifier">:content_type</span>], <span class="ruby-identifier">lambda</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">image</span><span class="ruby-operator">|</span>
|
37
|
+
<span class="ruby-identifier">image</span>.<span class="ruby-identifier">body</span> = <span class="ruby-identifier">source</span>
|
38
|
+
<span class="ruby-identifier">image</span>.<span class="ruby-identifier">transfer_encoding</span> = <span class="ruby-identifier">related_options</span>[<span class="ruby-identifier">:transfer_encoding</span>]
|
39
|
+
<span class="ruby-identifier">image</span>.<span class="ruby-identifier">content_disposition</span> = <span class="ruby-identifier">related_options</span>[<span class="ruby-identifier">:content_disposition</span>] <span class="ruby-comment cmt"># default is none</span>
|
40
|
+
<span class="ruby-keyword kw">end</span>]
|
41
|
+
|
42
|
+
<span class="ruby-ivar">@template</span>.<span class="ruby-identifier">tag</span>(<span class="ruby-identifier">:img</span>, <span class="ruby-identifier">image_options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">:src</span> =<span class="ruby-operator">></span> <span class="ruby-node">"cid:#{content_id}"</span>))
|
43
|
+
<span class="ruby-keyword kw">end</span></pre>
|
44
|
+
</body>
|
45
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
Tue, 17 Aug 2010 02:21:29 +0200
|
@@ -0,0 +1,108 @@
|
|
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: base.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>base.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>easy_multipart/base.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Aug 17 02:21:27 +0200 2010</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
<div id="requires-list">
|
73
|
+
<h3 class="section-bar">Required files</h3>
|
74
|
+
|
75
|
+
<div class="name-list">
|
76
|
+
easy_multipart/helper
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
<!-- if includes -->
|
87
|
+
|
88
|
+
<div id="section">
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if method_list -->
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
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: helper.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>helper.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>easy_multipart/helper.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Aug 17 02:16:26 +0200 2010</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
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: version.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>version.rb</h1>
|
51
|
+
<table class="header-table">
|
52
|
+
<tr class="top-aligned-row">
|
53
|
+
<td><strong>Path:</strong></td>
|
54
|
+
<td>easy_multipart/version.rb
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr class="top-aligned-row">
|
58
|
+
<td><strong>Last Update:</strong></td>
|
59
|
+
<td>Tue Aug 17 00:34:04 +0200 2010</td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
</div>
|
63
|
+
<!-- banner header -->
|
64
|
+
|
65
|
+
<div id="bodyContent">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<div id="contextContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if includes -->
|
80
|
+
|
81
|
+
<div id="section">
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<!-- if method_list -->
|
91
|
+
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
|
96
|
+
<div id="validator-badges">
|
97
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|