ovto 0.2.3 → 0.3.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.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +6 -6
- data/README.md +7 -5
- data/Rakefile +2 -0
- data/book/api/actions.md +2 -2
- data/book/api/app.md +6 -6
- data/book/api/component.md +6 -6
- data/book/guides/debugging.md +9 -0
- data/book/guides/tutorial.md +12 -12
- data/docs/api/Ovto.html +168 -20
- data/docs/api/Ovto/Actions.html +1 -1
- data/docs/api/Ovto/App.html +1 -1
- data/docs/api/Ovto/Component.html +1 -1
- data/docs/api/Ovto/Component/MoreThanOneNode.html +1 -1
- data/docs/api/Ovto/Runtime.html +1 -1
- data/docs/api/Ovto/State.html +1 -1
- data/docs/api/Ovto/State/MissingValue.html +1 -1
- data/docs/api/Ovto/State/UnknownKey.html +1 -1
- data/docs/api/Ovto/WiredActions.html +1 -1
- data/docs/api/_index.html +1 -1
- data/docs/api/actions.html +4 -4
- data/docs/api/app.html +8 -8
- data/docs/api/component.html +8 -8
- data/docs/api/fetch.html +392 -0
- data/docs/api/file.README.html +10 -8
- data/docs/api/index.html +10 -8
- data/docs/api/method_list.html +59 -35
- data/docs/api/state.html +2 -2
- data/docs/api/top-level-namespace.html +1 -1
- data/docs/gitbook/gitbook.js +2 -2
- data/docs/gitbook/theme.js +1 -1
- data/docs/guides/debugging.html +7 -2
- data/docs/guides/development.html +2 -2
- data/docs/guides/tutorial.html +14 -14
- data/docs/index.html +12 -68
- data/docs/search_index.json +1 -1
- data/{example → examples}/sinatra/Gemfile +0 -0
- data/{example → examples}/sinatra/Gemfile.lock +10 -22
- data/{example → examples}/sinatra/README.md +1 -1
- data/{example → examples}/sinatra/app.rb +0 -0
- data/{example → examples}/sinatra/config.ru +0 -9
- data/{example → examples}/sinatra/ovto/app.rb +2 -2
- data/{example → examples}/sinatra/public/style.css +0 -0
- data/{example → examples}/sinatra/public/todomvc-app-css_index.css +0 -0
- data/{example → examples}/sinatra/public/todomvc-common_base.css +0 -0
- data/{example → examples}/sinatra/views/index.erb +1 -1
- data/{example → examples}/static/Gemfile +0 -0
- data/{example → examples}/static/Gemfile.lock +2 -2
- data/{example → examples}/static/README.md +1 -1
- data/{example → examples}/static/Rakefile +0 -0
- data/{example → examples}/static/app.rb +2 -2
- data/{example → examples}/static/index.html +1 -1
- data/index.html +44 -0
- data/lib/ovto.rb +8 -0
- data/lib/ovto/app.rb +18 -1
- data/lib/ovto/component.rb +2 -1
- data/lib/ovto/version.rb +1 -1
- data/ovtologo.odg +0 -0
- data/ovtologo.png +0 -0
- data/website/screen.css +18 -0
- metadata +23 -19
- data/example/static/app.js +0 -24808
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbe9fd351db11fdad3445d8a44c356e4343c789a4ce0521cbfc1b70d5c72eed1
|
4
|
+
data.tar.gz: 9c37eaf812a82accfc9e9da7ba6c1e5bea62c90a27b5965f13ddd514a38cdba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35caabda59fef24ff185b829ce794c4e4cc23645790c33ba544245ecc0fd66d4d78a005190afbba9d07c9edf5e9b33bd62fb4a5496234c1ede06fd14e31d4565
|
7
|
+
data.tar.gz: b5654ce1ffed9aba99eafc4905828bdd525b4b3f461667fc013058ad943455fab6e332e0a20808f779a3128f56225907b89c2c3b0e1daf0139b9ff1cf4a03d92
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ovto (0.
|
4
|
+
ovto (0.3.0)
|
5
5
|
opal (~> 0.11)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
ast (2.4.0)
|
11
|
-
concurrent-ruby (1.1.
|
11
|
+
concurrent-ruby (1.1.4)
|
12
12
|
hike (1.2.3)
|
13
|
-
opal (0.11.
|
13
|
+
opal (0.11.4)
|
14
14
|
ast (>= 2.3.0)
|
15
15
|
hike (~> 1.2)
|
16
16
|
parser (= 2.3.3.1)
|
17
17
|
sourcemap (~> 0.1.0)
|
18
|
-
opal-rspec (0.6.
|
18
|
+
opal-rspec (0.6.2)
|
19
19
|
opal (>= 0.10.0, < 0.12)
|
20
20
|
opal-sprockets (0.4.2.0.11.0.3.1)
|
21
21
|
opal (~> 0.11.0)
|
@@ -24,12 +24,12 @@ GEM
|
|
24
24
|
parser (2.3.3.1)
|
25
25
|
ast (~> 2.2)
|
26
26
|
rack (2.0.6)
|
27
|
-
rake (12.3.
|
27
|
+
rake (12.3.2)
|
28
28
|
sourcemap (0.1.1)
|
29
29
|
sprockets (3.7.2)
|
30
30
|
concurrent-ruby (~> 1.0)
|
31
31
|
rack (> 1, < 3)
|
32
|
-
tilt (2.0.
|
32
|
+
tilt (2.0.9)
|
33
33
|
yard (0.9.16)
|
34
34
|
|
35
35
|
PLATFORMS
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Ovto
|
2
2
|
|
3
|
-
Client-side web framework for Opal
|
3
|
+
Client-side web framework for Opal
|
4
|
+
|
5
|
+

|
4
6
|
|
5
7
|
## Documents
|
6
8
|
|
@@ -34,7 +36,7 @@ class MyApp < Ovto::App
|
|
34
36
|
end
|
35
37
|
end
|
36
38
|
|
37
|
-
class
|
39
|
+
class MainComponent < Ovto::Component
|
38
40
|
def render(state:)
|
39
41
|
o 'div' do
|
40
42
|
o 'span', 'Celcius:'
|
@@ -54,7 +56,7 @@ class MyApp < Ovto::App
|
|
54
56
|
end
|
55
57
|
end
|
56
58
|
|
57
|
-
MyApp.run(id: 'ovto
|
59
|
+
MyApp.run(id: 'ovto')
|
58
60
|
```
|
59
61
|
|
60
62
|
See the [book](https://yhara.github.io/ovto/guides/tutorial.html) for details.
|
@@ -63,12 +65,12 @@ See the [book](https://yhara.github.io/ovto/guides/tutorial.html) for details.
|
|
63
65
|
|
64
66
|
### Static
|
65
67
|
|
66
|
-
[./
|
68
|
+
[./examples/static](./examples/static) demonstrates how to convert Ovto app
|
67
69
|
into a .js file.
|
68
70
|
|
69
71
|
### Ovto + Sinatra
|
70
72
|
|
71
|
-
[./
|
73
|
+
[./examples/sinatra](./examples/sinatra) demonstrates how to serve Ovto app
|
72
74
|
from Sinatra.
|
73
75
|
|
74
76
|
### Ovto + Rails
|
data/Rakefile
CHANGED
data/book/api/actions.md
CHANGED
@@ -24,7 +24,7 @@ class MyApp < Ovto::App
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
class
|
27
|
+
class MainComponent < Ovto::Component
|
28
28
|
def render(state:)
|
29
29
|
o 'span', state.count
|
30
30
|
o 'button', onclick: ->{ actions.increment(by: 1) }
|
@@ -32,7 +32,7 @@ class MyApp < Ovto::App
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
MyApp.run(id: 'ovto
|
35
|
+
MyApp.run(id: 'ovto')
|
36
36
|
```
|
37
37
|
|
38
38
|
## Calling actions
|
data/book/api/app.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Ovto::App
|
2
2
|
|
3
3
|
First of all, you need to define a subclass of `Ovto::App` and define `class State`,
|
4
|
-
`class Actions` and `class
|
4
|
+
`class Actions` and `class MainComponent` in it.
|
5
5
|
|
6
6
|
## Example
|
7
7
|
|
@@ -18,14 +18,14 @@ class MyApp < Ovto::App
|
|
18
18
|
class Actions < Ovto::Actions
|
19
19
|
end
|
20
20
|
|
21
|
-
class
|
21
|
+
class MainComponent < Ovto::Component
|
22
22
|
def render(state:)
|
23
23
|
o 'input', type: 'button', value: 'Hello'
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
MyApp.run(id: 'ovto
|
28
|
+
MyApp.run(id: 'ovto')
|
29
29
|
```
|
30
30
|
|
31
31
|
It renders a button and does nothing else. Let's have some fun:
|
@@ -48,7 +48,7 @@ class MyApp < Ovto::App
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
class
|
51
|
+
class MainComponent < Ovto::Component
|
52
52
|
def render(state:)
|
53
53
|
o 'input', {
|
54
54
|
type: 'button',
|
@@ -60,7 +60,7 @@ class MyApp < Ovto::App
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
MyApp.run(id: 'ovto
|
63
|
+
MyApp.run(id: 'ovto')
|
64
64
|
```
|
65
65
|
|
66
66
|
Here we added `color_idx` to app state and `update_color` action to change it.
|
@@ -82,5 +82,5 @@ class MyApp < Ovto::App
|
|
82
82
|
...
|
83
83
|
end
|
84
84
|
|
85
|
-
MyApp.run(id: 'ovto
|
85
|
+
MyApp.run(id: 'ovto')
|
86
86
|
```
|
data/book/api/component.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# Ovto::Component
|
2
2
|
|
3
|
-
|
3
|
+
An Ovto app must have `MainComponent` class, a subclass of `Ovto::Component`.
|
4
4
|
|
5
5
|
## 'render' method
|
6
6
|
|
7
|
-
`render` is the only method you need to define in the `
|
7
|
+
`render` is the only method you need to define in the `MainComponent` class.
|
8
8
|
It must take the global app state as a keyword argument `state:`.
|
9
9
|
|
10
10
|
```rb
|
11
|
-
class
|
11
|
+
class MainComponent < Ovto::Component
|
12
12
|
def render(state:)
|
13
13
|
o 'div' do
|
14
14
|
o 'h1', 'Your todos'
|
@@ -36,7 +36,7 @@ If you missed the surrounding 'div' tag, Ovto raises an `MoreThanOneNode` error.
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
#=> $MoreThanOneNode {name: "MoreThanOneNode",
|
39
|
+
#=> $MoreThanOneNode {name: "MoreThanOneNode", ...}
|
40
40
|
```
|
41
41
|
|
42
42
|
## The 'o' method
|
@@ -139,8 +139,8 @@ https://github.com/hyperapp/hyperapp#keys
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
-
# Main
|
143
|
-
class
|
142
|
+
# Main component
|
143
|
+
class MainComponent < Ovto::Component
|
144
144
|
def render(state:)
|
145
145
|
o 'div' do
|
146
146
|
o 'h1', 'Your todos'
|
data/book/guides/debugging.md
CHANGED
@@ -21,3 +21,12 @@ JavaScript objects too.
|
|
21
21
|
## ovto-debug
|
22
22
|
|
23
23
|
If the page has a tag with `id='ovto-debug'`, exception is shown in the tag.
|
24
|
+
|
25
|
+
## Ovto.debug_trace
|
26
|
+
|
27
|
+
If `Ovto.debug_trace` is set to `true`, some diagnostic messages are shown in the browser console.
|
28
|
+
|
29
|
+
```rb
|
30
|
+
Ovto.debug_trace = true
|
31
|
+
MyApp.run(id: 'ovto')
|
32
|
+
```
|
data/book/guides/tutorial.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Getting Started
|
2
2
|
|
3
3
|
This is a tutorial of making an Ovto app. We create a static app (.html + .js) here,
|
4
|
-
but you can embed Ovto apps into a Rails or Sinatra app (See `./
|
4
|
+
but you can embed Ovto apps into a Rails or Sinatra app (See `./examples/*`).
|
5
5
|
|
6
6
|
This is the final Ruby code.
|
7
7
|
|
@@ -28,7 +28,7 @@ class MyApp < Ovto::App
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class MainComponent < Ovto::Component
|
32
32
|
def render(state:)
|
33
33
|
o 'div' do
|
34
34
|
o 'span', 'Celcius:'
|
@@ -48,7 +48,7 @@ class MyApp < Ovto::App
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
MyApp.run(id: 'ovto
|
51
|
+
MyApp.run(id: 'ovto')
|
52
52
|
```
|
53
53
|
|
54
54
|
Let's take a look step-by-step.
|
@@ -82,7 +82,7 @@ Make an index.html:
|
|
82
82
|
<script type='text/javascript' src='app.js'></script>
|
83
83
|
</head>
|
84
84
|
<body>
|
85
|
-
<div id='ovto
|
85
|
+
<div id='ovto'></div>
|
86
86
|
<div id='ovto-debug'></div>
|
87
87
|
</body>
|
88
88
|
</html>
|
@@ -102,7 +102,7 @@ class MyApp < Ovto::App
|
|
102
102
|
class Actions < Ovto::Actions
|
103
103
|
end
|
104
104
|
|
105
|
-
class
|
105
|
+
class MainComponent < Ovto::Component
|
106
106
|
def render(state:) # Don't miss the `:`. This is not a typo but
|
107
107
|
o 'div' do # a "mandatory keyword argument".
|
108
108
|
o 'h1', "HELLO" # All of the Ovto methods take keyword arguments.
|
@@ -111,11 +111,11 @@ class MyApp < Ovto::App
|
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
-
MyApp.run(id: 'ovto
|
114
|
+
MyApp.run(id: 'ovto')
|
115
115
|
```
|
116
116
|
|
117
117
|
- The name `MyApp` is arbitrary.
|
118
|
-
- The id `ovto
|
118
|
+
- The id `ovto` corresponds to the `div` tag in `index.html`.
|
119
119
|
|
120
120
|
## Compile
|
121
121
|
|
@@ -165,10 +165,10 @@ each other. First, add an item to `MyApp::State`.
|
|
165
165
|
|
166
166
|
Now an item `celsius` is added to the global app state. Its value is `0` when
|
167
167
|
the app starts. You can read this value by `state.celsius`. Let's display the
|
168
|
-
value with `MyApp::
|
168
|
+
value with `MyApp::MainComponent`.
|
169
169
|
|
170
170
|
```rb
|
171
|
-
class
|
171
|
+
class MainComponent < Ovto::Component
|
172
172
|
def render(state:)
|
173
173
|
o 'div' do
|
174
174
|
o 'span', 'Celcius:'
|
@@ -195,10 +195,10 @@ convert.
|
|
195
195
|
end
|
196
196
|
```
|
197
197
|
|
198
|
-
Now you can know the value by `state.fahrenheit`. Update
|
198
|
+
Now you can know the value by `state.fahrenheit`. Update `MainComponent` to show the value too.
|
199
199
|
|
200
200
|
```
|
201
|
-
class
|
201
|
+
class MainComponent < Ovto::Component
|
202
202
|
def render(state:)
|
203
203
|
o 'div' do
|
204
204
|
o 'span', 'Celcius:'
|
@@ -230,7 +230,7 @@ the updates to the state. This return value is `merge`d into the global app stat
|
|
230
230
|
end
|
231
231
|
```
|
232
232
|
|
233
|
-
This action can be called by `actions.set_celsius` from
|
233
|
+
This action can be called by `actions.set_celsius` from MainComponent. Replace the
|
234
234
|
first input tag with this:
|
235
235
|
|
236
236
|
```rb
|
data/docs/api/Ovto.html
CHANGED
@@ -107,7 +107,7 @@
|
|
107
107
|
<dt id="VERSION-constant" class="">VERSION =
|
108
108
|
|
109
109
|
</dt>
|
110
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.
|
110
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0.3.0</span><span class='tstring_end'>'</span></span></pre></dd>
|
111
111
|
|
112
112
|
</dl>
|
113
113
|
|
@@ -147,6 +147,72 @@
|
|
147
147
|
<p>Create an Opal Promise to call fetch API.</p>
|
148
148
|
</div></span>
|
149
149
|
|
150
|
+
</li>
|
151
|
+
|
152
|
+
|
153
|
+
<li class="public ">
|
154
|
+
<span class="summary_signature">
|
155
|
+
|
156
|
+
<a href="#debug_trace-class_method" title="debug_trace (class method)">.<strong>debug_trace</strong> ⇒ Object </a>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</span>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
171
|
+
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="public ">
|
176
|
+
<span class="summary_signature">
|
177
|
+
|
178
|
+
<a href="#debug_trace=-class_method" title="debug_trace= (class method)">.<strong>debug_trace=</strong>(bool) ⇒ Object </a>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
</span>
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
193
|
+
|
194
|
+
</li>
|
195
|
+
|
196
|
+
|
197
|
+
<li class="public ">
|
198
|
+
<span class="summary_signature">
|
199
|
+
|
200
|
+
<a href="#debug_trace_log-class_method" title="debug_trace_log (class method)">.<strong>debug_trace_log</strong>(msg) ⇒ Object </a>
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
</span>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
215
|
+
|
150
216
|
</li>
|
151
217
|
|
152
218
|
|
@@ -302,6 +368,88 @@
|
|
302
368
|
</td>
|
303
369
|
</tr>
|
304
370
|
</table>
|
371
|
+
</div>
|
372
|
+
|
373
|
+
<div class="method_details ">
|
374
|
+
<h3 class="signature " id="debug_trace-class_method">
|
375
|
+
|
376
|
+
.<strong>debug_trace</strong> ⇒ <tt>Object</tt>
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
</h3><table class="source_code">
|
383
|
+
<tr>
|
384
|
+
<td>
|
385
|
+
<pre class="lines">
|
386
|
+
|
387
|
+
|
388
|
+
19</pre>
|
389
|
+
</td>
|
390
|
+
<td>
|
391
|
+
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line 19</span>
|
392
|
+
|
393
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_debug_trace'>debug_trace</span><span class='semicolon'>;</span> <span class='ivar'>@debug_trace</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
394
|
+
</td>
|
395
|
+
</tr>
|
396
|
+
</table>
|
397
|
+
</div>
|
398
|
+
|
399
|
+
<div class="method_details ">
|
400
|
+
<h3 class="signature " id="debug_trace=-class_method">
|
401
|
+
|
402
|
+
.<strong>debug_trace=</strong>(bool) ⇒ <tt>Object</tt>
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
</h3><table class="source_code">
|
409
|
+
<tr>
|
410
|
+
<td>
|
411
|
+
<pre class="lines">
|
412
|
+
|
413
|
+
|
414
|
+
20</pre>
|
415
|
+
</td>
|
416
|
+
<td>
|
417
|
+
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line 20</span>
|
418
|
+
|
419
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_debug_trace='>debug_trace=</span><span class='lparen'>(</span><span class='id identifier rubyid_bool'>bool</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='ivar'>@debug_trace</span> <span class='op'>=</span> <span class='id identifier rubyid_bool'>bool</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
420
|
+
</td>
|
421
|
+
</tr>
|
422
|
+
</table>
|
423
|
+
</div>
|
424
|
+
|
425
|
+
<div class="method_details ">
|
426
|
+
<h3 class="signature " id="debug_trace_log-class_method">
|
427
|
+
|
428
|
+
.<strong>debug_trace_log</strong>(msg) ⇒ <tt>Object</tt>
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
</h3><table class="source_code">
|
435
|
+
<tr>
|
436
|
+
<td>
|
437
|
+
<pre class="lines">
|
438
|
+
|
439
|
+
|
440
|
+
21
|
441
|
+
22
|
442
|
+
23</pre>
|
443
|
+
</td>
|
444
|
+
<td>
|
445
|
+
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line 21</span>
|
446
|
+
|
447
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_debug_trace_log'>debug_trace_log</span><span class='lparen'>(</span><span class='id identifier rubyid_msg'>msg</span><span class='rparen'>)</span>
|
448
|
+
<span class='id identifier rubyid_console'><span class='object_link'><a href="top-level-namespace.html#console-instance_method" title="#console (method)">console</a></span></span><span class='period'>.</span><span class='id identifier rubyid_log'>log</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Ovto: </span><span class='tstring_end'>"</span></span><span class='op'>+</span><span class='id identifier rubyid_msg'>msg</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@debug_trace</span>
|
449
|
+
<span class='kw'>end</span></pre>
|
450
|
+
</td>
|
451
|
+
</tr>
|
452
|
+
</table>
|
305
453
|
</div>
|
306
454
|
|
307
455
|
<div class="method_details ">
|
@@ -408,16 +556,16 @@
|
|
408
556
|
<pre class="lines">
|
409
557
|
|
410
558
|
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
559
|
+
26
|
560
|
+
27
|
561
|
+
28
|
562
|
+
29
|
563
|
+
30
|
564
|
+
31
|
565
|
+
32</pre>
|
418
566
|
</td>
|
419
567
|
<td>
|
420
|
-
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line
|
568
|
+
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line 26</span>
|
421
569
|
|
422
570
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='lparen'>(</span><span class='id identifier rubyid_obj'>obj</span><span class='rparen'>)</span>
|
423
571
|
<span class='kw'>if</span> <span class='backtick'>`</span><span class='tstring_content'>obj.$inspect</span><span class='tstring_end'>`</span></span>
|
@@ -458,14 +606,6 @@
|
|
458
606
|
<pre class="lines">
|
459
607
|
|
460
608
|
|
461
|
-
28
|
462
|
-
29
|
463
|
-
30
|
464
|
-
31
|
465
|
-
32
|
466
|
-
33
|
467
|
-
34
|
468
|
-
35
|
469
609
|
36
|
470
610
|
37
|
471
611
|
38
|
@@ -479,10 +619,18 @@
|
|
479
619
|
46
|
480
620
|
47
|
481
621
|
48
|
482
|
-
49
|
622
|
+
49
|
623
|
+
50
|
624
|
+
51
|
625
|
+
52
|
626
|
+
53
|
627
|
+
54
|
628
|
+
55
|
629
|
+
56
|
630
|
+
57</pre>
|
483
631
|
</td>
|
484
632
|
<td>
|
485
|
-
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line
|
633
|
+
<pre class="code"><span class="info file"># File 'lib/ovto.rb', line 36</span>
|
486
634
|
|
487
635
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_log_error'>log_error</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
488
636
|
<span class='kw'>return</span> <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
@@ -516,7 +664,7 @@
|
|
516
664
|
</div>
|
517
665
|
|
518
666
|
<div id="footer">
|
519
|
-
Generated on
|
667
|
+
Generated on Mon Dec 24 21:23:44 2018 by
|
520
668
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
521
669
|
0.9.16 (ruby-2.5.3).
|
522
670
|
</div>
|