ymdp 0.9.2 → 0.10.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.
Files changed (70) hide show
  1. data/Gemfile +2 -1
  2. data/VERSION +1 -1
  3. data/doc/ActionView.html +175 -0
  4. data/doc/ActionView/Helpers.html +175 -0
  5. data/doc/ActionView/Helpers/TagHelper.html +439 -0
  6. data/doc/Application.html +295 -0
  7. data/doc/LICENSE.html +158 -0
  8. data/doc/Object.html +218 -0
  9. data/doc/README_rdoc.html +147 -0
  10. data/doc/YMDP.html +232 -0
  11. data/doc/YMDP/ApplicationView.html +563 -0
  12. data/doc/YMDP/AssetTagHelper.html +235 -0
  13. data/doc/YMDP/Base.html +560 -0
  14. data/doc/YMDP/Compiler.html +178 -0
  15. data/doc/YMDP/Compiler/Base.html +1181 -0
  16. data/doc/YMDP/Compiler/Domains.html +493 -0
  17. data/doc/YMDP/Compiler/Options.html +265 -0
  18. data/doc/YMDP/Compiler/Template.html +175 -0
  19. data/doc/YMDP/Compiler/Template/Base.html +911 -0
  20. data/doc/YMDP/Compiler/Template/CoffeeScript.html +236 -0
  21. data/doc/YMDP/Compiler/Template/JavaScript.html +237 -0
  22. data/doc/YMDP/Compiler/Template/View.html +495 -0
  23. data/doc/YMDP/Compiler/Template/YRB.html +469 -0
  24. data/doc/YMDP/Configuration.html +175 -0
  25. data/doc/YMDP/Configuration/Base.html +426 -0
  26. data/doc/YMDP/Configuration/Config.html +553 -0
  27. data/doc/YMDP/Configuration/Servers.html +265 -0
  28. data/doc/YMDP/Configuration/Setter.html +580 -0
  29. data/doc/YMDP/FormTagHelper.html +298 -0
  30. data/doc/YMDP/GitHelper.html +298 -0
  31. data/doc/YMDP/LinkTagHelper.html +299 -0
  32. data/doc/YMDP/View.html +239 -0
  33. data/doc/created.rid +18 -0
  34. data/doc/images/add.png +0 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/delete.png +0 -0
  43. data/doc/images/find.png +0 -0
  44. data/doc/images/loadingAnimation.gif +0 -0
  45. data/doc/images/macFFBgHack.png +0 -0
  46. data/doc/images/package.png +0 -0
  47. data/doc/images/page_green.png +0 -0
  48. data/doc/images/page_white_text.png +0 -0
  49. data/doc/images/page_white_width.png +0 -0
  50. data/doc/images/plugin.png +0 -0
  51. data/doc/images/ruby.png +0 -0
  52. data/doc/images/tag_blue.png +0 -0
  53. data/doc/images/tag_green.png +0 -0
  54. data/doc/images/transparent.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +134 -0
  59. data/doc/js/darkfish.js +153 -0
  60. data/doc/js/jquery.js +18 -0
  61. data/doc/js/navigation.js +142 -0
  62. data/doc/js/search.js +94 -0
  63. data/doc/js/search_index.js +1 -0
  64. data/doc/js/searcher.js +228 -0
  65. data/doc/rdoc.css +543 -0
  66. data/doc/table_of_contents.html +401 -0
  67. data/lib/ymdp/compiler/template.rb +5 -1
  68. data/lib/ymdp/view/application_view.rb +10 -5
  69. data/ymdp.gemspec +69 -2
  70. metadata +120 -42
