milk 0.0.0 → 0.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/INSTALL +8 -0
- data/LICENSE +24 -17
- data/README +3 -0
- data/Rakefile +21 -56
- data/bin/milk +2 -19
- data/doc/classes/Milk.html +198 -0
- data/doc/classes/Milk.src/M000005.html +17 -0
- data/doc/classes/Milk/Application.html +209 -0
- data/doc/classes/Milk/Application.src/M000007.html +69 -0
- data/doc/classes/Milk/Application.src/M000008.html +38 -0
- data/doc/classes/Milk/Component.html +397 -0
- data/doc/classes/Milk/Component.src/M000014.html +19 -0
- data/doc/classes/Milk/Component.src/M000015.html +16 -0
- data/doc/classes/Milk/Component.src/M000016.html +15 -0
- data/doc/classes/Milk/Component.src/M000017.html +15 -0
- data/doc/classes/Milk/Component.src/M000018.html +15 -0
- data/doc/classes/Milk/Component.src/M000019.html +15 -0
- data/doc/classes/Milk/Component.src/M000020.html +15 -0
- data/doc/classes/Milk/Component.src/M000021.html +15 -0
- data/doc/classes/Milk/Component.src/M000022.html +18 -0
- data/doc/classes/Milk/Component.src/M000023.html +21 -0
- data/doc/classes/Milk/Component.src/M000024.html +15 -0
- data/doc/classes/Milk/Component.src/M000025.html +22 -0
- data/doc/classes/Milk/ExternalCompilerError.html +117 -0
- data/doc/classes/Milk/Field.html +114 -0
- data/doc/classes/Milk/Fields.html +173 -0
- data/doc/classes/Milk/Fields/ComponentArray.html +114 -0
- data/doc/classes/Milk/Fields/ImageChooser.html +114 -0
- data/doc/classes/Milk/Fields/MarkdownField.html +114 -0
- data/doc/classes/Milk/Fields/PageChooser.html +114 -0
- data/doc/classes/Milk/Fields/SpriteChooser.html +114 -0
- data/doc/classes/Milk/Fields/TextField.html +114 -0
- data/doc/classes/Milk/Haxe.html +208 -0
- data/doc/classes/Milk/Haxe.src/M000005.html +40 -0
- data/doc/classes/Milk/Haxe.src/M000006.html +15 -0
- data/doc/classes/Milk/Page.html +243 -0
- data/doc/classes/Milk/Page.src/M000009.html +17 -0
- data/doc/classes/Milk/Page.src/M000010.html +17 -0
- data/doc/classes/Milk/Page.src/M000011.html +18 -0
- data/doc/classes/Milk/Page.src/M000012.html +20 -0
- data/doc/classes/Milk/Page.src/M000013.html +21 -0
- data/doc/classes/Milk/PageNotFoundError.html +110 -0
- data/doc/classes/Object.html +237 -0
- data/doc/classes/Object.src/M000001.html +13 -0
- data/doc/classes/Object.src/M000002.html +13 -0
- data/doc/classes/Object.src/M000003.html +15 -0
- data/doc/classes/Object.src/M000004.html +15 -0
- data/doc/created.rid +1 -0
- data/doc/files/INSTALL.html +106 -0
- data/doc/files/LICENSE.html +126 -0
- data/doc/files/README.html +100 -0
- data/doc/files/Rakefile.html +121 -0
- data/doc/files/bin/milk.html +100 -0
- data/doc/files/doc/classes/Milk/Application_html.html +302 -0
- data/doc/files/doc/classes/Milk/Application_src/M000007_html.html +173 -0
- data/doc/files/doc/classes/Milk/Application_src/M000008_html.html +142 -0
- data/doc/files/doc/classes/Milk/Component_html.html +477 -0
- data/doc/files/doc/classes/Milk/Component_src/M000014_html.html +123 -0
- data/doc/files/doc/classes/Milk/Component_src/M000015_html.html +120 -0
- data/doc/files/doc/classes/Milk/Component_src/M000016_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000017_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000018_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000019_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000020_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000021_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000022_html.html +122 -0
- data/doc/files/doc/classes/Milk/Component_src/M000023_html.html +125 -0
- data/doc/files/doc/classes/Milk/Component_src/M000024_html.html +119 -0
- data/doc/files/doc/classes/Milk/Component_src/M000025_html.html +126 -0
- data/doc/files/doc/classes/Milk/ExternalCompilerError_html.html +214 -0
- data/doc/files/doc/classes/Milk/Field_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields/ComponentArray_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields/ImageChooser_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields/MarkdownField_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields/PageChooser_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields/SpriteChooser_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields/TextField_html.html +209 -0
- data/doc/files/doc/classes/Milk/Fields_html.html +264 -0
- data/doc/files/doc/classes/Milk/Haxe_html.html +298 -0
- data/doc/files/doc/classes/Milk/Haxe_src/M000005_html.html +144 -0
- data/doc/files/doc/classes/Milk/Haxe_src/M000006_html.html +119 -0
- data/doc/files/doc/classes/Milk/PageNotFoundError_html.html +205 -0
- data/doc/files/doc/classes/Milk/Page_html.html +330 -0
- data/doc/files/doc/classes/Milk/Page_src/M000009_html.html +121 -0
- data/doc/files/doc/classes/Milk/Page_src/M000010_html.html +121 -0
- data/doc/files/doc/classes/Milk/Page_src/M000011_html.html +122 -0
- data/doc/files/doc/classes/Milk/Page_src/M000012_html.html +124 -0
- data/doc/files/doc/classes/Milk/Page_src/M000013_html.html +125 -0
- data/doc/files/doc/classes/Milk_html.html +321 -0
- data/doc/files/doc/classes/Object_html.html +334 -0
- data/doc/files/doc/classes/Object_src/M000001_html.html +117 -0
- data/doc/files/doc/classes/Object_src/M000002_html.html +117 -0
- data/doc/files/doc/classes/Object_src/M000003_html.html +119 -0
- data/doc/files/doc/classes/Object_src/M000004_html.html +119 -0
- data/doc/files/doc/created_rid.html +97 -0
- data/doc/files/doc/files/INSTALL_html.html +206 -0
- data/doc/files/doc/files/LICENSE_html.html +226 -0
- data/doc/files/doc/files/README_html.html +201 -0
- data/doc/files/doc/files/Rakefile_html.html +221 -0
- data/doc/files/doc/files/bin/milk_html.html +198 -0
- data/doc/files/doc/files/lib/milk/application_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/component_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/field_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/component_array_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/image_chooser_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/markdown_field_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/page_chooser_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/sprite_chooser_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/text_field_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/fields/xhtml_haml_html.html +211 -0
- data/doc/files/doc/files/lib/milk/haxe_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/page_rb_html.html +188 -0
- data/doc/files/doc/files/lib/milk/tasks_rb_html.html +202 -0
- data/doc/files/doc/files/lib/milk/templates/bzrignore_html.html +197 -0
- data/doc/files/doc/files/lib/milk/templates/rackup_html.html +217 -0
- data/doc/files/doc/files/lib/milk/templates/rakefile_html.html +198 -0
- data/doc/files/doc/files/lib/milk/templates/restart_html.html +197 -0
- data/doc/files/doc/files/lib/milk_rb_html.html +197 -0
- data/doc/files/doc/fr_class_index_html.html +160 -0
- data/doc/files/doc/fr_file_index_html.html +174 -0
- data/doc/files/doc/fr_method_index_html.html +178 -0
- data/doc/files/doc/index_html.html +128 -0
- data/doc/files/doc/rdoc-style_css.html +665 -0
- data/doc/files/lib/milk/application_rb.html +90 -0
- data/doc/files/lib/milk/component_rb.html +90 -0
- data/doc/files/lib/milk/field_rb.html +90 -0
- data/doc/files/lib/milk/fields/component_array_rb.html +90 -0
- data/doc/files/lib/milk/fields/image_chooser_rb.html +90 -0
- data/doc/files/lib/milk/fields/markdown_field_rb.html +90 -0
- data/doc/files/lib/milk/fields/page_chooser_rb.html +90 -0
- data/doc/files/lib/milk/fields/sprite_chooser_rb.html +90 -0
- data/doc/files/lib/milk/fields/text_field_rb.html +90 -0
- data/doc/files/lib/milk/fields/xhtml_haml.html +107 -0
- data/doc/files/lib/milk/haxe_rb.html +90 -0
- data/doc/files/lib/milk/page_rb.html +90 -0
- data/doc/files/lib/milk/tasks_rb.html +104 -0
- data/doc/files/lib/milk/templates/bzrignore.html +97 -0
- data/doc/files/lib/milk/templates/rackup.html +119 -0
- data/doc/files/lib/milk/templates/rakefile.html +98 -0
- data/doc/files/lib/milk/templates/restart.html +97 -0
- data/doc/files/lib/milk_rb.html +97 -0
- data/doc/fr_class_index.html +27 -0
- data/doc/fr_file_index.html +169 -0
- data/doc/fr_method_index.html +33 -0
- data/doc/index.html +21 -0
- data/doc/rdoc-style.css +299 -0
- data/lib/milk.rb +58 -0
- data/lib/milk/application.rb +98 -0
- data/lib/milk/component.rb +73 -0
- data/lib/milk/field.rb +16 -0
- data/lib/milk/fields/component_array.rb +4 -0
- data/lib/milk/fields/image_chooser.rb +4 -0
- data/lib/milk/fields/markdown_field.rb +4 -0
- data/lib/milk/fields/page_chooser.rb +4 -0
- data/lib/milk/fields/sprite_chooser.rb +4 -0
- data/lib/milk/fields/text_field.rb +4 -0
- data/lib/milk/fields/xhtml.haml +10 -0
- data/lib/milk/haxe.rb +139 -0
- data/lib/milk/page.rb +45 -0
- data/lib/milk/tasks.rb +89 -0
- data/lib/milk/templates/bzrignore +3 -0
- data/lib/milk/templates/rackup +16 -0
- data/lib/milk/templates/rakefile +4 -0
- data/lib/milk/templates/restart +1 -0
- metadata +246 -26
- data/.document +0 -5
- data/.gitignore +0 -5
- data/README.rdoc +0 -7
- data/test/milk_test.rb +0 -7
- data/test/test_helper.rb +0 -10
@@ -0,0 +1,122 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<title>File: M000022.html [RDoc Documentation]</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
9
|
+
<script type="text/javascript">
|
10
|
+
// <![CDATA[
|
11
|
+
|
12
|
+
function popupCode( url ) {
|
13
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
14
|
+
}
|
15
|
+
|
16
|
+
function toggleCode( id ) {
|
17
|
+
if ( document.getElementById )
|
18
|
+
elem = document.getElementById( id );
|
19
|
+
else if ( document.all )
|
20
|
+
elem = eval( "document.all." + id );
|
21
|
+
else
|
22
|
+
return false;
|
23
|
+
|
24
|
+
elemStyle = elem.style;
|
25
|
+
|
26
|
+
if ( elemStyle.display != "block" ) {
|
27
|
+
elemStyle.display = "block"
|
28
|
+
} else {
|
29
|
+
elemStyle.display = "none"
|
30
|
+
}
|
31
|
+
|
32
|
+
return true;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Make codeblocks hidden by default
|
36
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
|
37
|
+
|
38
|
+
// ]]>
|
39
|
+
</script>
|
40
|
+
|
41
|
+
</head>
|
42
|
+
<body>
|
43
|
+
|
44
|
+
|
45
|
+
<div id="fileHeader">
|
46
|
+
<h1>M000022.html</h1>
|
47
|
+
<table class="header-table">
|
48
|
+
<tr class="top-aligned-row">
|
49
|
+
<td><strong>Path:</strong></td>
|
50
|
+
<td>doc/classes/Milk/Component.src/M000022.html
|
51
|
+
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr class="top-aligned-row">
|
55
|
+
<td><strong>Last Update:</strong></td>
|
56
|
+
<td>2009-05-13 23:25:36 -0500</td>
|
57
|
+
</tr>
|
58
|
+
</table>
|
59
|
+
</div>
|
60
|
+
<!-- banner header -->
|
61
|
+
|
62
|
+
<div id="bodyContent">
|
63
|
+
|
64
|
+
<div id="contextContent">
|
65
|
+
|
66
|
+
<div id="description">
|
67
|
+
<p>
|
68
|
+
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN“
|
69
|
+
“<a
|
70
|
+
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>“>
|
71
|
+
<html xmlns=“<a
|
72
|
+
href="http://www.w3.org/1999/xhtml">www.w3.org/1999/xhtml</a>“
|
73
|
+
xml:lang=“en” lang=“en”> <head>
|
74
|
+
</p>
|
75
|
+
<pre>
|
76
|
+
<title>initilize (Milk::Component)</title>
|
77
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
78
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
79
|
+
</pre>
|
80
|
+
<p>
|
81
|
+
</head> <body class=“standalone-code”>
|
82
|
+
</p>
|
83
|
+
<pre>
|
84
|
+
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 38</span>
|
85
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initilize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">props</span>)
|
86
|
+
<span class="ruby-identifier">props</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
87
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Undefined property \&quot;&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\&quot;&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@props</span>.<span class="ruby-identifier">member?</span> <span class="ruby-identifier">key</span>
|
88
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
|
89
|
+
<span class="ruby-keyword kw">end</span>
|
90
|
+
<span class="ruby-keyword kw">end</span></pre>
|
91
|
+
</pre>
|
92
|
+
<p>
|
93
|
+
</body> </html>
|
94
|
+
</p>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
<!-- if includes -->
|
104
|
+
|
105
|
+
<div id="section">
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if method_list -->
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div id="validator-badges">
|
118
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
</body>
|
122
|
+
</html>
|
@@ -0,0 +1,125 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<title>File: M000023.html [RDoc Documentation]</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
9
|
+
<script type="text/javascript">
|
10
|
+
// <![CDATA[
|
11
|
+
|
12
|
+
function popupCode( url ) {
|
13
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
14
|
+
}
|
15
|
+
|
16
|
+
function toggleCode( id ) {
|
17
|
+
if ( document.getElementById )
|
18
|
+
elem = document.getElementById( id );
|
19
|
+
else if ( document.all )
|
20
|
+
elem = eval( "document.all." + id );
|
21
|
+
else
|
22
|
+
return false;
|
23
|
+
|
24
|
+
elemStyle = elem.style;
|
25
|
+
|
26
|
+
if ( elemStyle.display != "block" ) {
|
27
|
+
elemStyle.display = "block"
|
28
|
+
} else {
|
29
|
+
elemStyle.display = "none"
|
30
|
+
}
|
31
|
+
|
32
|
+
return true;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Make codeblocks hidden by default
|
36
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
|
37
|
+
|
38
|
+
// ]]>
|
39
|
+
</script>
|
40
|
+
|
41
|
+
</head>
|
42
|
+
<body>
|
43
|
+
|
44
|
+
|
45
|
+
<div id="fileHeader">
|
46
|
+
<h1>M000023.html</h1>
|
47
|
+
<table class="header-table">
|
48
|
+
<tr class="top-aligned-row">
|
49
|
+
<td><strong>Path:</strong></td>
|
50
|
+
<td>doc/classes/Milk/Component.src/M000023.html
|
51
|
+
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr class="top-aligned-row">
|
55
|
+
<td><strong>Last Update:</strong></td>
|
56
|
+
<td>2009-05-13 23:25:36 -0500</td>
|
57
|
+
</tr>
|
58
|
+
</table>
|
59
|
+
</div>
|
60
|
+
<!-- banner header -->
|
61
|
+
|
62
|
+
<div id="bodyContent">
|
63
|
+
|
64
|
+
<div id="contextContent">
|
65
|
+
|
66
|
+
<div id="description">
|
67
|
+
<p>
|
68
|
+
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN“
|
69
|
+
“<a
|
70
|
+
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>“>
|
71
|
+
<html xmlns=“<a
|
72
|
+
href="http://www.w3.org/1999/xhtml">www.w3.org/1999/xhtml</a>“
|
73
|
+
xml:lang=“en” lang=“en”> <head>
|
74
|
+
</p>
|
75
|
+
<pre>
|
76
|
+
<title>load_settings (Milk::Component)</title>
|
77
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
78
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
79
|
+
</pre>
|
80
|
+
<p>
|
81
|
+
</head> <body class=“standalone-code”>
|
82
|
+
</p>
|
83
|
+
<pre>
|
84
|
+
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 45</span>
|
85
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_settings</span>
|
86
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>) { <span class="ruby-node">&quot;#{$1}_#{$2}&quot;</span> }.<span class="ruby-identifier">downcase</span>
|
87
|
+
<span class="ruby-identifier">yml_file</span> = <span class="ruby-constant">Milk</span><span class="ruby-operator">::</span><span class="ruby-constant">PAGES_DIR</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;/global/&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.yml&quot;</span>
|
88
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span> <span class="ruby-identifier">yml_file</span>
|
89
|
+
<span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">yml_file</span>)
|
90
|
+
<span class="ruby-keyword kw">else</span>
|
91
|
+
{}
|
92
|
+
<span class="ruby-keyword kw">end</span>
|
93
|
+
<span class="ruby-keyword kw">end</span></pre>
|
94
|
+
</pre>
|
95
|
+
<p>
|
96
|
+
</body> </html>
|
97
|
+
</p>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
<!-- if includes -->
|
107
|
+
|
108
|
+
<div id="section">
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<!-- if method_list -->
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<div id="validator-badges">
|
121
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
</body>
|
125
|
+
</html>
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<title>File: M000024.html [RDoc Documentation]</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
9
|
+
<script type="text/javascript">
|
10
|
+
// <![CDATA[
|
11
|
+
|
12
|
+
function popupCode( url ) {
|
13
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
14
|
+
}
|
15
|
+
|
16
|
+
function toggleCode( id ) {
|
17
|
+
if ( document.getElementById )
|
18
|
+
elem = document.getElementById( id );
|
19
|
+
else if ( document.all )
|
20
|
+
elem = eval( "document.all." + id );
|
21
|
+
else
|
22
|
+
return false;
|
23
|
+
|
24
|
+
elemStyle = elem.style;
|
25
|
+
|
26
|
+
if ( elemStyle.display != "block" ) {
|
27
|
+
elemStyle.display = "block"
|
28
|
+
} else {
|
29
|
+
elemStyle.display = "none"
|
30
|
+
}
|
31
|
+
|
32
|
+
return true;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Make codeblocks hidden by default
|
36
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
|
37
|
+
|
38
|
+
// ]]>
|
39
|
+
</script>
|
40
|
+
|
41
|
+
</head>
|
42
|
+
<body>
|
43
|
+
|
44
|
+
|
45
|
+
<div id="fileHeader">
|
46
|
+
<h1>M000024.html</h1>
|
47
|
+
<table class="header-table">
|
48
|
+
<tr class="top-aligned-row">
|
49
|
+
<td><strong>Path:</strong></td>
|
50
|
+
<td>doc/classes/Milk/Component.src/M000024.html
|
51
|
+
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr class="top-aligned-row">
|
55
|
+
<td><strong>Last Update:</strong></td>
|
56
|
+
<td>2009-05-13 23:25:36 -0500</td>
|
57
|
+
</tr>
|
58
|
+
</table>
|
59
|
+
</div>
|
60
|
+
<!-- banner header -->
|
61
|
+
|
62
|
+
<div id="bodyContent">
|
63
|
+
|
64
|
+
<div id="contextContent">
|
65
|
+
|
66
|
+
<div id="description">
|
67
|
+
<p>
|
68
|
+
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN“
|
69
|
+
“<a
|
70
|
+
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>“>
|
71
|
+
<html xmlns=“<a
|
72
|
+
href="http://www.w3.org/1999/xhtml">www.w3.org/1999/xhtml</a>“
|
73
|
+
xml:lang=“en” lang=“en”> <head>
|
74
|
+
</p>
|
75
|
+
<pre>
|
76
|
+
<title>edit (Milk::Component)</title>
|
77
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
78
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
79
|
+
</pre>
|
80
|
+
<p>
|
81
|
+
</head> <body class=“standalone-code”>
|
82
|
+
</p>
|
83
|
+
<pre>
|
84
|
+
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 55</span>
|
85
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>
|
86
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inspect</span>
|
87
|
+
<span class="ruby-keyword kw">end</span></pre>
|
88
|
+
</pre>
|
89
|
+
<p>
|
90
|
+
</body> </html>
|
91
|
+
</p>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
|
98
|
+
</div>
|
99
|
+
|
100
|
+
<!-- if includes -->
|
101
|
+
|
102
|
+
<div id="section">
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<!-- if method_list -->
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
|
114
|
+
<div id="validator-badges">
|
115
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
</body>
|
119
|
+
</html>
|
@@ -0,0 +1,126 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<title>File: M000025.html [RDoc Documentation]</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
8
|
+
<link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
9
|
+
<script type="text/javascript">
|
10
|
+
// <![CDATA[
|
11
|
+
|
12
|
+
function popupCode( url ) {
|
13
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
14
|
+
}
|
15
|
+
|
16
|
+
function toggleCode( id ) {
|
17
|
+
if ( document.getElementById )
|
18
|
+
elem = document.getElementById( id );
|
19
|
+
else if ( document.all )
|
20
|
+
elem = eval( "document.all." + id );
|
21
|
+
else
|
22
|
+
return false;
|
23
|
+
|
24
|
+
elemStyle = elem.style;
|
25
|
+
|
26
|
+
if ( elemStyle.display != "block" ) {
|
27
|
+
elemStyle.display = "block"
|
28
|
+
} else {
|
29
|
+
elemStyle.display = "none"
|
30
|
+
}
|
31
|
+
|
32
|
+
return true;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Make codeblocks hidden by default
|
36
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
|
37
|
+
|
38
|
+
// ]]>
|
39
|
+
</script>
|
40
|
+
|
41
|
+
</head>
|
42
|
+
<body>
|
43
|
+
|
44
|
+
|
45
|
+
<div id="fileHeader">
|
46
|
+
<h1>M000025.html</h1>
|
47
|
+
<table class="header-table">
|
48
|
+
<tr class="top-aligned-row">
|
49
|
+
<td><strong>Path:</strong></td>
|
50
|
+
<td>doc/classes/Milk/Component.src/M000025.html
|
51
|
+
|
52
|
+
</td>
|
53
|
+
</tr>
|
54
|
+
<tr class="top-aligned-row">
|
55
|
+
<td><strong>Last Update:</strong></td>
|
56
|
+
<td>2009-05-13 23:25:36 -0500</td>
|
57
|
+
</tr>
|
58
|
+
</table>
|
59
|
+
</div>
|
60
|
+
<!-- banner header -->
|
61
|
+
|
62
|
+
<div id="bodyContent">
|
63
|
+
|
64
|
+
<div id="contextContent">
|
65
|
+
|
66
|
+
<div id="description">
|
67
|
+
<p>
|
68
|
+
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN“
|
69
|
+
“<a
|
70
|
+
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>“>
|
71
|
+
<html xmlns=“<a
|
72
|
+
href="http://www.w3.org/1999/xhtml">www.w3.org/1999/xhtml</a>“
|
73
|
+
xml:lang=“en” lang=“en”> <head>
|
74
|
+
</p>
|
75
|
+
<pre>
|
76
|
+
<title>view (Milk::Component)</title>
|
77
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
78
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
79
|
+
</pre>
|
80
|
+
<p>
|
81
|
+
</head> <body class=“standalone-code”>
|
82
|
+
</p>
|
83
|
+
<pre>
|
84
|
+
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 59</span>
|
85
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">view</span>
|
86
|
+
<span class="ruby-identifier">globals</span> = <span class="ruby-identifier">load_settings</span>
|
87
|
+
<span class="ruby-identifier">globals</span>.<span class="ruby-identifier">each_pair</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
88
|
+
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">instance_variable_set</span>((<span class="ruby-value str">'@'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">key</span>).<span class="ruby-identifier">to_sym</span>, <span class="ruby-identifier">value</span>)
|
89
|
+
<span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">globals</span>.<span class="ruby-identifier">nil?</span>
|
90
|
+
<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([a-z])([A-Z])/</span>) { <span class="ruby-node">&quot;#{$1}_#{$2}&quot;</span> }.<span class="ruby-identifier">downcase</span>
|
91
|
+
<span class="ruby-identifier">haml_file</span> = <span class="ruby-constant">Milk</span><span class="ruby-operator">::</span><span class="ruby-constant">COMPONENTS_DIR</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;/&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;.haml&quot;</span>
|
92
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;Missing template \&quot;&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">haml_file</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\&quot;&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span> <span class="ruby-identifier">haml_file</span>
|
93
|
+
<span class="ruby-operator">::</span><span class="ruby-constant">Haml</span><span class="ruby-operator">::</span><span class="ruby-constant">Engine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">haml_file</span>), <span class="ruby-identifier">:filename</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">haml_file</span>).<span class="ruby-identifier">render</span>(<span class="ruby-keyword kw">self</span>)
|
94
|
+
<span class="ruby-keyword kw">end</span></pre>
|
95
|
+
</pre>
|
96
|
+
<p>
|
97
|
+
</body> </html>
|
98
|
+
</p>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<!-- if includes -->
|
108
|
+
|
109
|
+
<div id="section">
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
<!-- if method_list -->
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div id="validator-badges">
|
122
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</body>
|
126
|
+
</html>
|