attrtastic 0.3.3 → 0.4.0
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/Gemfile.lock +17 -19
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/doc/Attrtastic.html +31 -45
- data/doc/Attrtastic/Railtie.html +116 -0
- data/doc/Attrtastic/SemanticAttributesBuilder.html +219 -111
- data/doc/Attrtastic/SemanticAttributesHelper.html +33 -18
- data/doc/_index.html +91 -64
- data/doc/class_list.html +21 -10
- data/doc/css/style.css +20 -10
- data/doc/file.README.html +27 -14
- data/doc/file_list.html +20 -9
- data/doc/frames.html +1 -1
- data/doc/index.html +27 -14
- data/doc/js/app.js +17 -14
- data/doc/js/full_list.js +7 -6
- data/doc/js/jquery.js +5 -143
- data/doc/method_list.html +20 -9
- data/doc/top-level-namespace.html +27 -12
- data/lib/attrtastic/semantic_attributes_builder.rb +67 -7
- data/lib/attrtastic/version.rb +1 -1
- data/test/helper.rb +16 -1
- data/test/test_attribute.rb +194 -11
- data/test/test_attributes.rb +10 -8
- data/test/test_attrtastic.rb +4 -4
- metadata +13 -12
data/Gemfile.lock
CHANGED
@@ -1,49 +1,47 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
attrtastic (0.3.
|
5
|
-
actionpack (
|
6
|
-
activesupport (
|
4
|
+
attrtastic (0.3.3)
|
5
|
+
actionpack (>= 3.0)
|
6
|
+
activesupport (>= 3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: http://rubygems.org/
|
10
10
|
specs:
|
11
11
|
abstract (1.0.0)
|
12
|
-
actionpack (3.0.
|
13
|
-
activemodel (= 3.0.
|
14
|
-
activesupport (= 3.0.
|
12
|
+
actionpack (3.0.9)
|
13
|
+
activemodel (= 3.0.9)
|
14
|
+
activesupport (= 3.0.9)
|
15
15
|
builder (~> 2.1.2)
|
16
16
|
erubis (~> 2.6.6)
|
17
|
-
i18n (~> 0.
|
17
|
+
i18n (~> 0.5.0)
|
18
18
|
rack (~> 1.2.1)
|
19
|
-
rack-mount (~> 0.6.
|
20
|
-
rack-test (~> 0.5.
|
19
|
+
rack-mount (~> 0.6.14)
|
20
|
+
rack-test (~> 0.5.7)
|
21
21
|
tzinfo (~> 0.3.23)
|
22
|
-
activemodel (3.0.
|
23
|
-
activesupport (= 3.0.
|
22
|
+
activemodel (3.0.9)
|
23
|
+
activesupport (= 3.0.9)
|
24
24
|
builder (~> 2.1.2)
|
25
|
-
i18n (~> 0.
|
26
|
-
activesupport (3.0.
|
25
|
+
i18n (~> 0.5.0)
|
26
|
+
activesupport (3.0.9)
|
27
27
|
bluecloth (2.0.9)
|
28
28
|
builder (2.1.2)
|
29
29
|
erubis (2.6.6)
|
30
30
|
abstract (>= 1.0.0)
|
31
31
|
i18n (0.5.0)
|
32
|
-
rack (1.2.
|
33
|
-
rack-mount (0.6.
|
32
|
+
rack (1.2.3)
|
33
|
+
rack-mount (0.6.14)
|
34
34
|
rack (>= 1.0.0)
|
35
|
-
rack-test (0.5.
|
35
|
+
rack-test (0.5.7)
|
36
36
|
rack (>= 1.0)
|
37
37
|
shoulda (2.11.3)
|
38
|
-
tzinfo (0.3.
|
38
|
+
tzinfo (0.3.28)
|
39
39
|
yard (0.6.3)
|
40
40
|
|
41
41
|
PLATFORMS
|
42
42
|
ruby
|
43
43
|
|
44
44
|
DEPENDENCIES
|
45
|
-
actionpack (~> 3.0.0)
|
46
|
-
activesupport (~> 3.0.0)
|
47
45
|
attrtastic!
|
48
46
|
bluecloth (~> 2.0.0)
|
49
47
|
shoulda (~> 2.11.0)
|
data/LICENSE
CHANGED
data/README.md
CHANGED
data/doc/Attrtastic.html
CHANGED
@@ -2,17 +2,27 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta
|
6
|
-
<title>
|
7
|
-
|
8
|
-
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: Attrtastic
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
16
|
|
10
17
|
<script type="text/javascript" charset="utf-8">
|
11
18
|
relpath = '';
|
12
19
|
if (relpath != '') relpath += '/';
|
13
20
|
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="js/
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
16
26
|
|
17
27
|
</head>
|
18
28
|
<body>
|
@@ -33,11 +43,14 @@
|
|
33
43
|
</div>
|
34
44
|
|
35
45
|
<div id="search">
|
36
|
-
|
37
|
-
|
38
|
-
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
39
53
|
</div>
|
40
|
-
|
41
54
|
<div class="clear"></div>
|
42
55
|
</div>
|
43
56
|
|
@@ -60,42 +73,13 @@
|
|
60
73
|
|
61
74
|
<dt class="r1 last">Defined in:</dt>
|
62
75
|
<dd class="r1 last">lib/attrtastic.rb<span class="defines">,<br />
|
63
|
-
lib/attrtastic/version.rb,<br /> lib/attrtastic/semantic_attributes_helper.rb,<br /> lib/attrtastic/semantic_attributes_builder.rb</span>
|
76
|
+
lib/attrtastic/railtie.rb,<br /> lib/attrtastic/version.rb,<br /> lib/attrtastic/semantic_attributes_helper.rb,<br /> lib/attrtastic/semantic_attributes_builder.rb</span>
|
64
77
|
</dd>
|
65
78
|
|
66
79
|
</dl>
|
67
80
|
<div class="clear"></div>
|
68
81
|
|
69
|
-
<h2>
|
70
|
-
<div class="discussion">
|
71
|
-
<p>
|
72
|
-
Attrtastic, in its assumption, should be similar to formtastic and ease
|
73
|
-
displaying AR informations, help create scaffolded show and index pages.
|
74
|
-
</p>
|
75
|
-
|
76
|
-
|
77
|
-
</div>
|
78
|
-
</div>
|
79
|
-
<div class="tags">
|
80
|
-
<h3>Author:</h3>
|
81
|
-
<ul class="author">
|
82
|
-
|
83
|
-
<li>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<div class='inline'><p>
|
90
|
-
Boruta Miros??aw
|
91
|
-
</p>
|
92
|
-
</div>
|
93
|
-
|
94
|
-
</li>
|
95
|
-
|
96
|
-
</ul>
|
97
|
-
|
98
|
-
</div><h2>Defined Under Namespace</h2>
|
82
|
+
<h2>Defined Under Namespace</h2>
|
99
83
|
<p class="children">
|
100
84
|
|
101
85
|
|
@@ -103,7 +87,7 @@ Boruta Miros??aw
|
|
103
87
|
|
104
88
|
|
105
89
|
|
106
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Attrtastic/SemanticAttributesBuilder.html" title="Attrtastic::SemanticAttributesBuilder (class)">SemanticAttributesBuilder</a></span>
|
90
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Attrtastic/Railtie.html" title="Attrtastic::Railtie (class)">Railtie</a></span>, <span class='object_link'><a href="Attrtastic/SemanticAttributesBuilder.html" title="Attrtastic::SemanticAttributesBuilder (class)">SemanticAttributesBuilder</a></span>
|
107
91
|
|
108
92
|
|
109
93
|
</p>
|
@@ -115,7 +99,7 @@ Boruta Miros??aw
|
|
115
99
|
<dt id="VERSION-constant" class="">VERSION =
|
116
100
|
|
117
101
|
</dt>
|
118
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.
|
102
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.4.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
119
103
|
|
120
104
|
</dl>
|
121
105
|
|
@@ -124,12 +108,14 @@ Boruta Miros??aw
|
|
124
108
|
|
125
109
|
|
126
110
|
|
111
|
+
|
112
|
+
|
127
113
|
</div>
|
128
114
|
|
129
115
|
<div id="footer">
|
130
|
-
Generated on
|
116
|
+
Generated on Sat Jun 25 13:32:39 2011 by
|
131
117
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
132
|
-
0.
|
118
|
+
0.7.2 (ruby-1.9.2).
|
133
119
|
</div>
|
134
120
|
|
135
121
|
</body>
|
@@ -0,0 +1,116 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Attrtastic::Railtie
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../_index.html">Index (R)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../Attrtastic.html" title="Attrtastic (module)">Attrtastic</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">Railtie</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: Attrtastic::Railtie
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName">Rails::Railtie</span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next">Rails::Railtie</li>
|
75
|
+
|
76
|
+
<li class="next">Attrtastic::Railtie</li>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
<a href="#" class="inheritanceTree">show all</a>
|
80
|
+
|
81
|
+
</dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<dt class="r2 last">Defined in:</dt>
|
92
|
+
<dd class="r2 last">lib/attrtastic/railtie.rb</dd>
|
93
|
+
|
94
|
+
</dl>
|
95
|
+
<div class="clear"></div>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<div id="footer">
|
110
|
+
Generated on Sat Jun 25 13:32:39 2011 by
|
111
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
+
0.7.2 (ruby-1.9.2).
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</body>
|
116
|
+
</html>
|
@@ -2,17 +2,27 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta
|
6
|
-
<title>
|
7
|
-
|
8
|
-
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Attrtastic::SemanticAttributesBuilder
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
16
|
|
10
17
|
<script type="text/javascript" charset="utf-8">
|
11
18
|
relpath = '..';
|
12
19
|
if (relpath != '') relpath += '/';
|
13
20
|
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
25
|
+
|
16
26
|
|
17
27
|
</head>
|
18
28
|
<body>
|
@@ -33,11 +43,14 @@
|
|
33
43
|
</div>
|
34
44
|
|
35
45
|
<div id="search">
|
36
|
-
|
37
|
-
|
38
|
-
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
39
53
|
</div>
|
40
|
-
|
41
54
|
<div class="clear"></div>
|
42
55
|
</div>
|
43
56
|
|
@@ -91,6 +104,8 @@
|
|
91
104
|
|
92
105
|
|
93
106
|
|
107
|
+
(also: #object)
|
108
|
+
|
94
109
|
</span>
|
95
110
|
|
96
111
|
|
@@ -141,6 +156,8 @@ Only for testing purposes.
|
|
141
156
|
</ul>
|
142
157
|
|
143
158
|
|
159
|
+
|
160
|
+
|
144
161
|
|
145
162
|
<h2>
|
146
163
|
Instance Method Summary
|
@@ -253,12 +270,12 @@ A new instance of SemanticAttributesBuilder
|
|
253
270
|
<pre class="lines">
|
254
271
|
|
255
272
|
|
256
|
-
|
257
|
-
|
258
|
-
|
273
|
+
12
|
274
|
+
13
|
275
|
+
14</pre>
|
259
276
|
</td>
|
260
277
|
<td>
|
261
|
-
<pre class="code"><span class="info file"># File 'lib/attrtastic/semantic_attributes_builder.rb', line
|
278
|
+
<pre class="code"><span class="info file"># File 'lib/attrtastic/semantic_attributes_builder.rb', line 12</span>
|
262
279
|
|
263
280
|
<span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id record'>record</span><span class='comma'>,</span> <span class='id template'>template</span><span class='rparen'>)</span>
|
264
281
|
<span class='ivar'>@record</span><span class='comma'>,</span> <span class='ivar'>@template</span> <span class='op'>=</span> <span class='id record'>record</span><span class='comma'>,</span> <span class='id template'>template</span>
|
@@ -283,6 +300,10 @@ A new instance of SemanticAttributesBuilder
|
|
283
300
|
|
284
301
|
|
285
302
|
|
303
|
+
<span class="aliases">Also known as:
|
304
|
+
<span class="names"><span id='object-instance_method'>object</span></span>
|
305
|
+
</span>
|
306
|
+
|
286
307
|
</p><div class="docstring">
|
287
308
|
<div class="discussion">
|
288
309
|
<p>
|
@@ -429,16 +450,22 @@ Creates entry for record attribute
|
|
429
450
|
<h4><div class='inline'></div></h4>
|
430
451
|
<pre class="example code"><%= attr.attribute :name, :value => @user.full_name %></pre>
|
431
452
|
|
453
|
+
<h4><div class='inline'></div></h4>
|
454
|
+
<pre class="example code"><%= attr.attribute :address, :value => :street %></pre>
|
455
|
+
|
456
|
+
<h4><div class='inline'></div></h4>
|
457
|
+
<pre class="example code"><%= attr.attribute :avatar, :value => :url, :format => :image_tag %></pre>
|
458
|
+
|
432
459
|
</div>
|
433
460
|
<h3>Parameters:</h3>
|
434
461
|
<ul class="param">
|
435
462
|
|
436
463
|
<li>
|
437
464
|
|
438
|
-
<span class='
|
465
|
+
<span class='name'>method</span>
|
439
466
|
|
440
467
|
|
441
|
-
<span class='
|
468
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
442
469
|
|
443
470
|
|
444
471
|
|
@@ -452,10 +479,10 @@ Attribute name of given record
|
|
452
479
|
|
453
480
|
<li>
|
454
481
|
|
455
|
-
<span class='
|
482
|
+
<span class='name'>options</span>
|
456
483
|
|
457
484
|
|
458
|
-
<span class='
|
485
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
459
486
|
|
460
487
|
|
461
488
|
|
@@ -478,8 +505,8 @@ Options
|
|
478
505
|
<ul class="option">
|
479
506
|
|
480
507
|
<li>
|
481
|
-
<span class="type">(<tt>Hash</tt>)</span>
|
482
508
|
<span class="name">:html</span>
|
509
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
483
510
|
<span class="default">
|
484
511
|
|
485
512
|
— default:
|
@@ -494,8 +521,8 @@ html
|
|
494
521
|
</tr>
|
495
522
|
|
496
523
|
<li>
|
497
|
-
<span class="type">(<tt>String</tt>)</span>
|
498
524
|
<span class="name">:label</span>
|
525
|
+
<span class="type">(<tt>String</tt>)</span>
|
499
526
|
<span class="default">
|
500
527
|
|
501
528
|
</span>
|
@@ -506,20 +533,23 @@ Label for attribute entry, overrides default label name from symbol
|
|
506
533
|
</tr>
|
507
534
|
|
508
535
|
<li>
|
509
|
-
<span class="type">(<tt>String</tt>)</span>
|
510
536
|
<span class="name">:value</span>
|
537
|
+
<span class="type">(<tt>Symbol</tt>, <tt>Object</tt>)</span>
|
511
538
|
<span class="default">
|
512
539
|
|
513
540
|
</span>
|
514
541
|
— <div class='inline'><p>
|
515
|
-
|
542
|
+
If it’s Symbol, then it’s used as either name of hash key to
|
543
|
+
use on attribute (if it’s hash) or method name to call on attribute.
|
544
|
+
Otherwise it’s used as value to use instead of actual
|
545
|
+
attribute’s.
|
516
546
|
</p>
|
517
547
|
</div>
|
518
548
|
</tr>
|
519
549
|
|
520
550
|
<li>
|
521
|
-
<span class="type">(<tt>Boolean</tt>)</span>
|
522
551
|
<span class="name">:display_empty</span>
|
552
|
+
<span class="type">(<tt>Boolean</tt>)</span>
|
523
553
|
<span class="default">
|
524
554
|
|
525
555
|
— default:
|
@@ -529,6 +559,26 @@ Value of attribute entry, overrides default value from record
|
|
529
559
|
— <div class='inline'><p>
|
530
560
|
Indicates if print value of given attribute even if it is blank?
|
531
561
|
</p>
|
562
|
+
</div>
|
563
|
+
</tr>
|
564
|
+
|
565
|
+
<li>
|
566
|
+
<span class="name">:format</span>
|
567
|
+
<span class="type">(<tt>Symbol</tt>, <tt>false</tt>, <tt>nil</tt>)</span>
|
568
|
+
<span class="default">
|
569
|
+
|
570
|
+
— default:
|
571
|
+
<tt>nil</tt>
|
572
|
+
|
573
|
+
</span>
|
574
|
+
— <div class='inline'><p>
|
575
|
+
Type of formatter to use to display attribute’s value. If it’s
|
576
|
+
false, then don’t format at all (just call #to_s). If it’s nil,
|
577
|
+
then use default formatting (#l for dates,
|
578
|
+
#number_with_precision/#number_with_delimiter for floats/integers). If
|
579
|
+
it’s Symbol, then use it to select view helper method and pass
|
580
|
+
aattribute’s value to it to format.
|
581
|
+
</p>
|
532
582
|
</div>
|
533
583
|
</tr>
|
534
584
|
|
@@ -565,10 +615,10 @@ Creates entry for attribute given with block
|
|
565
615
|
|
566
616
|
<li>
|
567
617
|
|
568
|
-
<span class='
|
618
|
+
<span class='name'>method</span>
|
569
619
|
|
570
620
|
|
571
|
-
<span class='
|
621
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
572
622
|
|
573
623
|
|
574
624
|
|
@@ -582,10 +632,10 @@ Attribute name of given record
|
|
582
632
|
|
583
633
|
<li>
|
584
634
|
|
585
|
-
<span class='
|
635
|
+
<span class='name'>options</span>
|
586
636
|
|
587
637
|
|
588
|
-
<span class='
|
638
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
589
639
|
|
590
640
|
|
591
641
|
|
@@ -608,8 +658,8 @@ Options
|
|
608
658
|
<ul class="option">
|
609
659
|
|
610
660
|
<li>
|
611
|
-
<span class="type">(<tt>Hash</tt>)</span>
|
612
661
|
<span class="name">:html</span>
|
662
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
613
663
|
<span class="default">
|
614
664
|
|
615
665
|
— default:
|
@@ -624,8 +674,8 @@ for html
|
|
624
674
|
</tr>
|
625
675
|
|
626
676
|
<li>
|
627
|
-
<span class="type">(<tt>String</tt>)</span>
|
628
677
|
<span class="name">:label</span>
|
678
|
+
<span class="type">(<tt>String</tt>)</span>
|
629
679
|
<span class="default">
|
630
680
|
|
631
681
|
</span>
|
@@ -642,8 +692,8 @@ Label for attribute entry, overrides default label name from symbol
|
|
642
692
|
|
643
693
|
<li>
|
644
694
|
|
645
|
-
<span class='type'></span>
|
646
695
|
|
696
|
+
<span class='type'></span>
|
647
697
|
|
648
698
|
|
649
699
|
|
@@ -688,10 +738,10 @@ in this case.
|
|
688
738
|
|
689
739
|
<li>
|
690
740
|
|
691
|
-
<span class='
|
741
|
+
<span class='name'>options</span>
|
692
742
|
|
693
743
|
|
694
|
-
<span class='
|
744
|
+
<span class='type'>(<tt>:Hash</tt>)</span>
|
695
745
|
|
696
746
|
|
697
747
|
|
@@ -712,8 +762,8 @@ Options
|
|
712
762
|
<ul class="option">
|
713
763
|
|
714
764
|
<li>
|
715
|
-
<span class="type">(<tt>Hash</tt>)</span>
|
716
765
|
<span class="name">:html</span>
|
766
|
+
<span class="type">(<tt>Hash</tt>)</span>
|
717
767
|
<span class="default">
|
718
768
|
|
719
769
|
— default:
|
@@ -728,8 +778,8 @@ for html
|
|
728
778
|
</tr>
|
729
779
|
|
730
780
|
<li>
|
731
|
-
<span class="type">(<tt>String</tt>)</span>
|
732
781
|
<span class="name">:label</span>
|
782
|
+
<span class="type">(<tt>String</tt>)</span>
|
733
783
|
<span class="default">
|
734
784
|
|
735
785
|
</span>
|
@@ -746,8 +796,8 @@ Mandatory label for attribute entry
|
|
746
796
|
|
747
797
|
<li>
|
748
798
|
|
749
|
-
<span class='type'></span>
|
750
799
|
|
800
|
+
<span class='type'></span>
|
751
801
|
|
752
802
|
|
753
803
|
|
@@ -772,39 +822,63 @@ Block which is executed in place of value for attribute
|
|
772
822
|
<pre class="lines">
|
773
823
|
|
774
824
|
|
775
|
-
255
|
776
|
-
256
|
777
|
-
257
|
778
|
-
258
|
779
|
-
259
|
780
|
-
260
|
781
|
-
261
|
782
|
-
262
|
783
|
-
263
|
784
|
-
264
|
785
|
-
265
|
786
|
-
266
|
787
|
-
267
|
788
|
-
268
|
789
|
-
269
|
790
|
-
270
|
791
|
-
271
|
792
|
-
272
|
793
|
-
273
|
794
|
-
274
|
795
|
-
275
|
796
|
-
276
|
797
|
-
277
|
798
|
-
278
|
799
|
-
279
|
800
825
|
280
|
801
826
|
281
|
802
827
|
282
|
803
828
|
283
|
804
|
-
284
|
829
|
+
284
|
830
|
+
285
|
831
|
+
286
|
832
|
+
287
|
833
|
+
288
|
834
|
+
289
|
835
|
+
290
|
836
|
+
291
|
837
|
+
292
|
838
|
+
293
|
839
|
+
294
|
840
|
+
295
|
841
|
+
296
|
842
|
+
297
|
843
|
+
298
|
844
|
+
299
|
845
|
+
300
|
846
|
+
301
|
847
|
+
302
|
848
|
+
303
|
849
|
+
304
|
850
|
+
305
|
851
|
+
306
|
852
|
+
307
|
853
|
+
308
|
854
|
+
309
|
855
|
+
310
|
856
|
+
311
|
857
|
+
312
|
858
|
+
313
|
859
|
+
314
|
860
|
+
315
|
861
|
+
316
|
862
|
+
317
|
863
|
+
318
|
864
|
+
319
|
865
|
+
320
|
866
|
+
321
|
867
|
+
322
|
868
|
+
323
|
869
|
+
324
|
870
|
+
325
|
871
|
+
326
|
872
|
+
327
|
873
|
+
328
|
874
|
+
329
|
875
|
+
330
|
876
|
+
331
|
877
|
+
332
|
878
|
+
333</pre>
|
805
879
|
</td>
|
806
880
|
<td>
|
807
|
-
<pre class="code"><span class="info file"># File 'lib/attrtastic/semantic_attributes_builder.rb', line
|
881
|
+
<pre class="code"><span class="info file"># File 'lib/attrtastic/semantic_attributes_builder.rb', line 280</span>
|
808
882
|
|
809
883
|
<span class='kw'>def</span> <span class='id attribute'>attribute</span><span class='lparen'>(</span><span class='op'>*</span><span class='id args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id block'>block</span><span class='rparen'>)</span>
|
810
884
|
<span class='id options'>options</span> <span class='op'>=</span> <span class='id args'>args</span><span class='period'>.</span><span class='id extract_options!'>extract_options!</span>
|
@@ -819,7 +893,31 @@ Block which is executed in place of value for attribute
|
|
819
893
|
<span class='id label'>label</span> <span class='op'>=</span> <span class='id options'>options</span><span class='period'>.</span><span class='id key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:label</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:label</span><span class='rbracket'>]</span> <span class='op'>:</span> <span class='id label_for_attribute'>label_for_attribute</span><span class='lparen'>(</span><span class='id method'>method</span><span class='rparen'>)</span>
|
820
894
|
|
821
895
|
<span class='kw'>unless</span> <span class='id block_given?'>block_given?</span>
|
822
|
-
<span class='id value'>value</span> <span class='op'>=</span> <span class='
|
896
|
+
<span class='id value'>value</span> <span class='op'>=</span> <span class='kw'>if</span> <span class='id options'>options</span><span class='period'>.</span><span class='id key?'>key?</span><span class='lparen'>(</span><span class='symbol'>:value</span><span class='rparen'>)</span>
|
897
|
+
<span class='kw'>case</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span>
|
898
|
+
<span class='kw'>when</span> <span class='const'>Symbol</span>
|
899
|
+
<span class='id attribute_value'>attribute_value</span> <span class='op'>=</span> <span class='id value_of_attribute'>value_of_attribute</span><span class='lparen'>(</span><span class='id method'>method</span><span class='rparen'>)</span>
|
900
|
+
<span class='kw'>case</span> <span class='id attribute_value'>attribute_value</span>
|
901
|
+
<span class='kw'>when</span> <span class='const'>Hash</span>
|
902
|
+
<span class='id attribute_value'>attribute_value</span><span class='lbracket'>[</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span><span class='rbracket'>]</span>
|
903
|
+
<span class='kw'>else</span>
|
904
|
+
<span class='id attribute_value'>attribute_value</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
905
|
+
<span class='kw'>end</span>
|
906
|
+
<span class='kw'>else</span>
|
907
|
+
<span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span>
|
908
|
+
<span class='kw'>end</span>
|
909
|
+
<span class='kw'>else</span>
|
910
|
+
<span class='id value_of_attribute'>value_of_attribute</span><span class='lparen'>(</span><span class='id method'>method</span><span class='rparen'>)</span>
|
911
|
+
<span class='kw'>end</span>
|
912
|
+
|
913
|
+
<span class='id value'>value</span> <span class='op'>=</span> <span class='kw'>case</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:format</span><span class='rbracket'>]</span>
|
914
|
+
<span class='kw'>when</span> <span class='kw'>false</span>
|
915
|
+
<span class='id value'>value</span>
|
916
|
+
<span class='kw'>when</span> <span class='kw'>nil</span>
|
917
|
+
<span class='id format_attribute_value'>format_attribute_value</span><span class='lparen'>(</span><span class='id value'>value</span><span class='rparen'>)</span>
|
918
|
+
<span class='kw'>else</span>
|
919
|
+
<span class='id template'>template</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:format</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id value'>value</span><span class='rparen'>)</span>
|
920
|
+
<span class='kw'>end</span>
|
823
921
|
|
824
922
|
<span class='kw'>if</span> <span class='id value'>value</span><span class='period'>.</span><span class='id present?'>present?</span> <span class='kw'>or</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:display_empty</span><span class='rbracket'>]</span>
|
825
923
|
<span class='id output'>output</span> <span class='op'>=</span> <span class='id template'>template</span><span class='period'>.</span><span class='id tag'>tag</span><span class='lparen'>(</span><span class='symbol'>:li</span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='symbol'>:class</span> <span class='op'>=></span> <span class='id html_class'>html_class</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
@@ -951,16 +1049,26 @@ attribute
|
|
951
1049
|
<%= post.attribute :title %>
|
952
1050
|
<% end %></pre>
|
953
1051
|
|
1052
|
+
<h4><div class='inline'></div></h4>
|
1053
|
+
<pre class="example code"><%= attr.attributes :for => @posts do |post| %>
|
1054
|
+
<%= post.attribute :birthday, :format => false %>
|
1055
|
+
<% end %></pre>
|
1056
|
+
|
1057
|
+
<h4><div class='inline'></div></h4>
|
1058
|
+
<pre class="example code"><%= attr.attributes :for => @posts do |post| %>
|
1059
|
+
<%= post.attribute :birthday, :format => :my_fancy_birthday_formatter %>
|
1060
|
+
<% end %></pre>
|
1061
|
+
|
954
1062
|
</div>
|
955
1063
|
<h3>Parameters:</h3>
|
956
1064
|
<ul class="param">
|
957
1065
|
|
958
1066
|
<li>
|
959
1067
|
|
960
|
-
<span class='
|
1068
|
+
<span class='name'>options</span>
|
961
1069
|
|
962
1070
|
|
963
|
-
<span class='
|
1071
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
964
1072
|
|
965
1073
|
|
966
1074
|
|
@@ -981,8 +1089,8 @@ Options for formating attributes block
|
|
981
1089
|
<ul class="option">
|
982
1090
|
|
983
1091
|
<li>
|
984
|
-
<span class="type">(<tt>String</tt>)</span>
|
985
1092
|
<span class="name">:name</span>
|
1093
|
+
<span class="type">(<tt>String</tt>)</span>
|
986
1094
|
<span class="default">
|
987
1095
|
|
988
1096
|
— default:
|
@@ -996,8 +1104,8 @@ Optional header of attributes section
|
|
996
1104
|
</tr>
|
997
1105
|
|
998
1106
|
<li>
|
999
|
-
<span class="type">(<tt>String</tt>)</span>
|
1000
1107
|
<span class="name">:class</span>
|
1108
|
+
<span class="type">(<tt>String</tt>)</span>
|
1001
1109
|
<span class="default">
|
1002
1110
|
|
1003
1111
|
— default:
|
@@ -1011,8 +1119,8 @@ Name of html class to add to attributes block
|
|
1011
1119
|
</tr>
|
1012
1120
|
|
1013
1121
|
<li>
|
1014
|
-
<span class="type">(<tt>String</tt>)</span>
|
1015
1122
|
<span class="name">:header_class</span>
|
1123
|
+
<span class="type">(<tt>String</tt>)</span>
|
1016
1124
|
<span class="default">
|
1017
1125
|
|
1018
1126
|
— default:
|
@@ -1032,8 +1140,8 @@ Name of html class to add to header
|
|
1032
1140
|
|
1033
1141
|
<li>
|
1034
1142
|
|
1035
|
-
<span class='type'></span>
|
1036
1143
|
|
1144
|
+
<span class='type'></span>
|
1037
1145
|
|
1038
1146
|
|
1039
1147
|
|
@@ -1110,10 +1218,10 @@ attribute
|
|
1110
1218
|
|
1111
1219
|
<li>
|
1112
1220
|
|
1113
|
-
<span class='
|
1221
|
+
<span class='name'>header</span>
|
1114
1222
|
|
1115
1223
|
|
1116
|
-
<span class='
|
1224
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1117
1225
|
|
1118
1226
|
|
1119
1227
|
|
@@ -1127,10 +1235,10 @@ Header of attributes section
|
|
1127
1235
|
|
1128
1236
|
<li>
|
1129
1237
|
|
1130
|
-
<span class='
|
1238
|
+
<span class='name'>options</span>
|
1131
1239
|
|
1132
1240
|
|
1133
|
-
<span class='
|
1241
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1134
1242
|
|
1135
1243
|
|
1136
1244
|
|
@@ -1153,8 +1261,8 @@ Options for formating attributes block
|
|
1153
1261
|
<ul class="option">
|
1154
1262
|
|
1155
1263
|
<li>
|
1156
|
-
<span class="type">(<tt>String</tt>)</span>
|
1157
1264
|
<span class="name">:class</span>
|
1265
|
+
<span class="type">(<tt>String</tt>)</span>
|
1158
1266
|
<span class="default">
|
1159
1267
|
|
1160
1268
|
— default:
|
@@ -1168,8 +1276,8 @@ Name of html class to add to attributes block
|
|
1168
1276
|
</tr>
|
1169
1277
|
|
1170
1278
|
<li>
|
1171
|
-
<span class="type">(<tt>String</tt>)</span>
|
1172
1279
|
<span class="name">:header_class</span>
|
1280
|
+
<span class="type">(<tt>String</tt>)</span>
|
1173
1281
|
<span class="default">
|
1174
1282
|
|
1175
1283
|
— default:
|
@@ -1189,8 +1297,8 @@ Name of html class to add to header
|
|
1189
1297
|
|
1190
1298
|
<li>
|
1191
1299
|
|
1192
|
-
<span class='type'></span>
|
1193
1300
|
|
1301
|
+
<span class='type'></span>
|
1194
1302
|
|
1195
1303
|
|
1196
1304
|
|
@@ -1208,10 +1316,10 @@ Block which can call #attribute to include attribute value
|
|
1208
1316
|
|
1209
1317
|
<li>
|
1210
1318
|
|
1211
|
-
<span class='
|
1319
|
+
<span class='name'>builder</span>
|
1212
1320
|
|
1213
1321
|
|
1214
|
-
<span class='
|
1322
|
+
<span class='type'></span>
|
1215
1323
|
|
1216
1324
|
|
1217
1325
|
|
@@ -1267,10 +1375,10 @@ symbols (record properties)
|
|
1267
1375
|
|
1268
1376
|
<li>
|
1269
1377
|
|
1270
|
-
<span class='
|
1378
|
+
<span class='name'>symbols</span>
|
1271
1379
|
|
1272
1380
|
|
1273
|
-
<span class='
|
1381
|
+
<span class='type'>(<tt>Symbol</tt>, <tt>...</tt>)</span>
|
1274
1382
|
|
1275
1383
|
|
1276
1384
|
|
@@ -1284,10 +1392,10 @@ List of attributes
|
|
1284
1392
|
|
1285
1393
|
<li>
|
1286
1394
|
|
1287
|
-
<span class='
|
1395
|
+
<span class='name'>options</span>
|
1288
1396
|
|
1289
1397
|
|
1290
|
-
<span class='
|
1398
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1291
1399
|
|
1292
1400
|
|
1293
1401
|
|
@@ -1310,8 +1418,8 @@ Options for formating attributes block
|
|
1310
1418
|
<ul class="option">
|
1311
1419
|
|
1312
1420
|
<li>
|
1313
|
-
<span class="type">(<tt>String</tt>)</span>
|
1314
1421
|
<span class="name">:name</span>
|
1422
|
+
<span class="type">(<tt>String</tt>)</span>
|
1315
1423
|
<span class="default">
|
1316
1424
|
|
1317
1425
|
— default:
|
@@ -1325,8 +1433,8 @@ Optional header of attributes section
|
|
1325
1433
|
</tr>
|
1326
1434
|
|
1327
1435
|
<li>
|
1328
|
-
<span class="type">(<tt>String</tt>)</span>
|
1329
1436
|
<span class="name">:class</span>
|
1437
|
+
<span class="type">(<tt>String</tt>)</span>
|
1330
1438
|
<span class="default">
|
1331
1439
|
|
1332
1440
|
— default:
|
@@ -1340,8 +1448,8 @@ Name of html class to add to attributes block
|
|
1340
1448
|
</tr>
|
1341
1449
|
|
1342
1450
|
<li>
|
1343
|
-
<span class="type">(<tt>String</tt>)</span>
|
1344
1451
|
<span class="name">:header_class</span>
|
1452
|
+
<span class="type">(<tt>String</tt>)</span>
|
1345
1453
|
<span class="default">
|
1346
1454
|
|
1347
1455
|
— default:
|
@@ -1399,10 +1507,10 @@ symbols (record properties)
|
|
1399
1507
|
|
1400
1508
|
<li>
|
1401
1509
|
|
1402
|
-
<span class='
|
1510
|
+
<span class='name'>header</span>
|
1403
1511
|
|
1404
1512
|
|
1405
|
-
<span class='
|
1513
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1406
1514
|
|
1407
1515
|
|
1408
1516
|
|
@@ -1416,10 +1524,10 @@ Header of attributes section
|
|
1416
1524
|
|
1417
1525
|
<li>
|
1418
1526
|
|
1419
|
-
<span class='
|
1527
|
+
<span class='name'>symbols</span>
|
1420
1528
|
|
1421
1529
|
|
1422
|
-
<span class='
|
1530
|
+
<span class='type'>(<tt>Symbol</tt>, <tt>...</tt>)</span>
|
1423
1531
|
|
1424
1532
|
|
1425
1533
|
|
@@ -1433,10 +1541,10 @@ Optional list of attributes
|
|
1433
1541
|
|
1434
1542
|
<li>
|
1435
1543
|
|
1436
|
-
<span class='
|
1544
|
+
<span class='name'>options</span>
|
1437
1545
|
|
1438
1546
|
|
1439
|
-
<span class='
|
1547
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1440
1548
|
|
1441
1549
|
|
1442
1550
|
|
@@ -1461,8 +1569,8 @@ Options for formating attributes block
|
|
1461
1569
|
<ul class="option">
|
1462
1570
|
|
1463
1571
|
<li>
|
1464
|
-
<span class="type">(<tt>String</tt>)</span>
|
1465
1572
|
<span class="name">:class</span>
|
1573
|
+
<span class="type">(<tt>String</tt>)</span>
|
1466
1574
|
<span class="default">
|
1467
1575
|
|
1468
1576
|
— default:
|
@@ -1476,8 +1584,8 @@ Name of html class to add to attributes block
|
|
1476
1584
|
</tr>
|
1477
1585
|
|
1478
1586
|
<li>
|
1479
|
-
<span class="type">(<tt>String</tt>)</span>
|
1480
1587
|
<span class="name">:header_class</span>
|
1588
|
+
<span class="type">(<tt>String</tt>)</span>
|
1481
1589
|
<span class="default">
|
1482
1590
|
|
1483
1591
|
— default:
|
@@ -1511,19 +1619,6 @@ Name of html class to add to header
|
|
1511
1619
|
<pre class="lines">
|
1512
1620
|
|
1513
1621
|
|
1514
|
-
174
|
1515
|
-
175
|
1516
|
-
176
|
1517
|
-
177
|
1518
|
-
178
|
1519
|
-
179
|
1520
|
-
180
|
1521
|
-
181
|
1522
|
-
182
|
1523
|
-
183
|
1524
|
-
184
|
1525
|
-
185
|
1526
|
-
186
|
1527
1622
|
187
|
1528
1623
|
188
|
1529
1624
|
189
|
@@ -1536,10 +1631,23 @@ Name of html class to add to header
|
|
1536
1631
|
196
|
1537
1632
|
197
|
1538
1633
|
198
|
1539
|
-
199
|
1634
|
+
199
|
1635
|
+
200
|
1636
|
+
201
|
1637
|
+
202
|
1638
|
+
203
|
1639
|
+
204
|
1640
|
+
205
|
1641
|
+
206
|
1642
|
+
207
|
1643
|
+
208
|
1644
|
+
209
|
1645
|
+
210
|
1646
|
+
211
|
1647
|
+
212</pre>
|
1540
1648
|
</td>
|
1541
1649
|
<td>
|
1542
|
-
<pre class="code"><span class="info file"># File 'lib/attrtastic/semantic_attributes_builder.rb', line
|
1650
|
+
<pre class="code"><span class="info file"># File 'lib/attrtastic/semantic_attributes_builder.rb', line 187</span>
|
1543
1651
|
|
1544
1652
|
<span class='kw'>def</span> <span class='id attributes'>attributes</span><span class='lparen'>(</span><span class='op'>*</span><span class='id args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id block'>block</span><span class='rparen'>)</span>
|
1545
1653
|
<span class='id options'>options</span> <span class='op'>=</span> <span class='id args'>args</span><span class='period'>.</span><span class='id extract_options!'>extract_options!</span>
|
@@ -1563,7 +1671,7 @@ Name of html class to add to header
|
|
1563
1671
|
<span class='id value_options'>value_options</span><span class='lbracket'>[</span><span class='symbol'>:html</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='id options'>options</span><span class='lbracket'>[</span><span class='symbol'>:html</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='symbol'>:class</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id value'>value</span><span class='period'>.</span><span class='id class'>class</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='period'>.</span><span class='id underscore'>underscore</span> <span class='rbracket'>]</span><span class='period'>.</span><span class='id compact'>compact</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1564
1672
|
|
1565
1673
|
<span class='id attributes_for'>attributes_for</span><span class='lparen'>(</span><span class='id value'>value</span><span class='comma'>,</span> <span class='id args'>args</span><span class='comma'>,</span> <span class='id options'>options</span><span class='comma'>,</span> <span class='op'>&</span><span class='id block'>block</span><span class='rparen'>)</span>
|
1566
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id join'>join</span>
|
1674
|
+
<span class='kw'>end</span><span class='period'>.</span><span class='id join'>join</span><span class='period'>.</span><span class='id html_safe'>html_safe</span>
|
1567
1675
|
<span class='kw'>end</span>
|
1568
1676
|
|
1569
1677
|
<span class='kw'>end</span></pre>
|
@@ -1577,9 +1685,9 @@ Name of html class to add to header
|
|
1577
1685
|
</div>
|
1578
1686
|
|
1579
1687
|
<div id="footer">
|
1580
|
-
Generated on
|
1688
|
+
Generated on Sat Jun 25 13:32:39 2011 by
|
1581
1689
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1582
|
-
0.
|
1690
|
+
0.7.2 (ruby-1.9.2).
|
1583
1691
|
</div>
|
1584
1692
|
|
1585
1693
|
</body>
|