@@ -0,0 +1,235 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module YMDP::AssetTagHelper - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ymdp/view/asset_tag_helper.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+ <!-- Method Quickref -->
62
+ <nav id="method-list-section" class="section">
63
+ <h3 class="section-header">Methods</h3>
64
+
65
+ <ul class="link-list">
66
+
67
+ <li><a href="#method-i-image_tag">#image_tag</a>
68
+
69
+ </ul>
70
+ </nav>
71
+
72
+ </div>
73
+
74
+ <div id="project-metadata">
75
+ <nav id="fileindex-section" class="section project-section">
76
+ <h3 class="section-header">Pages</h3>
77
+
78
+ <ul>
79
+
80
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
81
+
82
+ <li class="file"><a href="../README_rdoc.html">README</a>
83
+
84
+ </ul>
85
+ </nav>
86
+
87
+ <nav id="classindex-section" class="section project-section">
88
+ <h3 class="section-header">Class and Module Index</h3>
89
+
90
+ <ul class="link-list">
91
+
92
+ <li><a href="../YMDP.html">YMDP</a>
93
+
94
+ <li><a href="../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
95
+
96
+ <li><a href="../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
97
+
98
+ <li><a href="../YMDP/Base.html">YMDP::Base</a>
99
+
100
+ <li><a href="../YMDP/Compiler.html">YMDP::Compiler</a>
101
+
102
+ <li><a href="../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
103
+
104
+ <li><a href="../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
105
+
106
+ <li><a href="../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
107
+
108
+ <li><a href="../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
109
+
110
+ <li><a href="../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
111
+
112
+ <li><a href="../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
113
+
114
+ <li><a href="../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
115
+
116
+ <li><a href="../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
117
+
118
+ <li><a href="../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
119
+
120
+ <li><a href="../YMDP/Configuration.html">YMDP::Configuration</a>
121
+
122
+ <li><a href="../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
123
+
124
+ <li><a href="../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
125
+
126
+ <li><a href="../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
127
+
128
+ <li><a href="../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
129
+
130
+ <li><a href="../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
131
+
132
+ <li><a href="../YMDP/GitHelper.html">YMDP::GitHelper</a>
133
+
134
+ <li><a href="../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
135
+
136
+ <li><a href="../YMDP/View.html">YMDP::View</a>
137
+
138
+ <li><a href="../ActionView.html">ActionView</a>
139
+
140
+ <li><a href="../ActionView/Helpers.html">ActionView::Helpers</a>
141
+
142
+ <li><a href="../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
143
+
144
+ <li><a href="../Application.html">Application</a>
145
+
146
+ <li><a href="../Object.html">Object</a>
147
+
148
+ </ul>
149
+ </nav>
150
+
151
+ </div>
152
+ </nav>
153
+
154
+ <div id="documentation">
155
+ <h1 class="module">module YMDP::AssetTagHelper</h1>
156
+
157
+ <div id="description" class="description">
158
+
159
+ </div><!-- description -->
160
+
161
+
162
+
163
+
164
+ <section id="5Buntitled-5D" class="documentation-section">
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <!-- Methods -->
174
+
175
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
176
+ <h3 class="section-header">Public Instance Methods</h3>
177
+
178
+
179
+ <div id="method-i-image_tag" class="method-detail ">
180
+
181
+ <div class="method-heading">
182
+ <span class="method-name">image_tag</span><span
183
+ class="method-args">(source, options = {})</span>
184
+ <span class="method-click-advice">click to toggle source</span>
185
+ </div>
186
+
187
+
188
+ <div class="method-description">
189
+
190
+
191
+
192
+
193
+
194
+ <div class="method-source-code" id="image_tag-source">
195
+ <pre><span class="ruby-comment"># File lib/ymdp/view/asset_tag_helper.rb, line 63</span>
196
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">image_tag</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">options</span> = {})
197
+ <span class="ruby-comment"># options.symbolize_keys!</span>
198
+
199
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:src</span>] = <span class="ruby-identifier">path_to_image</span>(<span class="ruby-identifier">source</span>)
200
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:alt</span>] <span class="ruby-operator">||=</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value">:src</span>], <span class="ruby-string">'.*'</span>).<span class="ruby-identifier">split</span>(<span class="ruby-string">'.'</span>).<span class="ruby-identifier">first</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">capitalize</span>
201
+
202
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">size</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:size</span>)
203
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:width</span>], <span class="ruby-identifier">options</span>[<span class="ruby-value">:height</span>] = <span class="ruby-identifier">size</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;x&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">size</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">%r{^\d+x\d+$}</span>
204
+ <span class="ruby-keyword">end</span>
205
+
206
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">mouseover</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value">:mouseover</span>)
207
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:onmouseover</span>] = <span class="ruby-node">&quot;this.src='#{path_to_image(mouseover)}'&quot;</span>
208
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:onmouseout</span>] = <span class="ruby-node">&quot;this.src='#{path_to_image(options[:src])}'&quot;</span>
209
+ <span class="ruby-keyword">end</span>
210
+
211
+ <span class="ruby-identifier">tag</span>(<span class="ruby-string">&quot;img&quot;</span>, <span class="ruby-identifier">options</span>)
212
+ <span class="ruby-keyword">end</span></pre>
213
+ </div><!-- image_tag-source -->
214
+
215
+ </div>
216
+
217
+
218
+
219
+
220
+ </div><!-- image_tag-method -->
221
+
222
+
223
+ </section><!-- public-instance-method-details -->
224
+
225
+ </section><!-- 5Buntitled-5D -->
226
+
227
+ </div><!-- documentation -->
228
+
229
+
230
+ <footer id="validator-badges">
231
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
232
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
233
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
234
+ </footer>
235
+
@@ -0,0 +1,560 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class YMDP::Base - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ymdp/base.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-c-base_path">::base_path</a>
74
+
75
+ <li><a href="#method-c-configuration">::configuration</a>
76
+
77
+ <li><a href="#method-c-configure">::configure</a>
78
+
79
+ <li><a href="#method-c-display_path">::display_path</a>
80
+
81
+ <li><a href="#method-i-base_path">#base_path</a>
82
+
83
+ <li><a href="#method-i-configuration">#configuration</a>
84
+
85
+ <li><a href="#method-i-content_variables">#content_variables</a>
86
+
87
+ <li><a href="#method-i-display_path">#display_path</a>
88
+
89
+ <li><a href="#method-i-paths">#paths</a>
90
+
91
+ <li><a href="#method-i-servers">#servers</a>
92
+
93
+ </ul>
94
+ </nav>
95
+
96
+ </div>
97
+
98
+ <div id="project-metadata">
99
+ <nav id="fileindex-section" class="section project-section">
100
+ <h3 class="section-header">Pages</h3>
101
+
102
+ <ul>
103
+
104
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
105
+
106
+ <li class="file"><a href="../README_rdoc.html">README</a>
107
+
108
+ </ul>
109
+ </nav>
110
+
111
+ <nav id="classindex-section" class="section project-section">
112
+ <h3 class="section-header">Class and Module Index</h3>
113
+
114
+ <ul class="link-list">
115
+
116
+ <li><a href="../YMDP.html">YMDP</a>
117
+
118
+ <li><a href="../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
119
+
120
+ <li><a href="../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
121
+
122
+ <li><a href="../YMDP/Base.html">YMDP::Base</a>
123
+
124
+ <li><a href="../YMDP/Compiler.html">YMDP::Compiler</a>
125
+
126
+ <li><a href="../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
127
+
128
+ <li><a href="../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
129
+
130
+ <li><a href="../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
131
+
132
+ <li><a href="../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
133
+
134
+ <li><a href="../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
135
+
136
+ <li><a href="../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
137
+
138
+ <li><a href="../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
139
+
140
+ <li><a href="../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
141
+
142
+ <li><a href="../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
143
+
144
+ <li><a href="../YMDP/Configuration.html">YMDP::Configuration</a>
145
+
146
+ <li><a href="../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
147
+
148
+ <li><a href="../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
149
+
150
+ <li><a href="../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
151
+
152
+ <li><a href="../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
153
+
154
+ <li><a href="../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
155
+
156
+ <li><a href="../YMDP/GitHelper.html">YMDP::GitHelper</a>
157
+
158
+ <li><a href="../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
159
+
160
+ <li><a href="../YMDP/View.html">YMDP::View</a>
161
+
162
+ <li><a href="../ActionView.html">ActionView</a>
163
+
164
+ <li><a href="../ActionView/Helpers.html">ActionView::Helpers</a>
165
+
166
+ <li><a href="../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
167
+
168
+ <li><a href="../Application.html">Application</a>
169
+
170
+ <li><a href="../Object.html">Object</a>
171
+
172
+ </ul>
173
+ </nav>
174
+
175
+ </div>
176
+ </nav>
177
+
178
+ <div id="documentation">
179
+ <h1 class="class">class YMDP::Base</h1>
180
+
181
+ <div id="description" class="description">
182
+
183
+ <p>Defines the global configuration options for all <a
184
+ href="../YMDP.html">YMDP</a> classes. This is the class that knows about
185
+ local settings such as server names, server application_ids, and
186
+ configuration options such as when compression or validation is required on
187
+ a view.</p>
188
+
189
+ <h2 id="label-Configuration"><a href="Configuration.html">Configuration</a></h2>
190
+
191
+ <p>Set configuration options as a block with the <code>configure</code>
192
+ command.</p>
193
+
194
+ <pre class="ruby"><span class="ruby-constant">YMDP</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">configure</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">config</span><span class="ruby-operator">|</span>
195
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">username</span> = <span class="ruby-string">&quot;malreynolds&quot;</span>
196
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">password</span> = <span class="ruby-string">&quot;firefly2591&quot;</span>
197
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">default_server</span> = <span class="ruby-string">&quot;staging&quot;</span>
198
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">host</span> = <span class="ruby-string">&quot;host&quot;</span>
199
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">production_server</span> = <span class="ruby-string">&quot;www&quot;</span>
200
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">growl</span> = <span class="ruby-keyword">true</span>
201
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">verbose</span> = <span class="ruby-keyword">false</span>
202
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">compress</span> = <span class="ruby-ivar">@compress</span>
203
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">validate</span> = <span class="ruby-ivar">@validate</span>
204
+
205
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">add_path</span>(:<span class="ruby-identifier">base_path</span>, <span class="ruby-ivar">@base_path</span>)
206
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">servers</span> = <span class="ruby-ivar">@servers</span>
207
+
208
+ <span class="ruby-identifier">config</span>.<span class="ruby-identifier">load_content_variables</span>(<span class="ruby-string">'content'</span>)
209
+ <span class="ruby-keyword">end</span>
210
+ </pre>
211
+
212
+ <p>These options are still evolving.</p>
213
+
214
+ </div><!-- description -->
215
+
216
+
217
+
218
+
219
+ <section id="5Buntitled-5D" class="documentation-section">
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+ <!-- Methods -->
229
+
230
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
231
+ <h3 class="section-header">Public Class Methods</h3>
232
+
233
+
234
+ <div id="method-c-base_path" class="method-detail ">
235
+
236
+ <div class="method-heading">
237
+ <span class="method-name">base_path</span><span
238
+ class="method-args">()</span>
239
+ <span class="method-click-advice">click to toggle source</span>
240
+ </div>
241
+
242
+
243
+ <div class="method-description">
244
+
245
+
246
+
247
+
248
+
249
+ <div class="method-source-code" id="base_path-source">
250
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 67</span>
251
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">base_path</span>
252
+ <span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">paths</span>[<span class="ruby-value">:base_path</span>]
253
+ <span class="ruby-keyword">end</span></pre>
254
+ </div><!-- base_path-source -->
255
+
256
+ </div>
257
+
258
+
259
+
260
+
261
+ </div><!-- base_path-method -->
262
+
263
+
264
+ <div id="method-c-configuration" class="method-detail ">
265
+
266
+ <div class="method-heading">
267
+ <span class="method-name">configuration</span><span
268
+ class="method-args">()</span>
269
+ <span class="method-click-advice">click to toggle source</span>
270
+ </div>
271
+
272
+
273
+ <div class="method-description">
274
+
275
+
276
+
277
+
278
+
279
+ <div class="method-source-code" id="configuration-source">
280
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 34</span>
281
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">configuration</span>
282
+ <span class="ruby-identifier">@@configuration</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">YMDP</span><span class="ruby-operator">::</span><span class="ruby-constant">Configuration</span><span class="ruby-operator">::</span><span class="ruby-constant">Setter</span>.<span class="ruby-identifier">new</span>
283
+ <span class="ruby-keyword">end</span></pre>
284
+ </div><!-- configuration-source -->
285
+
286
+ </div>
287
+
288
+
289
+
290
+
291
+ </div><!-- configuration-method -->
292
+
293
+
294
+ <div id="method-c-configure" class="method-detail ">
295
+
296
+ <div class="method-heading">
297
+ <span class="method-name">configure</span><span
298
+ class="method-args">() { |configuration| ... }</span>
299
+ <span class="method-click-advice">click to toggle source</span>
300
+ </div>
301
+
302
+
303
+ <div class="method-description">
304
+
305
+ <p>Configures global <a href="../YMDP.html">YMDP</a> settings. Sends a <a
306
+ href="Configuration/Setter.html">YMDP::Configuration::Setter</a> instance
307
+ to the block, which is used to define global settings.</p>
308
+
309
+
310
+
311
+ <div class="method-source-code" id="configure-source">
312
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 49</span>
313
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">configure</span>
314
+ <span class="ruby-keyword">yield</span> <span class="ruby-identifier">configuration</span>
315
+ <span class="ruby-keyword">end</span></pre>
316
+ </div><!-- configure-source -->
317
+
318
+ </div>
319
+
320
+
321
+
322
+
323
+ </div><!-- configure-method -->
324
+
325
+
326
+ <div id="method-c-display_path" class="method-detail ">
327
+
328
+ <div class="method-heading">
329
+ <span class="method-name">display_path</span><span
330
+ class="method-args">(path)</span>
331
+ <span class="method-click-advice">click to toggle source</span>
332
+ </div>
333
+
334
+
335
+ <div class="method-description">
336
+
337
+ <p>Parses out the <code>base_path</code> setting from a path to display it in
338
+ a less verbose way.</p>
339
+
340
+
341
+
342
+ <div class="method-source-code" id="display_path-source">
343
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 78</span>
344
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">display_path</span>(<span class="ruby-identifier">path</span>)
345
+ <span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>)
346
+ <span class="ruby-identifier">path</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-identifier">base_path</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-string">&quot;&quot;</span>)
347
+ <span class="ruby-keyword">end</span></pre>
348
+ </div><!-- display_path-source -->
349
+
350
+ </div>
351
+
352
+
353
+
354
+
355
+ </div><!-- display_path-method -->
356
+
357
+
358
+ </section><!-- public-class-method-details -->
359
+
360
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
361
+ <h3 class="section-header">Public Instance Methods</h3>
362
+
363
+
364
+ <div id="method-i-base_path" class="method-detail ">
365
+
366
+ <div class="method-heading">
367
+ <span class="method-name">base_path</span><span
368
+ class="method-args">()</span>
369
+ <span class="method-click-advice">click to toggle source</span>
370
+ </div>
371
+
372
+
373
+ <div class="method-description">
374
+
375
+
376
+
377
+
378
+
379
+ <div class="method-source-code" id="base_path-source">
380
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 71</span>
381
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">base_path</span>
382
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">base_path</span>
383
+ <span class="ruby-keyword">end</span></pre>
384
+ </div><!-- base_path-source -->
385
+
386
+ </div>
387
+
388
+
389
+
390
+
391
+ </div><!-- base_path-method -->
392
+
393
+
394
+ <div id="method-i-configuration" class="method-detail ">
395
+
396
+ <div class="method-heading">
397
+ <span class="method-name">configuration</span><span
398
+ class="method-args">()</span>
399
+ <span class="method-click-advice">click to toggle source</span>
400
+ </div>
401
+
402
+
403
+ <div class="method-description">
404
+
405
+
406
+
407
+
408
+
409
+ <div class="method-source-code" id="configuration-source">
410
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 42</span>
411
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">configuration</span>
412
+ <span class="ruby-identifier">@@configuration</span>
413
+ <span class="ruby-keyword">end</span></pre>
414
+ </div><!-- configuration-source -->
415
+
416
+ </div>
417
+
418
+
419
+
420
+
421
+ </div><!-- configuration-method -->
422
+
423
+
424
+ <div id="method-i-content_variables" class="method-detail ">
425
+
426
+ <div class="method-heading">
427
+ <span class="method-name">content_variables</span><span
428
+ class="method-args">()</span>
429
+ <span class="method-click-advice">click to toggle source</span>
430
+ </div>
431
+
432
+
433
+ <div class="method-description">
434
+
435
+
436
+
437
+
438
+
439
+ <div class="method-source-code" id="content_variables-source">
440
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 38</span>
441
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">content_variables</span>
442
+ <span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">content_variables</span>
443
+ <span class="ruby-keyword">end</span></pre>
444
+ </div><!-- content_variables-source -->
445
+
446
+ </div>
447
+
448
+
449
+
450
+
451
+ </div><!-- content_variables-method -->
452
+
453
+
454
+ <div id="method-i-display_path" class="method-detail ">
455
+
456
+ <div class="method-heading">
457
+ <span class="method-name">display_path</span><span
458
+ class="method-args">(path)</span>
459
+ <span class="method-click-advice">click to toggle source</span>
460
+ </div>
461
+
462
+
463
+ <div class="method-description">
464
+
465
+
466
+
467
+
468
+
469
+ <div class="method-source-code" id="display_path-source">
470
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 83</span>
471
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">display_path</span>(<span class="ruby-identifier">path</span>)
472
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">display_path</span>(<span class="ruby-identifier">path</span>)
473
+ <span class="ruby-keyword">end</span></pre>
474
+ </div><!-- display_path-source -->
475
+
476
+ </div>
477
+
478
+
479
+
480
+
481
+ </div><!-- display_path-method -->
482
+
483
+
484
+ <div id="method-i-paths" class="method-detail ">
485
+
486
+ <div class="method-heading">
487
+ <span class="method-name">paths</span><span
488
+ class="method-args">()</span>
489
+ <span class="method-click-advice">click to toggle source</span>
490
+ </div>
491
+
492
+
493
+ <div class="method-description">
494
+
495
+ <p>Returns the paths definition hash as an instance variable, making it
496
+ available to instances of any class derived from <a
497
+ href="Base.html">YMDP::Base</a>.</p>
498
+
499
+
500
+
501
+ <div class="method-source-code" id="paths-source">
502
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 63</span>
503
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">paths</span>
504
+ <span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">paths</span>
505
+ <span class="ruby-keyword">end</span></pre>
506
+ </div><!-- paths-source -->
507
+
508
+ </div>
509
+
510
+
511
+
512
+
513
+ </div><!-- paths-method -->
514
+
515
+
516
+ <div id="method-i-servers" class="method-detail ">
517
+
518
+ <div class="method-heading">
519
+ <span class="method-name">servers</span><span
520
+ class="method-args">()</span>
521
+ <span class="method-click-advice">click to toggle source</span>
522
+ </div>
523
+
524
+
525
+ <div class="method-description">
526
+
527
+ <p>Returns the server definition hash as an instance variable, making it
528
+ available to instances of any class derived from <a
529
+ href="Base.html">YMDP::Base</a>.</p>
530
+
531
+
532
+
533
+ <div class="method-source-code" id="servers-source">
534
+ <pre><span class="ruby-comment"># File lib/ymdp/base.rb, line 56</span>
535
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">servers</span>
536
+ <span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">servers</span>
537
+ <span class="ruby-keyword">end</span></pre>
538
+ </div><!-- servers-source -->
539
+
540
+ </div>
541
+
542
+
543
+
544
+
545
+ </div><!-- servers-method -->
546
+
547
+
548
+ </section><!-- public-instance-method-details -->
549
+
550
+ </section><!-- 5Buntitled-5D -->
551
+
552
+ </div><!-- documentation -->
553
+
554
+
555
+ <footer id="validator-badges">
556
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
557
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
558
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
559
+ </footer>
560
+