wee 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +286 -0
- data/Features +185 -0
- data/doc/rdoc/classes/ActionView.html +107 -0
- data/doc/rdoc/classes/ActionView/Base.html +133 -0
- data/doc/rdoc/classes/Array.html +7 -59
- data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
- data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
- data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
- data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
- data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
- data/doc/rdoc/classes/Enumerable.html +6 -6
- data/doc/rdoc/classes/Hash.html +120 -0
- data/doc/rdoc/classes/Main.html +58 -34
- data/doc/rdoc/classes/Object.html +12 -12
- data/doc/rdoc/classes/OgScaffolder.html +165 -166
- data/doc/rdoc/classes/OgScaffolder/Editor.html +112 -112
- data/doc/rdoc/classes/String.html +7 -59
- data/doc/rdoc/classes/Struct.html +14 -14
- data/doc/rdoc/classes/Wee.html +70 -6
- data/doc/rdoc/classes/Wee/AbstractSession.html +502 -0
- data/doc/rdoc/classes/Wee/AnswerDecoration.html +11 -11
- data/doc/rdoc/classes/Wee/Application.html +139 -84
- data/doc/rdoc/classes/Wee/Brush.html +21 -18
- data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +90 -17
- data/doc/rdoc/classes/Wee/Brush/CheckboxTag.html +162 -0
- data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/FormTag.html +41 -17
- data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +112 -86
- data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
- data/doc/rdoc/classes/Wee/Brush/HiddenInputTag.html +160 -0
- data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +15 -15
- data/doc/rdoc/classes/Wee/Brush/ImageTag.html +21 -21
- data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag.html +234 -0
- data/doc/rdoc/classes/Wee/Brush/RadioButtonTag/RadioGroup.html +207 -0
- data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +124 -28
- data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
- data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
- data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
- data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +48 -15
- data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
- data/doc/rdoc/classes/Wee/CallbackRegistry.html +38 -38
- data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
- data/doc/rdoc/classes/Wee/CanvasMixin.html +225 -0
- data/doc/rdoc/classes/Wee/Component.html +202 -201
- data/doc/rdoc/classes/Wee/Component/OnAnswer.html +7 -7
- data/doc/rdoc/classes/Wee/ComponentDispatcher.html +289 -0
- data/doc/rdoc/classes/Wee/ComponentRunner.html +321 -0
- data/doc/rdoc/classes/Wee/Context.html +63 -3
- data/doc/rdoc/classes/Wee/Decoration.html +45 -45
- data/doc/rdoc/classes/Wee/Delegate.html +30 -30
- data/doc/rdoc/classes/Wee/DupReplaceSnapshotMixin.html +164 -0
- data/doc/rdoc/classes/Wee/ErrorResponse.html +16 -16
- data/doc/rdoc/classes/Wee/Examples.html +114 -0
- data/doc/rdoc/classes/Wee/Examples/Calculator.html +319 -0
- data/doc/rdoc/classes/Wee/Examples/Counter.html +289 -0
- data/doc/rdoc/classes/Wee/Examples/EditableCounter.html +210 -0
- data/doc/rdoc/classes/Wee/Examples/Window.html +346 -0
- data/doc/rdoc/classes/Wee/FastCGIAdaptor.html +227 -0
- data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
- data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
- data/doc/rdoc/classes/Wee/HtmlCanvasRenderer.html +1230 -0
- data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
- data/doc/rdoc/classes/Wee/IdGenerator.html +148 -0
- data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +27 -14
- data/doc/rdoc/classes/Wee/LoginDecoration.html +261 -0
- data/doc/rdoc/classes/Wee/Md5IdGenerator.html +14 -14
- data/doc/rdoc/classes/Wee/MessageBox.html +14 -14
- data/doc/rdoc/classes/Wee/Nitro.html +114 -0
- data/doc/rdoc/classes/Wee/Nitro/ControllerClassMixin.html +192 -0
- data/doc/rdoc/classes/Wee/Nitro/ControllerMixin.html +345 -0
- data/doc/rdoc/classes/Wee/Nitro/FormTag.html +155 -0
- data/doc/rdoc/classes/Wee/Nitro/HtmlCanvasRenderer.html +178 -0
- data/doc/rdoc/classes/Wee/Page.html +4 -0
- data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
- data/doc/rdoc/classes/Wee/PagelessApplication.html +13 -11
- data/doc/rdoc/classes/Wee/PagelessComponentDriver.html +296 -0
- data/doc/rdoc/classes/Wee/PagelessRequest.html +52 -21
- data/doc/rdoc/classes/Wee/PagelessSession.html +130 -91
- data/doc/rdoc/classes/Wee/Pager.html +534 -0
- data/doc/rdoc/classes/Wee/Presenter.html +482 -298
- data/doc/rdoc/classes/Wee/Rails.html +114 -0
- data/doc/rdoc/classes/Wee/Rails/ControllerClassMixin.html +192 -0
- data/doc/rdoc/classes/Wee/Rails/ControllerMixin.html +342 -0
- data/doc/rdoc/classes/Wee/Rails/FormTag.html +155 -0
- data/doc/rdoc/classes/Wee/Rails/HtmlCanvasRenderer.html +177 -0
- data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
- data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
- data/doc/rdoc/classes/Wee/Renderer.html +208 -0
- data/doc/rdoc/classes/Wee/RenderingContext.html +175 -3
- data/doc/rdoc/classes/Wee/Request.html +197 -46
- data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
- data/doc/rdoc/classes/Wee/Response.html +44 -43
- data/doc/rdoc/classes/Wee/Session.html +296 -402
- data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +14 -14
- data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
- data/doc/rdoc/classes/Wee/Utils.html +22 -22
- data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
- data/doc/rdoc/classes/Wee/ValueHolder.html +19 -19
- data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +72 -46
- data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/INSTALL.html +1 -1
- data/doc/rdoc/files/README.html +8 -12
- data/doc/rdoc/files/lib/cache/cache_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/abstractsession_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/adaptors/fastcgi_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/adaptors/nitro_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/adaptors/rails_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/component_dispatcher_rb.html +108 -0
- data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/login_decoration_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components/pager_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
- data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/continuation_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/componentrunner_rb.html +110 -0
- data/doc/rdoc/files/lib/wee/core/context_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/decoration_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/idgen_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/page_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/renderer_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/core/snapshot_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/core/valueholder_rb.html +2 -2
- data/doc/rdoc/files/lib/wee/core_ext_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/core_rb.html +7 -14
- data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/databases/og_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/examples/calculator_rb.html +107 -0
- data/doc/rdoc/files/lib/wee/examples/counter_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/examples/editable_counter_rb.html +114 -0
- data/doc/rdoc/files/lib/wee/examples/window_rb.html +101 -0
- data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/page_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/pageless/application_rb.html +8 -1
- data/doc/rdoc/files/lib/wee/pageless/request_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/pageless/session_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/pageless_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/request_rb.html +5 -4
- data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/response_rb.html +2 -1
- data/doc/rdoc/files/lib/wee/session_rb.html +2 -3
- data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +2 -2
- data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/snapshot_ext_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/template_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
- data/doc/rdoc/files/lib/wee/utils_rb.html +1 -1
- data/doc/rdoc/files/lib/wee_rb.html +5 -3
- data/doc/rdoc/fr_class_index.html +34 -2
- data/doc/rdoc/fr_file_index.html +17 -1
- data/doc/rdoc/fr_method_index.html +464 -314
- data/examples/ajax/ajax.rb +1 -1
- data/examples/demo.rb +47 -0
- data/examples/{calendar.rb → demo/calendar.rb} +89 -97
- data/examples/{example.rb → demo/example.rb} +17 -97
- data/examples/dispatcher.rb +37 -0
- data/examples/draw.rb +14 -11
- data/examples/nitro/run.rb +42 -0
- data/examples/radio.rb +44 -0
- data/examples/test.rb +3 -27
- data/lib/wee.rb +15 -3
- data/lib/wee/adaptors/nitro.rb +154 -0
- data/lib/wee/adaptors/rails.rb +154 -0
- data/lib/wee/application.rb +22 -20
- data/lib/wee/components.rb +3 -0
- data/lib/wee/components/component_dispatcher.rb +46 -0
- data/lib/wee/components/login_decoration.rb +35 -0
- data/lib/wee/components/messagebox.rb +2 -2
- data/lib/wee/components/pager.rb +102 -0
- data/lib/wee/continuation/core/component.rb +13 -12
- data/lib/wee/continuation/session.rb +11 -19
- data/lib/wee/core.rb +8 -7
- data/lib/wee/core/component.rb +8 -28
- data/lib/wee/core/componentrunner.rb +73 -0
- data/lib/wee/core/context.rb +27 -0
- data/lib/wee/core/idgen.rb +5 -0
- data/lib/wee/core/page.rb +1 -0
- data/lib/wee/core/presenter.rb +10 -126
- data/lib/wee/core/renderer.rb +23 -0
- data/lib/wee/core_ext.rb +122 -0
- data/lib/wee/databases/og/scaffolder.rb +0 -1
- data/lib/wee/examples/calculator.rb +70 -0
- data/lib/wee/examples/counter.rb +33 -0
- data/lib/wee/examples/editable_counter.rb +31 -0
- data/{examples → lib/wee/examples}/window.rb +29 -23
- data/lib/wee/idgen/md5.rb +1 -1
- data/lib/wee/idgen/simple.rb +1 -1
- data/lib/wee/pageless/session.rb +2 -3
- data/lib/wee/renderer/html/brushes.rb +142 -22
- data/lib/wee/renderer/html/canvas.rb +57 -19
- data/lib/wee/response.rb +3 -2
- data/lib/wee/session.rb +10 -54
- data/lib/wee/skeleton/og/components/main.rb +5 -1
- data/lib/wee/skeleton/og/conf/db.rb +1 -1
- data/lib/wee/snapshot_ext.rb +4 -10
- data/lib/wee/template.rb +19 -5
- data/lib/wee/utils/helper.rb +2 -2
- metadata +90 -13
- data/examples/calculator.rb +0 -67
- data/lib/wee/context.rb +0 -2
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000215">call</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,21 +108,21 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Instance methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000215" class="method-detail">
|
112
|
+
<a name="M000215"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000215" class="method-signature">
|
116
116
|
<span class="method-name">call</span><span class="method-args">(input)</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000215-source">
|
124
124
|
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
125
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 368</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">input</span>)
|
127
127
|
<span class="ruby-identifier">choosen</span> = <span class="ruby-identifier">input</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">idx</span><span class="ruby-operator">|</span>
|
128
128
|
<span class="ruby-identifier">idx</span> = <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">idx</span>)
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000253">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,21 +108,21 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Class methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000253" class="method-detail">
|
112
|
+
<a name="M000253"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000253" class="method-signature">
|
116
116
|
<span class="method-name">new</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000253-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000253-source">
|
124
124
|
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
125
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 323</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
127
127
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'option'</span>)
|
128
128
|
<span class="ruby-keyword kw">end</span>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000218">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -121,21 +121,21 @@
|
|
121
121
|
<div id="methods">
|
122
122
|
<h3 class="section-bar">Public Class methods</h3>
|
123
123
|
|
124
|
-
<div id="method-
|
125
|
-
<a name="
|
124
|
+
<div id="method-M000218" class="method-detail">
|
125
|
+
<a name="M000218"></a>
|
126
126
|
|
127
127
|
<div class="method-heading">
|
128
|
-
<a href="#
|
128
|
+
<a href="#M000218" class="method-signature">
|
129
129
|
<span class="method-name">new</span><span class="method-args">()</span>
|
130
130
|
</a>
|
131
131
|
</div>
|
132
132
|
|
133
133
|
<div class="method-description">
|
134
134
|
<p><a class="source-toggle" href="#"
|
135
|
-
onclick="toggleCode('
|
136
|
-
<div class="method-source-code" id="
|
135
|
+
onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
|
136
|
+
<div class="method-source-code" id="M000218-source">
|
137
137
|
<pre>
|
138
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
138
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 499</span>
|
139
139
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
140
140
|
<span class="ruby-keyword kw">super</span>
|
141
141
|
<span class="ruby-identifier">type</span>(<span class="ruby-value str">'submit'</span>)
|
@@ -86,8 +86,8 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000198">align_top</a>
|
90
|
+
<a href="#M000197">new</a>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
|
@@ -109,21 +109,21 @@
|
|
109
109
|
<div id="methods">
|
110
110
|
<h3 class="section-bar">Public Class methods</h3>
|
111
111
|
|
112
|
-
<div id="method-
|
113
|
-
<a name="
|
112
|
+
<div id="method-M000197" class="method-detail">
|
113
|
+
<a name="M000197"></a>
|
114
114
|
|
115
115
|
<div class="method-heading">
|
116
|
-
<a href="#
|
116
|
+
<a href="#M000197" class="method-signature">
|
117
117
|
<span class="method-name">new</span><span class="method-args">()</span>
|
118
118
|
</a>
|
119
119
|
</div>
|
120
120
|
|
121
121
|
<div class="method-description">
|
122
122
|
<p><a class="source-toggle" href="#"
|
123
|
-
onclick="toggleCode('
|
124
|
-
<div class="method-source-code" id="
|
123
|
+
onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
|
124
|
+
<div class="method-source-code" id="M000197-source">
|
125
125
|
<pre>
|
126
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
126
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 528</span>
|
127
127
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
128
128
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'td'</span>)
|
129
129
|
<span class="ruby-keyword kw">end</span>
|
@@ -134,21 +134,21 @@
|
|
134
134
|
|
135
135
|
<h3 class="section-bar">Public Instance methods</h3>
|
136
136
|
|
137
|
-
<div id="method-
|
138
|
-
<a name="
|
137
|
+
<div id="method-M000198" class="method-detail">
|
138
|
+
<a name="M000198"></a>
|
139
139
|
|
140
140
|
<div class="method-heading">
|
141
|
-
<a href="#
|
141
|
+
<a href="#M000198" class="method-signature">
|
142
142
|
<span class="method-name">align_top</span><span class="method-args">()</span>
|
143
143
|
</a>
|
144
144
|
</div>
|
145
145
|
|
146
146
|
<div class="method-description">
|
147
147
|
<p><a class="source-toggle" href="#"
|
148
|
-
onclick="toggleCode('
|
149
|
-
<div class="method-source-code" id="
|
148
|
+
onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
|
149
|
+
<div class="method-source-code" id="M000198-source">
|
150
150
|
<pre>
|
151
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
151
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 532</span>
|
152
152
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_top</span>
|
153
153
|
<span class="ruby-identifier">html_attr</span>(<span class="ruby-value str">'align'</span>, <span class="ruby-value str">'top'</span>)
|
154
154
|
<span class="ruby-keyword kw">end</span>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000196">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,21 +108,21 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Class methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000196" class="method-detail">
|
112
|
+
<a name="M000196"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000196" class="method-signature">
|
116
116
|
<span class="method-name">new</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000196-source">
|
124
124
|
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
125
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 538</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
127
127
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'th'</span>)
|
128
128
|
<span class="ruby-keyword kw">end</span>
|
@@ -86,12 +86,12 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
89
|
+
<a href="#M000203">align_top</a>
|
90
|
+
<a href="#M000204">columns</a>
|
91
|
+
<a href="#M000205">headings</a>
|
92
|
+
<a href="#M000202">new</a>
|
93
|
+
<a href="#M000207">spacer</a>
|
94
|
+
<a href="#M000206">spanning_column</a>
|
95
95
|
</div>
|
96
96
|
</div>
|
97
97
|
|
@@ -113,21 +113,21 @@
|
|
113
113
|
<div id="methods">
|
114
114
|
<h3 class="section-bar">Public Class methods</h3>
|
115
115
|
|
116
|
-
<div id="method-
|
117
|
-
<a name="
|
116
|
+
<div id="method-M000202" class="method-detail">
|
117
|
+
<a name="M000202"></a>
|
118
118
|
|
119
119
|
<div class="method-heading">
|
120
|
-
<a href="#
|
120
|
+
<a href="#M000202" class="method-signature">
|
121
121
|
<span class="method-name">new</span><span class="method-args">()</span>
|
122
122
|
</a>
|
123
123
|
</div>
|
124
124
|
|
125
125
|
<div class="method-description">
|
126
126
|
<p><a class="source-toggle" href="#"
|
127
|
-
onclick="toggleCode('
|
128
|
-
<div class="method-source-code" id="
|
127
|
+
onclick="toggleCode('M000202-source');return false;">[Source]</a></p>
|
128
|
+
<div class="method-source-code" id="M000202-source">
|
129
129
|
<pre>
|
130
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
130
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 232</span>
|
131
131
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
132
132
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'tr'</span>)
|
133
133
|
<span class="ruby-keyword kw">end</span>
|
@@ -138,21 +138,21 @@
|
|
138
138
|
|
139
139
|
<h3 class="section-bar">Public Instance methods</h3>
|
140
140
|
|
141
|
-
<div id="method-
|
142
|
-
<a name="
|
141
|
+
<div id="method-M000203" class="method-detail">
|
142
|
+
<a name="M000203"></a>
|
143
143
|
|
144
144
|
<div class="method-heading">
|
145
|
-
<a href="#
|
145
|
+
<a href="#M000203" class="method-signature">
|
146
146
|
<span class="method-name">align_top</span><span class="method-args">()</span>
|
147
147
|
</a>
|
148
148
|
</div>
|
149
149
|
|
150
150
|
<div class="method-description">
|
151
151
|
<p><a class="source-toggle" href="#"
|
152
|
-
onclick="toggleCode('
|
153
|
-
<div class="method-source-code" id="
|
152
|
+
onclick="toggleCode('M000203-source');return false;">[Source]</a></p>
|
153
|
+
<div class="method-source-code" id="M000203-source">
|
154
154
|
<pre>
|
155
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
155
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 236</span>
|
156
156
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">align_top</span>
|
157
157
|
<span class="ruby-identifier">html_attr</span>(<span class="ruby-value str">'align'</span>, <span class="ruby-value str">'top'</span>)
|
158
158
|
<span class="ruby-keyword kw">end</span>
|
@@ -161,21 +161,21 @@
|
|
161
161
|
</div>
|
162
162
|
</div>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000204" class="method-detail">
|
165
|
+
<a name="M000204"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000204" class="method-signature">
|
169
169
|
<span class="method-name">columns</span><span class="method-args">(*cols, &block)</span>
|
170
170
|
</a>
|
171
171
|
</div>
|
172
172
|
|
173
173
|
<div class="method-description">
|
174
174
|
<p><a class="source-toggle" href="#"
|
175
|
-
onclick="toggleCode('
|
176
|
-
<div class="method-source-code" id="
|
175
|
+
onclick="toggleCode('M000204-source');return false;">[Source]</a></p>
|
176
|
+
<div class="method-source-code" id="M000204-source">
|
177
177
|
<pre>
|
178
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
178
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 240</span>
|
179
179
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">columns</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">cols</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
180
180
|
<span class="ruby-identifier">with</span> {
|
181
181
|
<span class="ruby-identifier">cols</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">col</span><span class="ruby-operator">|</span>
|
@@ -194,21 +194,21 @@
|
|
194
194
|
</div>
|
195
195
|
</div>
|
196
196
|
|
197
|
-
<div id="method-
|
198
|
-
<a name="
|
197
|
+
<div id="method-M000205" class="method-detail">
|
198
|
+
<a name="M000205"></a>
|
199
199
|
|
200
200
|
<div class="method-heading">
|
201
|
-
<a href="#
|
201
|
+
<a href="#M000205" class="method-signature">
|
202
202
|
<span class="method-name">headings</span><span class="method-args">(*headers, &block)</span>
|
203
203
|
</a>
|
204
204
|
</div>
|
205
205
|
|
206
206
|
<div class="method-description">
|
207
207
|
<p><a class="source-toggle" href="#"
|
208
|
-
onclick="toggleCode('
|
209
|
-
<div class="method-source-code" id="
|
208
|
+
onclick="toggleCode('M000205-source');return false;">[Source]</a></p>
|
209
|
+
<div class="method-source-code" id="M000205-source">
|
210
210
|
<pre>
|
211
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
211
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 254</span>
|
212
212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">headings</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">headers</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
213
213
|
<span class="ruby-identifier">with</span> {
|
214
214
|
<span class="ruby-identifier">headers</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">header</span><span class="ruby-operator">|</span>
|
@@ -227,21 +227,21 @@
|
|
227
227
|
</div>
|
228
228
|
</div>
|
229
229
|
|
230
|
-
<div id="method-
|
231
|
-
<a name="
|
230
|
+
<div id="method-M000207" class="method-detail">
|
231
|
+
<a name="M000207"></a>
|
232
232
|
|
233
233
|
<div class="method-heading">
|
234
|
-
<a href="#
|
234
|
+
<a href="#M000207" class="method-signature">
|
235
235
|
<span class="method-name">spacer</span><span class="method-args">()</span>
|
236
236
|
</a>
|
237
237
|
</div>
|
238
238
|
|
239
239
|
<div class="method-description">
|
240
240
|
<p><a class="source-toggle" href="#"
|
241
|
-
onclick="toggleCode('
|
242
|
-
<div class="method-source-code" id="
|
241
|
+
onclick="toggleCode('M000207-source');return false;">[Source]</a></p>
|
242
|
+
<div class="method-source-code" id="M000207-source">
|
243
243
|
<pre>
|
244
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
244
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 274</span>
|
245
245
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spacer</span>
|
246
246
|
<span class="ruby-identifier">with</span> {
|
247
247
|
<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">table_data</span> { <span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">space</span> }
|
@@ -252,21 +252,21 @@
|
|
252
252
|
</div>
|
253
253
|
</div>
|
254
254
|
|
255
|
-
<div id="method-
|
256
|
-
<a name="
|
255
|
+
<div id="method-M000206" class="method-detail">
|
256
|
+
<a name="M000206"></a>
|
257
257
|
|
258
258
|
<div class="method-heading">
|
259
|
-
<a href="#
|
259
|
+
<a href="#M000206" class="method-signature">
|
260
260
|
<span class="method-name">spanning_column</span><span class="method-args">(str, colspan)</span>
|
261
261
|
</a>
|
262
262
|
</div>
|
263
263
|
|
264
264
|
<div class="method-description">
|
265
265
|
<p><a class="source-toggle" href="#"
|
266
|
-
onclick="toggleCode('
|
267
|
-
<div class="method-source-code" id="
|
266
|
+
onclick="toggleCode('M000206-source');return false;">[Source]</a></p>
|
267
|
+
<div class="method-source-code" id="M000206-source">
|
268
268
|
<pre>
|
269
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
269
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 268</span>
|
270
270
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spanning_column</span>(<span class="ruby-identifier">str</span>, <span class="ruby-identifier">colspan</span>)
|
271
271
|
<span class="ruby-identifier">with</span> {
|
272
272
|
<span class="ruby-ivar">@canvas</span>.<span class="ruby-identifier">table_data</span>.<span class="ruby-identifier">col_span</span>(<span class="ruby-identifier">colspan</span>).<span class="ruby-identifier">with</span>(<span class="ruby-identifier">str</span>)
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000195">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,21 +108,21 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Class methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000195" class="method-detail">
|
112
|
+
<a name="M000195"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000195" class="method-signature">
|
116
116
|
<span class="method-name">new</span><span class="method-args">()</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000195-source">
|
124
124
|
<pre>
|
125
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
125
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 226</span>
|
126
126
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
127
127
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'table'</span>)
|
128
128
|
<span class="ruby-keyword kw">end</span>
|
@@ -86,8 +86,9 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
89
|
+
<a href="#M000190">new</a>
|
90
|
+
<a href="#M000191">value</a>
|
91
|
+
<a href="#M000192">with</a>
|
91
92
|
</div>
|
92
93
|
</div>
|
93
94
|
|
@@ -122,21 +123,21 @@
|
|
122
123
|
<div id="methods">
|
123
124
|
<h3 class="section-bar">Public Class methods</h3>
|
124
125
|
|
125
|
-
<div id="method-
|
126
|
-
<a name="
|
126
|
+
<div id="method-M000190" class="method-detail">
|
127
|
+
<a name="M000190"></a>
|
127
128
|
|
128
129
|
<div class="method-heading">
|
129
|
-
<a href="#
|
130
|
+
<a href="#M000190" class="method-signature">
|
130
131
|
<span class="method-name">new</span><span class="method-args">()</span>
|
131
132
|
</a>
|
132
133
|
</div>
|
133
134
|
|
134
135
|
<div class="method-description">
|
135
136
|
<p><a class="source-toggle" href="#"
|
136
|
-
onclick="toggleCode('
|
137
|
-
<div class="method-source-code" id="
|
137
|
+
onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
|
138
|
+
<div class="method-source-code" id="M000190-source">
|
138
139
|
<pre>
|
139
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
140
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 295</span>
|
140
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
141
142
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-value str">'textarea'</span>)
|
142
143
|
<span class="ruby-keyword kw">end</span>
|
@@ -147,23 +148,55 @@
|
|
147
148
|
|
148
149
|
<h3 class="section-bar">Public Instance methods</h3>
|
149
150
|
|
150
|
-
<div id="method-
|
151
|
-
<a name="
|
151
|
+
<div id="method-M000191" class="method-detail">
|
152
|
+
<a name="M000191"></a>
|
152
153
|
|
153
154
|
<div class="method-heading">
|
154
|
-
<a href="#
|
155
|
+
<a href="#M000191" class="method-signature">
|
156
|
+
<span class="method-name">value</span><span class="method-args">(val)</span>
|
157
|
+
</a>
|
158
|
+
</div>
|
159
|
+
|
160
|
+
<div class="method-description">
|
161
|
+
<p><a class="source-toggle" href="#"
|
162
|
+
onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
|
163
|
+
<div class="method-source-code" id="M000191-source">
|
164
|
+
<pre>
|
165
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 304</span>
|
166
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">value</span>(<span class="ruby-identifier">val</span>)
|
167
|
+
<span class="ruby-ivar">@value</span> = <span class="ruby-identifier">val</span>
|
168
|
+
<span class="ruby-keyword kw">self</span>
|
169
|
+
<span class="ruby-keyword kw">end</span>
|
170
|
+
</pre>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="method-M000192" class="method-detail">
|
176
|
+
<a name="M000192"></a>
|
177
|
+
|
178
|
+
<div class="method-heading">
|
179
|
+
<a href="#M000192" class="method-signature">
|
155
180
|
<span class="method-name">with</span><span class="method-args">(*args, &block)</span>
|
156
181
|
</a>
|
157
182
|
</div>
|
158
183
|
|
159
184
|
<div class="method-description">
|
160
185
|
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('
|
162
|
-
<div class="method-source-code" id="
|
186
|
+
onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
|
187
|
+
<div class="method-source-code" id="M000192-source">
|
163
188
|
<pre>
|
164
|
-
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line
|
189
|
+
<span class="ruby-comment cmt"># File lib/wee/renderer/html/brushes.rb, line 309</span>
|
165
190
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
166
|
-
<span class="ruby-keyword kw">
|
191
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@value</span>
|
192
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span> <span class="ruby-keyword kw">or</span> <span class="ruby-operator">!</span><span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span>
|
193
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"please use either method 'value' or 'with'"</span>
|
194
|
+
<span class="ruby-keyword kw">else</span>
|
195
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-ivar">@value</span>)
|
196
|
+
<span class="ruby-keyword kw">end</span>
|
197
|
+
<span class="ruby-keyword kw">else</span>
|
198
|
+
<span class="ruby-keyword kw">super</span>
|
199
|
+
<span class="ruby-keyword kw">end</span>
|
167
200
|
<span class="ruby-keyword kw">end</span>
|
168
201
|
</pre>
|
169
202
|
</div>
|