ruby-vpi 18.0.2 → 19.0.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.
- data/Rakefile +15 -19
- data/bin/generate/proto.rb +15 -10
- data/bin/ruby-vpi +2 -0
- data/doc/README +3 -5
- data/doc/Rakefile +3 -3
- data/doc/common.css +24 -136
- data/doc/common.tpl +48 -37
- data/doc/figures/figures.dia +19 -19
- data/doc/figures/ruby_relay.png +0 -0
- data/doc/history.html +252 -67
- data/doc/history.inc +98 -1
- data/doc/history.yaml +105 -0
- data/doc/intro.inc +43 -32
- data/doc/lib/doc_format.rb +19 -13
- data/doc/lib/doc_proxy.rb +7 -7
- data/doc/manual.doc +156 -117
- data/doc/manual.html +601 -560
- data/doc/memo.html +29 -25
- data/doc/print.css +63 -4
- data/doc/readme.doc +4 -6
- data/doc/readme.html +129 -111
- data/doc/rss.xml +168 -7
- data/doc/screen.css +146 -0
- data/doc/spacing.css +57 -0
- data/{samp → examples}/counter/RSpec/Rakefile +0 -0
- data/{samp → examples}/counter/RSpec/counter_design.rb +0 -0
- data/examples/counter/RSpec/counter_proto.rb +9 -0
- data/{samp → examples}/counter/RSpec/counter_runner.rake +0 -0
- data/{samp → examples}/counter/RSpec/counter_spec.rb +0 -0
- data/{samp → examples}/counter/Rakefile +0 -0
- data/{samp → examples}/counter/counter.v +0 -0
- data/{samp → examples}/counter/xUnit/Rakefile +0 -0
- data/{samp → examples}/counter/xUnit/counter_bench.rb +0 -0
- data/{samp → examples}/counter/xUnit/counter_bench.v +0 -0
- data/{samp → examples}/counter/xUnit/counter_design.rb +0 -0
- data/examples/counter/xUnit/counter_proto.rb +9 -0
- data/{samp → examples}/counter/xUnit/counter_runner.rake +0 -0
- data/{samp → examples}/counter/xUnit/counter_spec.rb +0 -0
- data/{samp → examples}/pipelined_alu/Hw5UnitModel.rb +0 -0
- data/{samp → examples}/pipelined_alu/README +0 -0
- data/{samp → examples}/pipelined_alu/Rakefile +0 -0
- data/{samp → examples}/pipelined_alu/TestHw5UnitModel.rb +0 -0
- data/{samp → examples}/pipelined_alu/hw5_unit.v +0 -0
- data/{samp → examples}/pipelined_alu/hw5_unit_design.rb +0 -7
- data/examples/pipelined_alu/hw5_unit_proto.rb +2 -0
- data/{samp → examples}/pipelined_alu/hw5_unit_runner.rake +0 -0
- data/{samp → examples}/pipelined_alu/hw5_unit_spec.rb +0 -0
- data/{samp → examples}/pipelined_alu/int_gen.rb +0 -0
- data/{samp → examples}/register_file/LICENSE +0 -0
- data/{samp → examples}/register_file/README +0 -0
- data/{samp → examples}/register_file/Rakefile +0 -0
- data/{samp → examples}/register_file/register_file.v +0 -0
- data/{samp → examples}/register_file/register_file_design.rb +0 -0
- data/examples/register_file/register_file_proto.rb +11 -0
- data/{samp → examples}/register_file/register_file_runner.rake +0 -0
- data/{samp → examples}/register_file/register_file_spec.rb +0 -0
- data/ext/main.c +5 -5
- data/ext/swig_vpi.i +6 -2
- data/lib/ruby-vpi/core/callback.rb +142 -0
- data/lib/ruby-vpi/core/edge.rb +128 -0
- data/lib/ruby-vpi/core/handle.rb +421 -0
- data/lib/ruby-vpi/core/scheduler.rb +244 -0
- data/lib/ruby-vpi/core/struct.rb +123 -0
- data/lib/ruby-vpi/core.rb +41 -0
- data/lib/ruby-vpi/rcov.rb +25 -12
- data/lib/ruby-vpi/runner.rb +30 -26
- data/lib/ruby-vpi/runner_boot_loader.rb +67 -37
- data/lib/ruby-vpi.rb +2 -2
- data/ref/c/annotated.html +1 -1
- data/ref/c/common_8h.html +1 -1
- data/ref/c/files.html +1 -1
- data/ref/c/functions.html +1 -1
- data/ref/c/functions_vars.html +1 -1
- data/ref/c/globals.html +1 -1
- data/ref/c/globals_0x63.html +1 -1
- data/ref/c/globals_0x65.html +1 -1
- data/ref/c/globals_0x66.html +1 -1
- data/ref/c/globals_0x6d.html +1 -1
- data/ref/c/globals_0x70.html +1 -1
- data/ref/c/globals_0x72.html +1 -1
- data/ref/c/globals_0x73.html +1 -1
- data/ref/c/globals_0x74.html +1 -1
- data/ref/c/globals_0x76.html +1 -1
- data/ref/c/globals_0x78.html +1 -1
- data/ref/c/globals_defs.html +1 -1
- data/ref/c/globals_defs_0x65.html +1 -1
- data/ref/c/globals_defs_0x70.html +1 -1
- data/ref/c/globals_defs_0x76.html +1 -1
- data/ref/c/globals_defs_0x78.html +1 -1
- data/ref/c/globals_enum.html +1 -1
- data/ref/c/globals_eval.html +1 -1
- data/ref/c/globals_func.html +1 -1
- data/ref/c/globals_type.html +1 -1
- data/ref/c/globals_vars.html +1 -1
- data/ref/c/index.html +1 -1
- data/ref/c/main_8c.html +1 -1
- data/ref/c/main_8h.html +1 -1
- data/ref/c/relay_8c.html +1 -1
- data/ref/c/relay_8h.html +1 -1
- data/ref/c/structt__cb__data.html +1 -1
- data/ref/c/structt__vpi__delay.html +1 -1
- data/ref/c/structt__vpi__error__info.html +1 -1
- data/ref/c/structt__vpi__strengthval.html +1 -1
- data/ref/c/structt__vpi__systf__data.html +1 -1
- data/ref/c/structt__vpi__time.html +1 -1
- data/ref/c/structt__vpi__value.html +1 -1
- data/ref/c/structt__vpi__vecval.html +1 -1
- data/ref/c/structt__vpi__vlog__info.html +1 -1
- data/ref/c/verilog_8h.html +1 -1
- data/ref/c/vlog_8c.html +1 -1
- data/ref/c/vlog_8h.html +1 -1
- data/ref/c/vpi__user_8h.html +1 -1
- data/ref/ruby/classes/ERB.html +7 -5
- data/ref/ruby/classes/ERB.src/{M000026.html → M000024.html} +0 -0
- data/ref/ruby/classes/FileUtils.html +11 -11
- data/ref/ruby/classes/FileUtils.src/{M000027.html → M000025.html} +0 -0
- data/ref/ruby/classes/FileUtils.src/{M000028.html → M000026.html} +0 -0
- data/ref/ruby/classes/Float.html +8 -6
- data/ref/ruby/classes/Float.src/{M000021.html → M000019.html} +0 -0
- data/ref/ruby/classes/Integer.html +67 -65
- data/ref/ruby/classes/Integer.src/M000007.html +25 -0
- data/ref/ruby/classes/Integer.src/{M000014.html → M000008.html} +5 -5
- data/ref/ruby/classes/Integer.src/M000009.html +5 -12
- data/ref/ruby/classes/Integer.src/M000010.html +5 -5
- data/ref/ruby/classes/Integer.src/M000011.html +5 -5
- data/ref/ruby/classes/Integer.src/M000012.html +5 -5
- data/ref/ruby/classes/Integer.src/M000015.html +25 -0
- data/ref/ruby/classes/Integer.src/M000016.html +31 -0
- data/ref/ruby/classes/Integer.src/M000017.html +12 -12
- data/ref/ruby/classes/Integer.src/M000018.html +17 -18
- data/ref/ruby/classes/Object.html +126 -0
- data/ref/ruby/classes/RDoc.html +5 -5
- data/ref/ruby/classes/RDoc.src/{M000061.html → M000081.html} +0 -0
- data/ref/ruby/classes/RubyVPI.html +50 -9
- data/ref/ruby/classes/String.html +22 -20
- data/ref/ruby/classes/String.src/M000020.html +36 -0
- data/ref/ruby/classes/String.src/M000021.html +41 -0
- data/ref/ruby/classes/String.src/M000022.html +5 -23
- data/ref/ruby/classes/String.src/M000023.html +5 -28
- data/ref/ruby/classes/{Vpi → VPI}/Handle.html +442 -140
- data/ref/ruby/classes/{Vpi/Handle.src/M000042.html → VPI/Handle.src/M000037.html} +4 -4
- data/ref/ruby/classes/VPI/Handle.src/M000038.html +21 -0
- data/ref/ruby/classes/VPI/Handle.src/M000039.html +18 -0
- data/ref/ruby/classes/{Vpi/Handle.src/M000036.html → VPI/Handle.src/M000040.html} +5 -5
- data/ref/ruby/classes/VPI/Handle.src/M000045.html +18 -0
- data/ref/ruby/classes/{Vpi/Handle.src/M000038.html → VPI/Handle.src/M000046.html} +5 -5
- data/ref/ruby/classes/VPI/Handle.src/M000057.html +18 -0
- data/ref/ruby/classes/{Vpi/Handle.src/M000040.html → VPI/Handle.src/M000058.html} +5 -5
- data/ref/ruby/classes/VPI/Handle.src/M000061.html +18 -0
- data/ref/ruby/classes/VPI/Handle.src/M000062.html +18 -0
- data/ref/ruby/classes/{Vpi/Handle.src/M000054.html → VPI/Handle.src/M000065.html} +11 -11
- data/ref/ruby/classes/VPI/Handle.src/M000067.html +21 -0
- data/ref/ruby/classes/VPI/Handle.src/M000068.html +28 -0
- data/ref/ruby/classes/VPI/Handle.src/M000069.html +50 -0
- data/ref/ruby/classes/{Vpi/Handle.src/M000048.html → VPI/Handle.src/M000070.html} +6 -6
- data/ref/ruby/classes/{Vpi/Handle.src/M000049.html → VPI/Handle.src/M000071.html} +6 -6
- data/ref/ruby/classes/{Vpi/Handle.src/M000050.html → VPI/Handle.src/M000072.html} +5 -5
- data/ref/ruby/classes/{Vpi/Handle.src/M000051.html → VPI/Handle.src/M000073.html} +17 -17
- data/ref/ruby/classes/VPI/Handle.src/M000075.html +18 -0
- data/ref/ruby/classes/VPI/Handle.src/M000076.html +40 -0
- data/ref/ruby/classes/{Vpi/Handle.src/M000056.html → VPI/Handle.src/M000077.html} +18 -18
- data/ref/ruby/classes/{Vpi → VPI}/S_vpi_time.html +22 -20
- data/ref/ruby/classes/VPI/S_vpi_time.src/M000078.html +18 -0
- data/ref/ruby/classes/VPI/S_vpi_time.src/M000079.html +19 -0
- data/ref/ruby/classes/{Vpi → VPI}/S_vpi_value.html +37 -23
- data/ref/ruby/classes/VPI/S_vpi_value.src/M000034.html +35 -0
- data/ref/ruby/classes/VPI/S_vpi_value.src/M000035.html +42 -0
- data/ref/ruby/classes/VPI/S_vpi_value.src/M000036.html +42 -0
- data/ref/ruby/classes/{Vpi.html → VPI.html} +129 -34
- data/ref/ruby/classes/VPI.src/M000027.html +19 -0
- data/ref/ruby/classes/VPI.src/M000028.html +18 -0
- data/ref/ruby/classes/VPI.src/M000029.html +19 -0
- data/ref/ruby/classes/VPI.src/M000031.html +25 -0
- data/ref/ruby/classes/VPI.src/M000032.html +26 -0
- data/ref/ruby/classes/VerilogParser/Module/Port.html +17 -15
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000004.html +23 -0
- data/ref/ruby/classes/VerilogParser/Module/Port.src/{M000007.html → M000005.html} +0 -0
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000006.html +5 -10
- data/ref/ruby/classes/VerilogParser/Module.html +7 -5
- data/ref/ruby/classes/VerilogParser/Module.src/{M000005.html → M000003.html} +0 -0
- data/ref/ruby/classes/VerilogParser.html +7 -5
- data/ref/ruby/classes/VerilogParser.src/{M000004.html → M000002.html} +0 -0
- data/ref/ruby/created.rid +1 -1
- data/ref/ruby/files/bin/generate_rb.html +2 -2
- data/ref/ruby/files/lib/ruby-vpi/{vpi_rb.html → core/callback_rb.html} +7 -8
- data/ref/ruby/files/lib/ruby-vpi/core/edge_rb.html +114 -0
- data/ref/ruby/files/lib/ruby-vpi/core/handle_rb.html +107 -0
- data/ref/ruby/files/lib/ruby-vpi/core/scheduler_rb.html +114 -0
- data/ref/ruby/files/lib/ruby-vpi/core/struct_rb.html +108 -0
- data/ref/ruby/files/lib/ruby-vpi/core_rb.html +121 -0
- data/ref/ruby/files/lib/ruby-vpi/rcov_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi/runner_boot_loader_rb.html +5 -41
- data/ref/ruby/files/lib/ruby-vpi/runner_boot_loader_rb.src/M000001.html +3 -3
- data/ref/ruby/files/lib/ruby-vpi/runner_rb.html +1 -1
- data/ref/ruby/files/lib/ruby-vpi_rb.html +1 -1
- data/ref/ruby/fr_class_index.html +5 -4
- data/ref/ruby/fr_file_index.html +6 -1
- data/ref/ruby/fr_method_index.html +80 -60
- metadata +126 -103
- data/ext/swig_vpi.h +0 -924
- data/ext/swig_wrap.cin +0 -7083
- data/lib/ruby-vpi/vpi.rb +0 -651
- data/ref/ruby/classes/Integer.src/M000013.html +0 -18
- data/ref/ruby/classes/Integer.src/M000019.html +0 -25
- data/ref/ruby/classes/Integer.src/M000020.html +0 -30
- data/ref/ruby/classes/String.src/M000024.html +0 -18
- data/ref/ruby/classes/String.src/M000025.html +0 -18
- data/ref/ruby/classes/VerilogParser/Module/Port.src/M000008.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000035.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000037.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000039.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000041.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000043.html +0 -21
- data/ref/ruby/classes/Vpi/Handle.src/M000044.html +0 -21
- data/ref/ruby/classes/Vpi/Handle.src/M000045.html +0 -22
- data/ref/ruby/classes/Vpi/Handle.src/M000046.html +0 -50
- data/ref/ruby/classes/Vpi/Handle.src/M000047.html +0 -91
- data/ref/ruby/classes/Vpi/Handle.src/M000053.html +0 -18
- data/ref/ruby/classes/Vpi/Handle.src/M000057.html +0 -40
- data/ref/ruby/classes/Vpi/S_vpi_time.src/M000058.html +0 -18
- data/ref/ruby/classes/Vpi/S_vpi_time.src/M000059.html +0 -19
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000032.html +0 -18
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000033.html +0 -18
- data/ref/ruby/classes/Vpi/S_vpi_value.src/M000034.html +0 -18
- data/ref/ruby/classes/Vpi.src/M000029.html +0 -28
- data/ref/ruby/classes/Vpi.src/M000030.html +0 -39
- data/ref/ruby/classes/Vpi.src/M000031.html +0 -20
- data/ref/ruby/files/lib/ruby-vpi/runner_boot_loader_rb.src/M000002.html +0 -18
- data/samp/counter/RSpec/counter_proto.rb +0 -10
- data/samp/counter/xUnit/counter_proto.rb +0 -10
- data/samp/pipelined_alu/hw5_unit_proto.rb +0 -4
- data/samp/register_file/register_file_proto.rb +0 -11
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</div><p>
|
|
94
94
|
<hr>The documentation for this struct was generated from the following file:<ul>
|
|
95
95
|
<li><a class="el" href="vpi__user_8h.html">vpi_user.h</a></ul>
|
|
96
|
-
<hr size="1"><address style="align: right;"><small>Generated on
|
|
96
|
+
<hr size="1"><address style="align: right;"><small>Generated on Mon Aug 27 19:26:37 2007 for Ruby-VPI by
|
|
97
97
|
<a href="http://www.doxygen.org/index.html">
|
|
98
98
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
99
99
|
</body>
|
data/ref/c/verilog_8h.html
CHANGED
|
@@ -176,7 +176,7 @@ A proxy for all Verilog headers of interest to us.
|
|
|
176
176
|
|
|
177
177
|
</div>
|
|
178
178
|
</div><p>
|
|
179
|
-
<hr size="1"><address style="align: right;"><small>Generated on
|
|
179
|
+
<hr size="1"><address style="align: right;"><small>Generated on Mon Aug 27 19:26:36 2007 for Ruby-VPI by
|
|
180
180
|
<a href="http://www.doxygen.org/index.html">
|
|
181
181
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
182
182
|
</body>
|
data/ref/c/vlog_8c.html
CHANGED
|
@@ -154,7 +154,7 @@ Registers a callback at start of simulation to vlog_relay_main();.
|
|
|
154
154
|
|
|
155
155
|
</div>
|
|
156
156
|
</div><p>
|
|
157
|
-
<hr size="1"><address style="align: right;"><small>Generated on
|
|
157
|
+
<hr size="1"><address style="align: right;"><small>Generated on Mon Aug 27 19:26:36 2007 for Ruby-VPI by
|
|
158
158
|
<a href="http://www.doxygen.org/index.html">
|
|
159
159
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
160
160
|
</body>
|
data/ref/c/vlog_8h.html
CHANGED
|
@@ -77,7 +77,7 @@ Returns the data corresponding to the callback that caused the relay from Verilo
|
|
|
77
77
|
|
|
78
78
|
</div>
|
|
79
79
|
</div><p>
|
|
80
|
-
<hr size="1"><address style="align: right;"><small>Generated on
|
|
80
|
+
<hr size="1"><address style="align: right;"><small>Generated on Mon Aug 27 19:26:36 2007 for Ruby-VPI by
|
|
81
81
|
<a href="http://www.doxygen.org/index.html">
|
|
82
82
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
83
83
|
</body>
|
data/ref/c/vpi__user_8h.html
CHANGED
|
@@ -8732,7 +8732,7 @@ alias 1364-1995 system function subtypes to 1364-2001 function subtypes
|
|
|
8732
8732
|
|
|
8733
8733
|
</div>
|
|
8734
8734
|
</div><p>
|
|
8735
|
-
<hr size="1"><address style="align: right;"><small>Generated on
|
|
8735
|
+
<hr size="1"><address style="align: right;"><small>Generated on Mon Aug 27 19:26:37 2007 for Ruby-VPI by
|
|
8736
8736
|
<a href="http://www.doxygen.org/index.html">
|
|
8737
8737
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
|
|
8738
8738
|
</body>
|
data/ref/ruby/classes/ERB.html
CHANGED
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
<tr class="top-aligned-row">
|
|
66
66
|
<td><strong>Parent:</strong></td>
|
|
67
67
|
<td>
|
|
68
|
+
<a href="Object.html">
|
|
68
69
|
Object
|
|
70
|
+
</a>
|
|
69
71
|
</td>
|
|
70
72
|
</tr>
|
|
71
73
|
</table>
|
|
@@ -94,7 +96,7 @@ whereas <% … %> tags do <b>not</b> produce any output.
|
|
|
94
96
|
<h3 class="section-bar">Methods</h3>
|
|
95
97
|
|
|
96
98
|
<div class="name-list">
|
|
97
|
-
<a href="#
|
|
99
|
+
<a href="#M000024">new</a>
|
|
98
100
|
</div>
|
|
99
101
|
</div>
|
|
100
102
|
|
|
@@ -129,12 +131,12 @@ whereas <% … %> tags do <b>not</b> produce any output.
|
|
|
129
131
|
<div id="methods">
|
|
130
132
|
<h3 class="section-bar">Public Class methods</h3>
|
|
131
133
|
|
|
132
|
-
<div id="method-
|
|
133
|
-
<a name="
|
|
134
|
+
<div id="method-M000024" class="method-detail">
|
|
135
|
+
<a name="M000024"></a>
|
|
134
136
|
|
|
135
137
|
<div class="method-heading">
|
|
136
|
-
<a href="ERB.src/
|
|
137
|
-
onclick="popupCode('ERB.src/
|
|
138
|
+
<a href="ERB.src/M000024.html" target="Code" class="method-signature"
|
|
139
|
+
onclick="popupCode('ERB.src/M000024.html');return false;">
|
|
138
140
|
<span class="method-name">new</span><span class="method-args">(aInput, *aArgs)</span>
|
|
139
141
|
</a>
|
|
140
142
|
</div>
|
|
File without changes
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
<h3 class="section-bar">Methods</h3>
|
|
81
81
|
|
|
82
82
|
<div class="name-list">
|
|
83
|
-
<a href="#
|
|
84
|
-
<a href="#
|
|
83
|
+
<a href="#M000026">collect_args</a>
|
|
84
|
+
<a href="#M000025">sh</a>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
|
|
@@ -116,12 +116,12 @@
|
|
|
116
116
|
<div id="methods">
|
|
117
117
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
118
118
|
|
|
119
|
-
<div id="method-
|
|
120
|
-
<a name="
|
|
119
|
+
<div id="method-M000026" class="method-detail">
|
|
120
|
+
<a name="M000026"></a>
|
|
121
121
|
|
|
122
122
|
<div class="method-heading">
|
|
123
|
-
<a href="FileUtils.src/
|
|
124
|
-
onclick="popupCode('FileUtils.src/
|
|
123
|
+
<a href="FileUtils.src/M000026.html" target="Code" class="method-signature"
|
|
124
|
+
onclick="popupCode('FileUtils.src/M000026.html');return false;">
|
|
125
125
|
<span class="method-name">collect_args</span><span class="method-args">(*aArgs)</span>
|
|
126
126
|
</a>
|
|
127
127
|
</div>
|
|
@@ -133,19 +133,19 @@ Collects the given arguments into a single, sparse array.
|
|
|
133
133
|
</div>
|
|
134
134
|
</div>
|
|
135
135
|
|
|
136
|
-
<div id="method-
|
|
137
|
-
<a name="
|
|
136
|
+
<div id="method-M000025" class="method-detail">
|
|
137
|
+
<a name="M000025"></a>
|
|
138
138
|
|
|
139
139
|
<div class="method-heading">
|
|
140
|
-
<a href="FileUtils.src/
|
|
141
|
-
onclick="popupCode('FileUtils.src/
|
|
140
|
+
<a href="FileUtils.src/M000025.html" target="Code" class="method-signature"
|
|
141
|
+
onclick="popupCode('FileUtils.src/M000025.html');return false;">
|
|
142
142
|
<span class="method-name">sh</span><span class="method-args">(*aArgs, &aBlock)</span>
|
|
143
143
|
</a>
|
|
144
144
|
</div>
|
|
145
145
|
|
|
146
146
|
<div class="method-description">
|
|
147
147
|
<p>
|
|
148
|
-
An improved <a href="FileUtils.html#
|
|
148
|
+
An improved <a href="FileUtils.html#M000025">sh</a>() that also accepts
|
|
149
149
|
arrays as arguments.
|
|
150
150
|
</p>
|
|
151
151
|
</div>
|
|
File without changes
|
|
File without changes
|
data/ref/ruby/classes/Float.html
CHANGED
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
<tr class="top-aligned-row">
|
|
66
66
|
<td><strong>Parent:</strong></td>
|
|
67
67
|
<td>
|
|
68
|
+
<a href="Object.html">
|
|
68
69
|
Object
|
|
70
|
+
</a>
|
|
69
71
|
</td>
|
|
70
72
|
</tr>
|
|
71
73
|
</table>
|
|
@@ -86,7 +88,7 @@
|
|
|
86
88
|
<h3 class="section-bar">Methods</h3>
|
|
87
89
|
|
|
88
90
|
<div class="name-list">
|
|
89
|
-
<a href="#
|
|
91
|
+
<a href="#M000019">mantissa</a>
|
|
90
92
|
</div>
|
|
91
93
|
</div>
|
|
92
94
|
|
|
@@ -108,19 +110,19 @@
|
|
|
108
110
|
<div id="methods">
|
|
109
111
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
110
112
|
|
|
111
|
-
<div id="method-
|
|
112
|
-
<a name="
|
|
113
|
+
<div id="method-M000019" class="method-detail">
|
|
114
|
+
<a name="M000019"></a>
|
|
113
115
|
|
|
114
116
|
<div class="method-heading">
|
|
115
|
-
<a href="Float.src/
|
|
116
|
-
onclick="popupCode('Float.src/
|
|
117
|
+
<a href="Float.src/M000019.html" target="Code" class="method-signature"
|
|
118
|
+
onclick="popupCode('Float.src/M000019.html');return false;">
|
|
117
119
|
<span class="method-name">mantissa</span><span class="method-args">()</span>
|
|
118
120
|
</a>
|
|
119
121
|
</div>
|
|
120
122
|
|
|
121
123
|
<div class="method-description">
|
|
122
124
|
<p>
|
|
123
|
-
Returns the <a href="Float.html#
|
|
125
|
+
Returns the <a href="Float.html#M000019">mantissa</a> of this floating
|
|
124
126
|
point number
|
|
125
127
|
</p>
|
|
126
128
|
</div>
|
|
File without changes
|
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
<tr class="top-aligned-row">
|
|
66
66
|
<td><strong>Parent:</strong></td>
|
|
67
67
|
<td>
|
|
68
|
+
<a href="Object.html">
|
|
68
69
|
Object
|
|
70
|
+
</a>
|
|
69
71
|
</td>
|
|
70
72
|
</tr>
|
|
71
73
|
</table>
|
|
@@ -94,18 +96,18 @@ Instead, they return the new value as their result.
|
|
|
94
96
|
<h3 class="section-bar">Methods</h3>
|
|
95
97
|
|
|
96
98
|
<div class="name-list">
|
|
97
|
-
<a href="#
|
|
98
|
-
<a href="#
|
|
99
|
-
<a href="#
|
|
100
|
-
<a href="#
|
|
101
|
-
<a href="#
|
|
102
|
-
<a href="#
|
|
103
|
-
<a href="#
|
|
104
|
-
<a href="#
|
|
105
|
-
<a href="#
|
|
106
|
-
<a href="#
|
|
107
|
-
<a href="#
|
|
108
|
-
<a href="#
|
|
99
|
+
<a href="#M000017">extend_sign</a>
|
|
100
|
+
<a href="#M000008">length</a>
|
|
101
|
+
<a href="#M000009">limit</a>
|
|
102
|
+
<a href="#M000007">log2</a>
|
|
103
|
+
<a href="#M000011">mask</a>
|
|
104
|
+
<a href="#M000013">max</a>
|
|
105
|
+
<a href="#M000015">pack</a>
|
|
106
|
+
<a href="#M000018">split</a>
|
|
107
|
+
<a href="#M000010">to_limit</a>
|
|
108
|
+
<a href="#M000012">to_mask</a>
|
|
109
|
+
<a href="#M000014">to_max</a>
|
|
110
|
+
<a href="#M000016">unpack</a>
|
|
109
111
|
</div>
|
|
110
112
|
</div>
|
|
111
113
|
|
|
@@ -127,12 +129,12 @@ Instead, they return the new value as their result.
|
|
|
127
129
|
<div id="methods">
|
|
128
130
|
<h3 class="section-bar">Public Instance methods</h3>
|
|
129
131
|
|
|
130
|
-
<div id="method-
|
|
131
|
-
<a name="
|
|
132
|
+
<div id="method-M000017" class="method-detail">
|
|
133
|
+
<a name="M000017"></a>
|
|
132
134
|
|
|
133
135
|
<div class="method-heading">
|
|
134
|
-
<a href="Integer.src/
|
|
135
|
-
onclick="popupCode('Integer.src/
|
|
136
|
+
<a href="Integer.src/M000017.html" target="Code" class="method-signature"
|
|
137
|
+
onclick="popupCode('Integer.src/M000017.html');return false;">
|
|
136
138
|
<span class="method-name">extend_sign</span><span class="method-args">(aOrigWidth, aExtWidth)</span>
|
|
137
139
|
</a>
|
|
138
140
|
</div>
|
|
@@ -146,12 +148,12 @@ bits).
|
|
|
146
148
|
</div>
|
|
147
149
|
</div>
|
|
148
150
|
|
|
149
|
-
<div id="method-
|
|
150
|
-
<a name="
|
|
151
|
+
<div id="method-M000008" class="method-detail">
|
|
152
|
+
<a name="M000008"></a>
|
|
151
153
|
|
|
152
154
|
<div class="method-heading">
|
|
153
|
-
<a href="Integer.src/
|
|
154
|
-
onclick="popupCode('Integer.src/
|
|
155
|
+
<a href="Integer.src/M000008.html" target="Code" class="method-signature"
|
|
156
|
+
onclick="popupCode('Integer.src/M000008.html');return false;">
|
|
155
157
|
<span class="method-name">length</span><span class="method-args">()</span>
|
|
156
158
|
</a>
|
|
157
159
|
</div>
|
|
@@ -163,12 +165,12 @@ Returns the minimum number of bits necessary to represent this integer.
|
|
|
163
165
|
</div>
|
|
164
166
|
</div>
|
|
165
167
|
|
|
166
|
-
<div id="method-
|
|
167
|
-
<a name="
|
|
168
|
+
<div id="method-M000009" class="method-detail">
|
|
169
|
+
<a name="M000009"></a>
|
|
168
170
|
|
|
169
171
|
<div class="method-heading">
|
|
170
|
-
<a href="Integer.src/
|
|
171
|
-
onclick="popupCode('Integer.src/
|
|
172
|
+
<a href="Integer.src/M000009.html" target="Code" class="method-signature"
|
|
173
|
+
onclick="popupCode('Integer.src/M000009.html');return false;">
|
|
172
174
|
<span class="method-name">limit</span><span class="method-args">()</span>
|
|
173
175
|
</a>
|
|
174
176
|
</div>
|
|
@@ -176,18 +178,18 @@ Returns the minimum number of bits necessary to represent this integer.
|
|
|
176
178
|
<div class="method-description">
|
|
177
179
|
<p>
|
|
178
180
|
Returns the lowest upper-bound of this integer. This integer cannot reach
|
|
179
|
-
the <a href="Integer.html#
|
|
181
|
+
the <a href="Integer.html#M000009">limit</a> without occupying more bits in
|
|
180
182
|
its binary representation.
|
|
181
183
|
</p>
|
|
182
184
|
</div>
|
|
183
185
|
</div>
|
|
184
186
|
|
|
185
|
-
<div id="method-
|
|
186
|
-
<a name="
|
|
187
|
+
<div id="method-M000007" class="method-detail">
|
|
188
|
+
<a name="M000007"></a>
|
|
187
189
|
|
|
188
190
|
<div class="method-heading">
|
|
189
|
-
<a href="Integer.src/
|
|
190
|
-
onclick="popupCode('Integer.src/
|
|
191
|
+
<a href="Integer.src/M000007.html" target="Code" class="method-signature"
|
|
192
|
+
onclick="popupCode('Integer.src/M000007.html');return false;">
|
|
191
193
|
<span class="method-name">log2</span><span class="method-args">()</span>
|
|
192
194
|
</a>
|
|
193
195
|
</div>
|
|
@@ -199,26 +201,26 @@ Returns the ceiling of the logarithm (base 2) of this positive integer.
|
|
|
199
201
|
</div>
|
|
200
202
|
</div>
|
|
201
203
|
|
|
202
|
-
<div id="method-
|
|
203
|
-
<a name="
|
|
204
|
+
<div id="method-M000011" class="method-detail">
|
|
205
|
+
<a name="M000011"></a>
|
|
204
206
|
|
|
205
207
|
<div class="method-heading">
|
|
206
|
-
<a href="Integer.src/
|
|
207
|
-
onclick="popupCode('Integer.src/
|
|
208
|
+
<a href="Integer.src/M000011.html" target="Code" class="method-signature"
|
|
209
|
+
onclick="popupCode('Integer.src/M000011.html');return false;">
|
|
208
210
|
<span class="method-name">mask</span><span class="method-args">()</span>
|
|
209
211
|
</a>
|
|
210
212
|
</div>
|
|
211
213
|
|
|
212
214
|
<div class="method-description">
|
|
213
215
|
<p>
|
|
214
|
-
Returns a bit-<a href="Integer.html#
|
|
216
|
+
Returns a bit-<a href="Integer.html#M000011">mask</a> capable of masking
|
|
215
217
|
this integer.
|
|
216
218
|
</p>
|
|
217
219
|
</div>
|
|
218
220
|
</div>
|
|
219
221
|
|
|
220
|
-
<div id="method-
|
|
221
|
-
<a name="
|
|
222
|
+
<div id="method-M000013" class="method-detail">
|
|
223
|
+
<a name="M000013"></a>
|
|
222
224
|
|
|
223
225
|
<div class="method-heading">
|
|
224
226
|
<span class="method-name">max</span><span class="method-args">()</span>
|
|
@@ -226,37 +228,37 @@ this integer.
|
|
|
226
228
|
|
|
227
229
|
<div class="method-description">
|
|
228
230
|
<p>
|
|
229
|
-
Alias for <a href="Integer.html#
|
|
231
|
+
Alias for <a href="Integer.html#M000011">mask</a>
|
|
230
232
|
</p>
|
|
231
233
|
</div>
|
|
232
234
|
</div>
|
|
233
235
|
|
|
234
|
-
<div id="method-
|
|
235
|
-
<a name="
|
|
236
|
+
<div id="method-M000015" class="method-detail">
|
|
237
|
+
<a name="M000015"></a>
|
|
236
238
|
|
|
237
239
|
<div class="method-heading">
|
|
238
|
-
<a href="Integer.src/
|
|
239
|
-
onclick="popupCode('Integer.src/
|
|
240
|
+
<a href="Integer.src/M000015.html" target="Code" class="method-signature"
|
|
241
|
+
onclick="popupCode('Integer.src/M000015.html');return false;">
|
|
240
242
|
<span class="method-name">pack</span><span class="method-args">(aPackedWidth)</span>
|
|
241
243
|
</a>
|
|
242
244
|
</div>
|
|
243
245
|
|
|
244
246
|
<div class="method-description">
|
|
245
247
|
<p>
|
|
246
|
-
Transforms this infinite-<a href="Integer.html#
|
|
247
|
-
integer into a fixed-<a href="Integer.html#
|
|
248
|
+
Transforms this infinite-<a href="Integer.html#M000008">length</a> Ruby
|
|
249
|
+
integer into a fixed-<a href="Integer.html#M000008">length</a> integer
|
|
248
250
|
(represented in two‘s complement form) that has the given width
|
|
249
251
|
(number of bits).
|
|
250
252
|
</p>
|
|
251
253
|
</div>
|
|
252
254
|
</div>
|
|
253
255
|
|
|
254
|
-
<div id="method-
|
|
255
|
-
<a name="
|
|
256
|
+
<div id="method-M000018" class="method-detail">
|
|
257
|
+
<a name="M000018"></a>
|
|
256
258
|
|
|
257
259
|
<div class="method-heading">
|
|
258
|
-
<a href="Integer.src/
|
|
259
|
-
onclick="popupCode('Integer.src/
|
|
260
|
+
<a href="Integer.src/M000018.html" target="Code" class="method-signature"
|
|
261
|
+
onclick="popupCode('Integer.src/M000018.html');return false;">
|
|
260
262
|
<span class="method-name">split</span><span class="method-args">(aWidth = 8)</span>
|
|
261
263
|
</a>
|
|
262
264
|
</div>
|
|
@@ -281,12 +283,12 @@ binary numbers; for example:
|
|
|
281
283
|
</div>
|
|
282
284
|
</div>
|
|
283
285
|
|
|
284
|
-
<div id="method-
|
|
285
|
-
<a name="
|
|
286
|
+
<div id="method-M000010" class="method-detail">
|
|
287
|
+
<a name="M000010"></a>
|
|
286
288
|
|
|
287
289
|
<div class="method-heading">
|
|
288
|
-
<a href="Integer.src/
|
|
289
|
-
onclick="popupCode('Integer.src/
|
|
290
|
+
<a href="Integer.src/M000010.html" target="Code" class="method-signature"
|
|
291
|
+
onclick="popupCode('Integer.src/M000010.html');return false;">
|
|
290
292
|
<span class="method-name">to_limit</span><span class="method-args">()</span>
|
|
291
293
|
</a>
|
|
292
294
|
</div>
|
|
@@ -299,26 +301,26 @@ bits.
|
|
|
299
301
|
</div>
|
|
300
302
|
</div>
|
|
301
303
|
|
|
302
|
-
<div id="method-
|
|
303
|
-
<a name="
|
|
304
|
+
<div id="method-M000012" class="method-detail">
|
|
305
|
+
<a name="M000012"></a>
|
|
304
306
|
|
|
305
307
|
<div class="method-heading">
|
|
306
|
-
<a href="Integer.src/
|
|
307
|
-
onclick="popupCode('Integer.src/
|
|
308
|
+
<a href="Integer.src/M000012.html" target="Code" class="method-signature"
|
|
309
|
+
onclick="popupCode('Integer.src/M000012.html');return false;">
|
|
308
310
|
<span class="method-name">to_mask</span><span class="method-args">()</span>
|
|
309
311
|
</a>
|
|
310
312
|
</div>
|
|
311
313
|
|
|
312
314
|
<div class="method-description">
|
|
313
315
|
<p>
|
|
314
|
-
Returns a bit-<a href="Integer.html#
|
|
316
|
+
Returns a bit-<a href="Integer.html#M000011">mask</a> capable of masking an
|
|
315
317
|
integer with <b>this</b> number of bits.
|
|
316
318
|
</p>
|
|
317
319
|
</div>
|
|
318
320
|
</div>
|
|
319
321
|
|
|
320
|
-
<div id="method-
|
|
321
|
-
<a name="
|
|
322
|
+
<div id="method-M000014" class="method-detail">
|
|
323
|
+
<a name="M000014"></a>
|
|
322
324
|
|
|
323
325
|
<div class="method-heading">
|
|
324
326
|
<span class="method-name">to_max</span><span class="method-args">()</span>
|
|
@@ -326,26 +328,26 @@ integer with <b>this</b> number of bits.
|
|
|
326
328
|
|
|
327
329
|
<div class="method-description">
|
|
328
330
|
<p>
|
|
329
|
-
Alias for <a href="Integer.html#
|
|
331
|
+
Alias for <a href="Integer.html#M000012">to_mask</a>
|
|
330
332
|
</p>
|
|
331
333
|
</div>
|
|
332
334
|
</div>
|
|
333
335
|
|
|
334
|
-
<div id="method-
|
|
335
|
-
<a name="
|
|
336
|
+
<div id="method-M000016" class="method-detail">
|
|
337
|
+
<a name="M000016"></a>
|
|
336
338
|
|
|
337
339
|
<div class="method-heading">
|
|
338
|
-
<a href="Integer.src/
|
|
339
|
-
onclick="popupCode('Integer.src/
|
|
340
|
+
<a href="Integer.src/M000016.html" target="Code" class="method-signature"
|
|
341
|
+
onclick="popupCode('Integer.src/M000016.html');return false;">
|
|
340
342
|
<span class="method-name">unpack</span><span class="method-args">(aPackedWidth)</span>
|
|
341
343
|
</a>
|
|
342
344
|
</div>
|
|
343
345
|
|
|
344
346
|
<div class="method-description">
|
|
345
347
|
<p>
|
|
346
|
-
Transforms this fixed-<a href="Integer.html#
|
|
348
|
+
Transforms this fixed-<a href="Integer.html#M000008">length</a> integer
|
|
347
349
|
(represented in two‘s complement form) that has the given width
|
|
348
|
-
(number of bits) into an infinite-<a href="Integer.html#
|
|
350
|
+
(number of bits) into an infinite-<a href="Integer.html#M000008">length</a>
|
|
349
351
|
Ruby integer.
|
|
350
352
|
</p>
|
|
351
353
|
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>log2 (Integer)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 11</span>
|
|
14
|
+
11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log2</span>
|
|
15
|
+
12: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"integer must be positive"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span> <span class="ruby-operator"><</span> <span class="ruby-value">0</span>
|
|
16
|
+
13: <span class="ruby-identifier">bin</span> = <span class="ruby-identifier">to_s</span>(<span class="ruby-value">2</span>)
|
|
17
|
+
14:
|
|
18
|
+
15: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bin</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^10+$/</span>
|
|
19
|
+
16: <span class="ruby-identifier">bin</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
|
20
|
+
17: <span class="ruby-keyword kw">else</span>
|
|
21
|
+
18: <span class="ruby-identifier">bin</span>.<span class="ruby-identifier">length</span>
|
|
22
|
+
19: <span class="ruby-keyword kw">end</span>
|
|
23
|
+
20: <span class="ruby-keyword kw">end</span></pre>
|
|
24
|
+
</body>
|
|
25
|
+
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>length (Integer)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 23</span>
|
|
14
|
+
23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
|
|
15
|
+
24: <span class="ruby-identifier">to_s</span>(<span class="ruby-value">2</span>).<span class="ruby-identifier">length</span>
|
|
16
|
+
25: <span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,21 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>limit (Integer)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
14:
|
|
18
|
-
15: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">bin</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/^10+$/</span>
|
|
19
|
-
16: <span class="ruby-identifier">bin</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
|
20
|
-
17: <span class="ruby-keyword kw">else</span>
|
|
21
|
-
18: <span class="ruby-identifier">bin</span>.<span class="ruby-identifier">length</span>
|
|
22
|
-
19: <span class="ruby-keyword kw">end</span>
|
|
23
|
-
20: <span class="ruby-keyword kw">end</span></pre>
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 29</span>
|
|
14
|
+
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">limit</span>
|
|
15
|
+
30: <span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_limit</span>
|
|
16
|
+
31: <span class="ruby-keyword kw">end</span></pre>
|
|
24
17
|
</body>
|
|
25
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>to_limit (Integer)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 34</span>
|
|
14
|
+
34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_limit</span>
|
|
15
|
+
35: <span class="ruby-value">2</span> <span class="ruby-operator">**</span> <span class="ruby-keyword kw">self</span>
|
|
16
|
+
36: <span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>mask (Integer)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 40</span>
|
|
14
|
+
40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mask</span>
|
|
15
|
+
41: <span class="ruby-identifier">length</span>.<span class="ruby-identifier">to_mask</span>
|
|
16
|
+
42: <span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
<html>
|
|
7
7
|
<head>
|
|
8
|
-
<title>
|
|
8
|
+
<title>to_mask (Integer)</title>
|
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
11
|
</head>
|
|
12
12
|
<body class="standalone-code">
|
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/ruby-vpi/integer.rb, line 45</span>
|
|
14
|
+
45: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_mask</span>
|
|
15
|
+
46: <span class="ruby-identifier">to_limit</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
|
16
|
+
47: <span class="ruby-keyword kw">end</span></pre>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|