ruff 0.0.7 → 0.0.8
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/Gemfile.lock +1 -1
- data/README.md +59 -0
- data/docs/Ruff.html +4 -4
- data/docs/Ruff/Effect.html +2 -2
- data/docs/Ruff/Handler.html +28 -20
- data/docs/Ruff/Standard.html +115 -0
- data/docs/Ruff/Standard/CurrentTime.html +236 -0
- data/docs/Ruff/Standard/CurrentTime/Instance.html +311 -0
- data/docs/Ruff/Standard/Defer.html +236 -0
- data/docs/Ruff/Standard/Defer/Instance.html +335 -0
- data/docs/Ruff/Standard/State.html +392 -0
- data/docs/Ruff/Standard/State/Instance.html +489 -0
- data/docs/Ruff/Throws.html +2 -2
- data/docs/Ruff/Throws/Eff.html +2 -2
- data/docs/Ruff/Throws/Resend.html +2 -2
- data/docs/_index.html +87 -3
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +66 -4
- data/docs/frames.html +1 -1
- data/docs/index.html +66 -4
- data/docs/method_list.html +171 -3
- data/docs/top-level-namespace.html +2 -2
- data/lib/ruff/handler.rb +11 -9
- data/lib/ruff/standard.rb +6 -0
- data/lib/ruff/standard/current_time.rb +29 -0
- data/lib/ruff/standard/defer.rb +40 -0
- data/lib/ruff/standard/state.rb +64 -0
- data/lib/ruff/version.rb +1 -1
- data/version.h +1 -1
- metadata +12 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4d0dce2716a0ba165a9acb786566df18cbab9172868b140c43ba5d31b1a06e9
|
4
|
+
data.tar.gz: 8595a205410972638b3870db14ef5ee180f2c8c2998d770d68da9a1258ee915a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efd05cf55bd6ac053a6382e1fc98663f997008d66e03ef4607d3d02f7b776ad68811b95d91d3e8c2ddba8153ba62769120e570460a5836611e115e47299d37fb
|
7
|
+
data.tar.gz: 634692859abe10b453fceb8055511e0df084d032ab3a87a088b80d21f27c85c1962264fc59ff76ef879c03dd02374855d53efe614743f901cdad66d5bce2b470
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -33,5 +33,64 @@ h1.run{
|
|
33
33
|
# logger: 6
|
34
34
|
```
|
35
35
|
|
36
|
+
# pre-defined effect and handlers
|
37
|
+
They have `with` method to handle the effects, and `Instance` class to instanciate and handle the indivisual effect objects.
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
require "ruff"
|
41
|
+
require "ruff/standard"
|
42
|
+
|
43
|
+
include Ruff::Standard
|
44
|
+
|
45
|
+
Defer.with {
|
46
|
+
state1 = State::Instance.new
|
47
|
+
state2 = State::Instance.new
|
48
|
+
|
49
|
+
state1.with_init(10) {
|
50
|
+
CurrentTime.with {
|
51
|
+
puts CurrentTime.get
|
52
|
+
}
|
53
|
+
|
54
|
+
state2.with_init("") {
|
55
|
+
3.times{
|
56
|
+
state1.modify {|s| s + 1 }
|
57
|
+
state2.put "#{state1.get}!"
|
58
|
+
|
59
|
+
s1 = state1.get
|
60
|
+
s2 = state2.get
|
61
|
+
|
62
|
+
Defer.register {
|
63
|
+
puts s1, s2
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
# ==>
|
71
|
+
# 2019-10-03 03:24:34 +0900
|
72
|
+
# 13
|
73
|
+
# 13!
|
74
|
+
# 12
|
75
|
+
# 12!
|
76
|
+
# 11
|
77
|
+
# 11!
|
78
|
+
```
|
79
|
+
|
80
|
+
## `Ruff::Standard::State`
|
81
|
+
### `with_init`
|
82
|
+
<!-- This method handles state-like effects like `with` , but it requires initial state. -->
|
83
|
+
<!-- `with { task }` is short hand for `with_init(0) { task }` . -->
|
84
|
+
|
85
|
+
### `get`
|
86
|
+
### `put`
|
87
|
+
### `modify`
|
88
|
+
|
89
|
+
## `Ruff::Standard::Defer`
|
90
|
+
### `register`
|
91
|
+
|
92
|
+
## `Ruff::Standard::CurrentTime`
|
93
|
+
### `get`
|
94
|
+
|
36
95
|
# LICENSE
|
37
96
|
MIT
|
data/docs/Ruff.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Ruff
|
8
8
|
|
9
|
-
— Ruff 0.0.
|
9
|
+
— Ruff 0.0.8 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -100,7 +100,7 @@ include "../../version.h"</p>
|
|
100
100
|
<p class="children">
|
101
101
|
|
102
102
|
|
103
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Ruff/Throws.html" title="Ruff::Throws (module)">Throws</a></span>
|
103
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Ruff/Standard.html" title="Ruff::Standard (module)">Standard</a></span>, <span class='object_link'><a href="Ruff/Throws.html" title="Ruff::Throws (module)">Throws</a></span>
|
104
104
|
|
105
105
|
|
106
106
|
|
@@ -120,7 +120,7 @@ include "../../version.h"</p>
|
|
120
120
|
<dt id="VERSION-constant" class="">VERSION =
|
121
121
|
|
122
122
|
</dt>
|
123
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.
|
123
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.0.8</span><span class='tstring_end'>"</span></span></pre></dd>
|
124
124
|
|
125
125
|
</dl>
|
126
126
|
|
@@ -312,7 +312,7 @@ include "../../version.h"</p>
|
|
312
312
|
</div>
|
313
313
|
|
314
314
|
<div id="footer">
|
315
|
-
Generated on Thu Oct 3
|
315
|
+
Generated on Thu Oct 3 03:25:53 2019 by
|
316
316
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
317
317
|
0.9.20 (ruby-2.6.4).
|
318
318
|
</div>
|
data/docs/Ruff/Effect.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Effect
|
8
8
|
|
9
|
-
— Ruff 0.0.
|
9
|
+
— Ruff 0.0.8 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -404,7 +404,7 @@
|
|
404
404
|
</div>
|
405
405
|
|
406
406
|
<div id="footer">
|
407
|
-
Generated on Thu Oct 3
|
407
|
+
Generated on Thu Oct 3 03:25:53 2019 by
|
408
408
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
409
409
|
0.9.20 (ruby-2.6.4).
|
410
410
|
</div>
|
data/docs/Ruff/Handler.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Ruff::Handler
|
8
8
|
|
9
|
-
— Ruff 0.0.
|
9
|
+
— Ruff 0.0.8 Documentation
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -271,16 +271,18 @@ Value handler is set <code>id</code> function to by default.</p>
|
|
271
271
|
<pre class="lines">
|
272
272
|
|
273
273
|
|
274
|
+
15
|
275
|
+
16
|
274
276
|
17
|
275
277
|
18
|
276
|
-
19
|
277
|
-
20</pre>
|
278
|
+
19</pre>
|
278
279
|
</td>
|
279
280
|
<td>
|
280
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line
|
281
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 15</span>
|
281
282
|
|
282
283
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
283
284
|
<span class='ivar'>@handlers</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
285
|
+
<span class='ivar'>@valh_id</span> <span class='op'>=</span> <span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_uuid'>uuid</span>
|
284
286
|
<span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='ivar'>@valh_id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_x'>x</span> <span class='rbrace'>}</span>
|
285
287
|
<span class='kw'>end</span></pre>
|
286
288
|
</td>
|
@@ -384,14 +386,14 @@ to go back to the handled computation.</p>
|
|
384
386
|
<pre class="lines">
|
385
387
|
|
386
388
|
|
389
|
+
78
|
387
390
|
79
|
388
391
|
80
|
389
392
|
81
|
390
|
-
82
|
391
|
-
83</pre>
|
393
|
+
82</pre>
|
392
394
|
</td>
|
393
395
|
<td>
|
394
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line
|
396
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 78</span>
|
395
397
|
|
396
398
|
<span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_eff'>eff</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_fun'>fun</span><span class='rparen'>)</span>
|
397
399
|
<span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_fun'>fun</span>
|
@@ -488,6 +490,7 @@ to go back to the handled computation.</p>
|
|
488
490
|
<pre class="lines">
|
489
491
|
|
490
492
|
|
493
|
+
107
|
491
494
|
108
|
492
495
|
109
|
493
496
|
110
|
@@ -539,10 +542,12 @@ to go back to the handled computation.</p>
|
|
539
542
|
156
|
540
543
|
157
|
541
544
|
158
|
542
|
-
159
|
545
|
+
159
|
546
|
+
160
|
547
|
+
161</pre>
|
543
548
|
</td>
|
544
549
|
<td>
|
545
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line
|
550
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 107</span>
|
546
551
|
|
547
552
|
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_prc'>prc</span><span class='rparen'>)</span>
|
548
553
|
<span class='id identifier rubyid_co'>co</span> <span class='op'>=</span> <span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='op'>&</span><span class='id identifier rubyid_prc'>prc</span>
|
@@ -554,13 +559,16 @@ to go back to the handled computation.</p>
|
|
554
559
|
<span class='kw'>if</span> <span class='id identifier rubyid_effh'>effh</span> <span class='op'>=</span> <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
|
555
560
|
<span class='id identifier rubyid_effh'>effh</span><span class='lbracket'>[</span><span class='id identifier rubyid_continue'>continue</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rbracket'>]</span>
|
556
561
|
<span class='kw'>else</span>
|
557
|
-
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='
|
562
|
+
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='const'><span class='object_link'><a href="Throws/Resend.html" title="Ruff::Throws::Resend (class)">Resend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Throws/Resend.html#initialize-instance_method" title="Ruff::Throws::Resend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_continue'>continue</span><span class='rparen'>)</span>
|
558
563
|
<span class='kw'>end</span>
|
559
564
|
<span class='kw'>elsif</span> <span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'><span class='object_link'><a href="Throws/Resend.html" title="Ruff::Throws::Resend (class)">Resend</a></span></span>
|
560
|
-
<span class='
|
561
|
-
|
565
|
+
<span class='id identifier rubyid_eff'>eff</span> <span class='op'>=</span> <span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_eff'>eff</span>
|
566
|
+
<span class='id identifier rubyid_next_k'>next_k</span> <span class='op'>=</span> <span class='id identifier rubyid_rehandles'>rehandles</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='period'>.</span><span class='id identifier rubyid_k'>k</span><span class='rparen'>)</span>
|
567
|
+
|
568
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_effh'>effh</span> <span class='op'>=</span> <span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_id'>id</span><span class='rbracket'>]</span>
|
569
|
+
<span class='id identifier rubyid_effh'>effh</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_next_k'>next_k</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_eff'>eff</span><span class='period'>.</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
562
570
|
<span class='kw'>else</span>
|
563
|
-
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='
|
571
|
+
<span class='const'>Fiber</span><span class='period'>.</span><span class='id identifier rubyid_yield'>yield</span> <span class='const'><span class='object_link'><a href="Throws/Resend.html" title="Ruff::Throws::Resend (class)">Resend</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Throws/Resend.html#initialize-instance_method" title="Ruff::Throws::Resend#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_eff'>eff</span><span class='comma'>,</span> <span class='id identifier rubyid_next_k'>next_k</span><span class='rparen'>)</span>
|
564
572
|
<span class='kw'>end</span>
|
565
573
|
<span class='kw'>else</span>
|
566
574
|
<span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='ivar'>@valh_id</span><span class='rbracket'>]</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_r'>r</span><span class='rparen'>)</span>
|
@@ -584,17 +592,17 @@ to go back to the handled computation.</p>
|
|
584
592
|
<span class='tlambda'>-></span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span> <span class='tlambeg'>{</span>
|
585
593
|
<span class='id identifier rubyid_continue'>continue</span><span class='lbracket'>[</span>
|
586
594
|
<span class='id identifier rubyid_newh'>newh</span><span class='period'>.</span><span class='id identifier rubyid_run'>run</span> <span class='lbrace'>{</span>
|
587
|
-
<span class='id identifier rubyid_k'>k</span><span class='
|
595
|
+
<span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
588
596
|
<span class='rbrace'>}</span>
|
589
597
|
<span class='rbracket'>]</span>
|
590
598
|
<span class='rbrace'>}</span>
|
591
599
|
<span class='rbrace'>}</span>
|
592
600
|
|
593
601
|
<span class='id identifier rubyid_continue'>continue</span> <span class='op'>=</span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span> <span class='tlambeg'>{</span>
|
594
|
-
<span class='id identifier rubyid_handle'>handle</span><span class='
|
602
|
+
<span class='id identifier rubyid_handle'>handle</span><span class='period'>.</span><span class='lparen'>(</span><span class='id identifier rubyid_co'>co</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_arg'>arg</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
595
603
|
<span class='rbrace'>}</span>
|
596
604
|
|
597
|
-
<span class='id identifier rubyid_continue'>continue</span><span class='
|
605
|
+
<span class='id identifier rubyid_continue'>continue</span><span class='period'>.</span><span class='lparen'>(</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
598
606
|
<span class='kw'>end</span></pre>
|
599
607
|
</td>
|
600
608
|
</tr>
|
@@ -691,14 +699,14 @@ For example, <code>Handler.new.to{|_x| 0}.run { value }</code> results in <code>
|
|
691
699
|
<pre class="lines">
|
692
700
|
|
693
701
|
|
702
|
+
56
|
694
703
|
57
|
695
704
|
58
|
696
705
|
59
|
697
|
-
60
|
698
|
-
61</pre>
|
706
|
+
60</pre>
|
699
707
|
</td>
|
700
708
|
<td>
|
701
|
-
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line
|
709
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/handler.rb', line 56</span>
|
702
710
|
|
703
711
|
<span class='kw'>def</span> <span class='id identifier rubyid_to'>to</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_fun'>fun</span><span class='rparen'>)</span>
|
704
712
|
<span class='ivar'>@handlers</span><span class='lbracket'>[</span><span class='ivar'>@valh_id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_fun'>fun</span>
|
@@ -715,7 +723,7 @@ For example, <code>Handler.new.to{|_x| 0}.run { value }</code> results in <code>
|
|
715
723
|
</div>
|
716
724
|
|
717
725
|
<div id="footer">
|
718
|
-
Generated on Thu Oct 3
|
726
|
+
Generated on Thu Oct 3 03:25:53 2019 by
|
719
727
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
720
728
|
0.9.20 (ruby-2.6.4).
|
721
729
|
</div>
|
@@ -0,0 +1,115 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Ruff::Standard
|
8
|
+
|
9
|
+
— Ruff 0.0.8 Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Ruff::Standard";
|
19
|
+
relpath = '../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../_index.html">Index (S)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Ruff.html" title="Ruff (module)">Ruff</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Standard</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Ruff::Standard
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/ruff/standard.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<h2>Defined Under Namespace</h2>
|
87
|
+
<p class="children">
|
88
|
+
|
89
|
+
|
90
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Standard/CurrentTime.html" title="Ruff::Standard::CurrentTime (module)">CurrentTime</a></span>, <span class='object_link'><a href="Standard/Defer.html" title="Ruff::Standard::Defer (module)">Defer</a></span>, <span class='object_link'><a href="Standard/State.html" title="Ruff::Standard::State (module)">State</a></span>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div id="footer">
|
108
|
+
Generated on Thu Oct 3 03:25:53 2019 by
|
109
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
+
0.9.20 (ruby-2.6.4).
|
111
|
+
</div>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</body>
|
115
|
+
</html>
|
@@ -0,0 +1,236 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Ruff::Standard::CurrentTime
|
8
|
+
|
9
|
+
— Ruff 0.0.8 Documentation
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Ruff::Standard::CurrentTime";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (C)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Ruff.html" title="Ruff (module)">Ruff</a></span></span> » <span class='title'><span class='object_link'><a href="../Standard.html" title="Ruff::Standard (module)">Standard</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">CurrentTime</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Ruff::Standard::CurrentTime
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/ruff/standard/current_time.rb</dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<h2>Defined Under Namespace</h2>
|
87
|
+
<p class="children">
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="CurrentTime/Instance.html" title="Ruff::Standard::CurrentTime::Instance (class)">Instance</a></span>
|
93
|
+
|
94
|
+
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
<h2>
|
105
|
+
Class Method Summary
|
106
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
107
|
+
</h2>
|
108
|
+
|
109
|
+
<ul class="summary">
|
110
|
+
|
111
|
+
<li class="public ">
|
112
|
+
<span class="summary_signature">
|
113
|
+
|
114
|
+
<a href="#get-class_method" title="get (class method)">.<strong>get</strong> ⇒ Object </a>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
</span>
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
129
|
+
|
130
|
+
</li>
|
131
|
+
|
132
|
+
|
133
|
+
<li class="public ">
|
134
|
+
<span class="summary_signature">
|
135
|
+
|
136
|
+
<a href="#with-class_method" title="with (class method)">.<strong>with</strong>(&th) ⇒ Object </a>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
</span>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
151
|
+
|
152
|
+
</li>
|
153
|
+
|
154
|
+
|
155
|
+
</ul>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<div id="class_method_details" class="method_details_list">
|
161
|
+
<h2>Class Method Details</h2>
|
162
|
+
|
163
|
+
|
164
|
+
<div class="method_details first">
|
165
|
+
<h3 class="signature first" id="get-class_method">
|
166
|
+
|
167
|
+
.<strong>get</strong> ⇒ <tt>Object</tt>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</h3><table class="source_code">
|
174
|
+
<tr>
|
175
|
+
<td>
|
176
|
+
<pre class="lines">
|
177
|
+
|
178
|
+
|
179
|
+
19
|
180
|
+
20
|
181
|
+
21</pre>
|
182
|
+
</td>
|
183
|
+
<td>
|
184
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 19</span>
|
185
|
+
|
186
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span>
|
187
|
+
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span>
|
188
|
+
<span class='kw'>end</span></pre>
|
189
|
+
</td>
|
190
|
+
</tr>
|
191
|
+
</table>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div class="method_details ">
|
195
|
+
<h3 class="signature " id="with-class_method">
|
196
|
+
|
197
|
+
.<strong>with</strong>(&th) ⇒ <tt>Object</tt>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</h3><table class="source_code">
|
204
|
+
<tr>
|
205
|
+
<td>
|
206
|
+
<pre class="lines">
|
207
|
+
|
208
|
+
|
209
|
+
23
|
210
|
+
24
|
211
|
+
25</pre>
|
212
|
+
</td>
|
213
|
+
<td>
|
214
|
+
<pre class="code"><span class="info file"># File 'lib/ruff/standard/current_time.rb', line 23</span>
|
215
|
+
|
216
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_with'>with</span> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
217
|
+
<span class='ivar'>@inst</span><span class='period'>.</span><span class='id identifier rubyid_with'>with</span> <span class='op'>&</span><span class='id identifier rubyid_th'>th</span>
|
218
|
+
<span class='kw'>end</span></pre>
|
219
|
+
</td>
|
220
|
+
</tr>
|
221
|
+
</table>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
</div>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
<div id="footer">
|
229
|
+
Generated on Thu Oct 3 03:25:53 2019 by
|
230
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
231
|
+
0.9.20 (ruby-2.6.4).
|
232
|
+
</div>
|
233
|
+
|
234
|
+
</div>
|
235
|
+
</body>
|
236
|
+
</html>
|