milk 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/milk.rb +13 -0
- data/lib/milk/application.rb +14 -0
- data/lib/milk/component.rb +67 -40
- data/lib/milk/field.rb +46 -2
- data/lib/milk/fields/component.haml +8 -0
- data/lib/milk/fields/component_array.haml +3 -0
- data/lib/milk/fields/component_view.haml +2 -0
- data/lib/milk/fields/image_chooser.haml +7 -0
- data/lib/milk/fields/image_chooser.rb +22 -0
- data/lib/milk/fields/markdown_field.haml +1 -0
- data/lib/milk/fields/page_chooser.haml +3 -0
- data/lib/milk/fields/page_chooser.rb +13 -0
- data/lib/milk/fields/sprite_chooser.haml +6 -0
- data/lib/milk/fields/sprite_chooser.rb +15 -0
- data/lib/milk/fields/text_field.haml +1 -0
- data/lib/milk/fields/xhtml.haml +253 -2
- data/lib/milk/page.rb +56 -14
- metadata +11 -174
- data/doc/classes/Milk.html +0 -198
- data/doc/classes/Milk.src/M000005.html +0 -17
- data/doc/classes/Milk/Application.html +0 -209
- data/doc/classes/Milk/Application.src/M000007.html +0 -69
- data/doc/classes/Milk/Application.src/M000008.html +0 -38
- data/doc/classes/Milk/Component.html +0 -397
- data/doc/classes/Milk/Component.src/M000014.html +0 -19
- data/doc/classes/Milk/Component.src/M000015.html +0 -16
- data/doc/classes/Milk/Component.src/M000016.html +0 -15
- data/doc/classes/Milk/Component.src/M000017.html +0 -15
- data/doc/classes/Milk/Component.src/M000018.html +0 -15
- data/doc/classes/Milk/Component.src/M000019.html +0 -15
- data/doc/classes/Milk/Component.src/M000020.html +0 -15
- data/doc/classes/Milk/Component.src/M000021.html +0 -15
- data/doc/classes/Milk/Component.src/M000022.html +0 -18
- data/doc/classes/Milk/Component.src/M000023.html +0 -21
- data/doc/classes/Milk/Component.src/M000024.html +0 -15
- data/doc/classes/Milk/Component.src/M000025.html +0 -22
- data/doc/classes/Milk/ExternalCompilerError.html +0 -117
- data/doc/classes/Milk/Field.html +0 -114
- data/doc/classes/Milk/Fields.html +0 -173
- data/doc/classes/Milk/Fields/ComponentArray.html +0 -114
- data/doc/classes/Milk/Fields/ImageChooser.html +0 -114
- data/doc/classes/Milk/Fields/MarkdownField.html +0 -114
- data/doc/classes/Milk/Fields/PageChooser.html +0 -114
- data/doc/classes/Milk/Fields/SpriteChooser.html +0 -114
- data/doc/classes/Milk/Fields/TextField.html +0 -114
- data/doc/classes/Milk/Haxe.html +0 -208
- data/doc/classes/Milk/Haxe.src/M000005.html +0 -40
- data/doc/classes/Milk/Haxe.src/M000006.html +0 -15
- data/doc/classes/Milk/Page.html +0 -243
- data/doc/classes/Milk/Page.src/M000009.html +0 -17
- data/doc/classes/Milk/Page.src/M000010.html +0 -17
- data/doc/classes/Milk/Page.src/M000011.html +0 -18
- data/doc/classes/Milk/Page.src/M000012.html +0 -20
- data/doc/classes/Milk/Page.src/M000013.html +0 -21
- data/doc/classes/Milk/PageNotFoundError.html +0 -110
- data/doc/classes/Object.html +0 -237
- data/doc/classes/Object.src/M000001.html +0 -13
- data/doc/classes/Object.src/M000002.html +0 -13
- data/doc/classes/Object.src/M000003.html +0 -15
- data/doc/classes/Object.src/M000004.html +0 -15
- data/doc/created.rid +0 -1
- data/doc/files/INSTALL.html +0 -106
- data/doc/files/LICENSE.html +0 -126
- data/doc/files/README.html +0 -100
- data/doc/files/Rakefile.html +0 -121
- data/doc/files/bin/milk.html +0 -100
- data/doc/files/doc/classes/Milk/Application_html.html +0 -302
- data/doc/files/doc/classes/Milk/Application_src/M000007_html.html +0 -173
- data/doc/files/doc/classes/Milk/Application_src/M000008_html.html +0 -142
- data/doc/files/doc/classes/Milk/Component_html.html +0 -477
- data/doc/files/doc/classes/Milk/Component_src/M000014_html.html +0 -123
- data/doc/files/doc/classes/Milk/Component_src/M000015_html.html +0 -120
- data/doc/files/doc/classes/Milk/Component_src/M000016_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000017_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000018_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000019_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000020_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000021_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000022_html.html +0 -122
- data/doc/files/doc/classes/Milk/Component_src/M000023_html.html +0 -125
- data/doc/files/doc/classes/Milk/Component_src/M000024_html.html +0 -119
- data/doc/files/doc/classes/Milk/Component_src/M000025_html.html +0 -126
- data/doc/files/doc/classes/Milk/ExternalCompilerError_html.html +0 -214
- data/doc/files/doc/classes/Milk/Field_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields/ComponentArray_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields/ImageChooser_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields/MarkdownField_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields/PageChooser_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields/SpriteChooser_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields/TextField_html.html +0 -209
- data/doc/files/doc/classes/Milk/Fields_html.html +0 -264
- data/doc/files/doc/classes/Milk/Haxe_html.html +0 -298
- data/doc/files/doc/classes/Milk/Haxe_src/M000005_html.html +0 -144
- data/doc/files/doc/classes/Milk/Haxe_src/M000006_html.html +0 -119
- data/doc/files/doc/classes/Milk/PageNotFoundError_html.html +0 -205
- data/doc/files/doc/classes/Milk/Page_html.html +0 -330
- data/doc/files/doc/classes/Milk/Page_src/M000009_html.html +0 -121
- data/doc/files/doc/classes/Milk/Page_src/M000010_html.html +0 -121
- data/doc/files/doc/classes/Milk/Page_src/M000011_html.html +0 -122
- data/doc/files/doc/classes/Milk/Page_src/M000012_html.html +0 -124
- data/doc/files/doc/classes/Milk/Page_src/M000013_html.html +0 -125
- data/doc/files/doc/classes/Milk_html.html +0 -321
- data/doc/files/doc/classes/Object_html.html +0 -334
- data/doc/files/doc/classes/Object_src/M000001_html.html +0 -117
- data/doc/files/doc/classes/Object_src/M000002_html.html +0 -117
- data/doc/files/doc/classes/Object_src/M000003_html.html +0 -119
- data/doc/files/doc/classes/Object_src/M000004_html.html +0 -119
- data/doc/files/doc/created_rid.html +0 -97
- data/doc/files/doc/files/INSTALL_html.html +0 -206
- data/doc/files/doc/files/LICENSE_html.html +0 -226
- data/doc/files/doc/files/README_html.html +0 -201
- data/doc/files/doc/files/Rakefile_html.html +0 -221
- data/doc/files/doc/files/bin/milk_html.html +0 -198
- data/doc/files/doc/files/lib/milk/application_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/component_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/field_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/component_array_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/image_chooser_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/markdown_field_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/page_chooser_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/sprite_chooser_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/text_field_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/fields/xhtml_haml_html.html +0 -211
- data/doc/files/doc/files/lib/milk/haxe_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/page_rb_html.html +0 -188
- data/doc/files/doc/files/lib/milk/tasks_rb_html.html +0 -202
- data/doc/files/doc/files/lib/milk/templates/bzrignore_html.html +0 -197
- data/doc/files/doc/files/lib/milk/templates/rackup_html.html +0 -217
- data/doc/files/doc/files/lib/milk/templates/rakefile_html.html +0 -198
- data/doc/files/doc/files/lib/milk/templates/restart_html.html +0 -197
- data/doc/files/doc/files/lib/milk_rb_html.html +0 -197
- data/doc/files/doc/fr_class_index_html.html +0 -160
- data/doc/files/doc/fr_file_index_html.html +0 -174
- data/doc/files/doc/fr_method_index_html.html +0 -178
- data/doc/files/doc/index_html.html +0 -128
- data/doc/files/doc/rdoc-style_css.html +0 -665
- data/doc/files/lib/milk/application_rb.html +0 -90
- data/doc/files/lib/milk/component_rb.html +0 -90
- data/doc/files/lib/milk/field_rb.html +0 -90
- data/doc/files/lib/milk/fields/component_array_rb.html +0 -90
- data/doc/files/lib/milk/fields/image_chooser_rb.html +0 -90
- data/doc/files/lib/milk/fields/markdown_field_rb.html +0 -90
- data/doc/files/lib/milk/fields/page_chooser_rb.html +0 -90
- data/doc/files/lib/milk/fields/sprite_chooser_rb.html +0 -90
- data/doc/files/lib/milk/fields/text_field_rb.html +0 -90
- data/doc/files/lib/milk/fields/xhtml_haml.html +0 -107
- data/doc/files/lib/milk/haxe_rb.html +0 -90
- data/doc/files/lib/milk/page_rb.html +0 -90
- data/doc/files/lib/milk/tasks_rb.html +0 -104
- data/doc/files/lib/milk/templates/bzrignore.html +0 -97
- data/doc/files/lib/milk/templates/rackup.html +0 -119
- data/doc/files/lib/milk/templates/rakefile.html +0 -98
- data/doc/files/lib/milk/templates/restart.html +0 -97
- data/doc/files/lib/milk_rb.html +0 -97
- data/doc/fr_class_index.html +0 -27
- data/doc/fr_file_index.html +0 -169
- data/doc/fr_method_index.html +0 -33
- data/doc/index.html +0 -21
- data/doc/rdoc-style.css +0 -299
@@ -1,19 +0,0 @@
|
|
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>local_properties (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 6</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">local_properties</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">props</span>)
|
12
|
-
<span class="ruby-ivar">@@props</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">props</span>
|
13
|
-
<span class="ruby-comment cmt"># Dynamically set the yaml dumper to only store local properties</span>
|
14
|
-
<span class="ruby-identifier">meta_def</span> <span class="ruby-identifier">:to_yaml_properties</span> <span class="ruby-keyword kw">do</span>
|
15
|
-
<span class="ruby-identifier">props</span>
|
16
|
-
<span class="ruby-keyword kw">end</span>
|
17
|
-
<span class="ruby-keyword kw">end</span></pre>
|
18
|
-
</body>
|
19
|
-
</html>
|
@@ -1,16 +0,0 @@
|
|
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>global_properties (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 14</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">global_properties</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">props</span>)
|
12
|
-
<span class="ruby-ivar">@@props</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">props</span>
|
13
|
-
<span class="ruby-comment cmt"># TODO: put hook in save</span>
|
14
|
-
<span class="ruby-keyword kw">end</span></pre>
|
15
|
-
</body>
|
16
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>component_array (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 19</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">component_array</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">com_class</span>)
|
12
|
-
<span class="ruby-comment cmt"># TODO: create hooks to add field</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>image_chooser (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 22</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">image_chooser</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">alt_field</span>)
|
12
|
-
<span class="ruby-comment cmt"># TODO: create hooks to add field</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>markdown_field (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 25</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">markdown_field</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">label</span>)
|
12
|
-
<span class="ruby-comment cmt"># TODO: create hooks to add field</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>page_chooser (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 28</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">page_chooser</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">label</span>)
|
12
|
-
<span class="ruby-comment cmt"># TODO: create hooks to add field</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>sprite_chooser (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 31</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sprite_chooser</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">label</span>, <span class="ruby-identifier">main_class</span>, <span class="ruby-identifier">sub_classes</span>)
|
12
|
-
<span class="ruby-comment cmt"># TODO: create hooks to add field</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>text_field (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 34</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">text_field</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">label</span>)
|
12
|
-
<span class="ruby-comment cmt"># TODO: create hooks to add field</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
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>initilize (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 38</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initilize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">props</span>)
|
12
|
-
<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>
|
13
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"Undefined property \""</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">"\""</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>
|
14
|
-
<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>)
|
15
|
-
<span class="ruby-keyword kw">end</span>
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,21 +0,0 @@
|
|
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>load_settings (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 45</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_settings</span>
|
12
|
-
<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">"#{$1}_#{$2}"</span> }.<span class="ruby-identifier">downcase</span>
|
13
|
-
<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">"/global/"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">".yml"</span>
|
14
|
-
<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>
|
15
|
-
<span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">yml_file</span>)
|
16
|
-
<span class="ruby-keyword kw">else</span>
|
17
|
-
{}
|
18
|
-
<span class="ruby-keyword kw">end</span>
|
19
|
-
<span class="ruby-keyword kw">end</span></pre>
|
20
|
-
</body>
|
21
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
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>edit (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 55</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>
|
12
|
-
<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">inspect</span>
|
13
|
-
<span class="ruby-keyword kw">end</span></pre>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,22 +0,0 @@
|
|
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>view (Milk::Component)</title>
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
8
|
-
</head>
|
9
|
-
<body class="standalone-code">
|
10
|
-
<pre><span class="ruby-comment cmt"># File lib/milk/component.rb, line 59</span>
|
11
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">view</span>
|
12
|
-
<span class="ruby-identifier">globals</span> = <span class="ruby-identifier">load_settings</span>
|
13
|
-
<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>
|
14
|
-
<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>)
|
15
|
-
<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>
|
16
|
-
<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">"#{$1}_#{$2}"</span> }.<span class="ruby-identifier">downcase</span>
|
17
|
-
<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">"/"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">".haml"</span>
|
18
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"Missing template \""</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">haml_file</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\""</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>
|
19
|
-
<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">></span> <span class="ruby-identifier">haml_file</span>).<span class="ruby-identifier">render</span>(<span class="ruby-keyword kw">self</span>)
|
20
|
-
<span class="ruby-keyword kw">end</span></pre>
|
21
|
-
</body>
|
22
|
-
</html>
|
@@ -1,117 +0,0 @@
|
|
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>Class: Milk::ExternalCompilerError [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="classHeader">
|
46
|
-
<table class="header-table">
|
47
|
-
<tr class="top-aligned-row">
|
48
|
-
<td><strong>Class</strong></td>
|
49
|
-
<td class="class-name-in-header">Milk::ExternalCompilerError</td>
|
50
|
-
</tr>
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>In:</strong></td>
|
53
|
-
<td>
|
54
|
-
|
55
|
-
|
56
|
-
<a href="../../files/lib/milk/haxe_rb.html">
|
57
|
-
|
58
|
-
lib/milk/haxe.rb
|
59
|
-
|
60
|
-
</a>
|
61
|
-
|
62
|
-
|
63
|
-
<br />
|
64
|
-
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
|
68
|
-
|
69
|
-
<tr class="top-aligned-row">
|
70
|
-
<td><strong>Parent:</strong></td>
|
71
|
-
<td>
|
72
|
-
|
73
|
-
StandardError
|
74
|
-
|
75
|
-
</td>
|
76
|
-
</tr>
|
77
|
-
|
78
|
-
</table>
|
79
|
-
</div>
|
80
|
-
<!-- banner header -->
|
81
|
-
|
82
|
-
<div id="bodyContent">
|
83
|
-
|
84
|
-
<div id="contextContent">
|
85
|
-
|
86
|
-
<div id="description">
|
87
|
-
<p>
|
88
|
-
An exception raised by haxe or swfmill.
|
89
|
-
</p>
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
|
96
|
-
</div>
|
97
|
-
|
98
|
-
<!-- if includes -->
|
99
|
-
|
100
|
-
<div id="section">
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if method_list -->
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
</div>
|
111
|
-
|
112
|
-
<div id="validator-badges">
|
113
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
114
|
-
</div>
|
115
|
-
|
116
|
-
</body>
|
117
|
-
</html>
|
data/doc/classes/Milk/Field.html
DELETED
@@ -1,114 +0,0 @@
|
|
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>Class: Milk::Field [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="classHeader">
|
46
|
-
<table class="header-table">
|
47
|
-
<tr class="top-aligned-row">
|
48
|
-
<td><strong>Class</strong></td>
|
49
|
-
<td class="class-name-in-header">Milk::Field</td>
|
50
|
-
</tr>
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>In:</strong></td>
|
53
|
-
<td>
|
54
|
-
|
55
|
-
|
56
|
-
<a href="../../files/lib/milk/field_rb.html">
|
57
|
-
|
58
|
-
lib/milk/field.rb
|
59
|
-
|
60
|
-
</a>
|
61
|
-
|
62
|
-
|
63
|
-
<br />
|
64
|
-
|
65
|
-
</td>
|
66
|
-
</tr>
|
67
|
-
|
68
|
-
|
69
|
-
<tr class="top-aligned-row">
|
70
|
-
<td><strong>Parent:</strong></td>
|
71
|
-
<td>
|
72
|
-
|
73
|
-
<a href="../Object.html">
|
74
|
-
|
75
|
-
Object
|
76
|
-
|
77
|
-
</a>
|
78
|
-
|
79
|
-
</td>
|
80
|
-
</tr>
|
81
|
-
|
82
|
-
</table>
|
83
|
-
</div>
|
84
|
-
<!-- banner header -->
|
85
|
-
|
86
|
-
<div id="bodyContent">
|
87
|
-
|
88
|
-
<div id="contextContent">
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
|
93
|
-
</div>
|
94
|
-
|
95
|
-
<!-- if includes -->
|
96
|
-
|
97
|
-
<div id="section">
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<!-- if method_list -->
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div id="validator-badges">
|
110
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
111
|
-
</div>
|
112
|
-
|
113
|
-
</body>
|
114
|
-
</html>
|