modai_prct12 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.travis.yml +6 -0
- data/Gemfile +9 -0
- data/Guardfile +346 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +6 -0
- data/documentacion/classes/MatrizAbstracta.html +144 -0
- data/documentacion/classes/MatrizAbstracta.src/M000032.html +21 -0
- data/documentacion/classes/MatrizDSL.html +212 -0
- data/documentacion/classes/MatrizDSL.src/M000028.html +36 -0
- data/documentacion/classes/MatrizDSL.src/M000029.html +20 -0
- data/documentacion/classes/MatrizDSL.src/M000030.html +27 -0
- data/documentacion/classes/MatrizDSL.src/M000031.html +40 -0
- data/documentacion/classes/MatrizDensa.html +345 -0
- data/documentacion/classes/MatrizDensa.src/M000016.html +18 -0
- data/documentacion/classes/MatrizDensa.src/M000017.html +37 -0
- data/documentacion/classes/MatrizDensa.src/M000018.html +27 -0
- data/documentacion/classes/MatrizDensa.src/M000019.html +44 -0
- data/documentacion/classes/MatrizDensa.src/M000020.html +41 -0
- data/documentacion/classes/MatrizDensa.src/M000021.html +29 -0
- data/documentacion/classes/MatrizDensa.src/M000022.html +37 -0
- data/documentacion/classes/MatrizDensa.src/M000023.html +28 -0
- data/documentacion/classes/MatrizDensa.src/M000024.html +28 -0
- data/documentacion/classes/MatrizDensa.src/M000025.html +35 -0
- data/documentacion/classes/MatrizDensa.src/M000026.html +18 -0
- data/documentacion/classes/MatrizDensa.src/M000027.html +37 -0
- data/documentacion/classes/MatrizDispersa.html +314 -0
- data/documentacion/classes/MatrizDispersa.src/M000033.html +22 -0
- data/documentacion/classes/MatrizDispersa.src/M000034.html +49 -0
- data/documentacion/classes/MatrizDispersa.src/M000035.html +33 -0
- data/documentacion/classes/MatrizDispersa.src/M000036.html +64 -0
- data/documentacion/classes/MatrizDispersa.src/M000037.html +66 -0
- data/documentacion/classes/MatrizDispersa.src/M000038.html +53 -0
- data/documentacion/classes/MatrizDispersa.src/M000039.html +31 -0
- data/documentacion/classes/MatrizDispersa.src/M000040.html +31 -0
- data/documentacion/classes/MatrizDispersa.src/M000041.html +35 -0
- data/documentacion/classes/MatrizDispersa.src/M000042.html +18 -0
- data/documentacion/classes/ModaiPrct12.html +147 -0
- data/documentacion/classes/Racional.html +380 -0
- data/documentacion/classes/Racional.src/M000002.html +24 -0
- data/documentacion/classes/Racional.src/M000003.html +18 -0
- data/documentacion/classes/Racional.src/M000004.html +22 -0
- data/documentacion/classes/Racional.src/M000005.html +18 -0
- data/documentacion/classes/Racional.src/M000006.html +18 -0
- data/documentacion/classes/Racional.src/M000007.html +18 -0
- data/documentacion/classes/Racional.src/M000008.html +18 -0
- data/documentacion/classes/Racional.src/M000009.html +23 -0
- data/documentacion/classes/Racional.src/M000010.html +23 -0
- data/documentacion/classes/Racional.src/M000011.html +23 -0
- data/documentacion/classes/Racional.src/M000012.html +23 -0
- data/documentacion/classes/Racional.src/M000013.html +23 -0
- data/documentacion/classes/Racional.src/M000014.html +19 -0
- data/documentacion/classes/Racional.src/M000015.html +18 -0
- data/documentacion/created.rid +1 -0
- data/documentacion/files/lib/modai_prct12/gcd_rb.html +132 -0
- data/documentacion/files/lib/modai_prct12/gcd_rb.src/M000001.html +22 -0
- data/documentacion/files/lib/modai_prct12/matrizAbstracta_rb.html +108 -0
- data/documentacion/files/lib/modai_prct12/matrizDSL_rb.html +105 -0
- data/documentacion/files/lib/modai_prct12/matrizDensa_rb.html +105 -0
- data/documentacion/files/lib/modai_prct12/matrizDispersa_rb.html +106 -0
- data/documentacion/files/lib/modai_prct12/racional_rb.html +114 -0
- data/documentacion/files/lib/modai_prct12/version_rb.html +101 -0
- data/documentacion/files/lib/modai_prct12_rb.html +112 -0
- data/documentacion/files/spec/modai_prct12_spec_rb.html +116 -0
- data/documentacion/files/spec/spec_helper_rb.html +114 -0
- data/documentacion/fr_class_index.html +32 -0
- data/documentacion/fr_file_index.html +36 -0
- data/documentacion/fr_method_index.html +68 -0
- data/documentacion/index.html +24 -0
- data/documentacion/rdoc-style.css +208 -0
- data/lib/modai_prct12.rb +26 -0
- data/lib/modai_prct12/gcd.rb +9 -0
- data/lib/modai_prct12/matrizAbstracta.rb +30 -0
- data/lib/modai_prct12/matrizDSL.rb +120 -0
- data/lib/modai_prct12/matrizDensa.rb +232 -0
- data/lib/modai_prct12/matrizDispersa.rb +280 -0
- data/lib/modai_prct12/racional.rb +121 -0
- data/lib/modai_prct12/version.rb +3 -0
- data/modai_prct12.gemspec +23 -0
- data/spec/modai_prct12_spec.rb +251 -0
- data/spec/spec_helper.rb +17 -0
- metadata +157 -0
data/Rakefile
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: MatrizAbstracta</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">MatrizAbstracta</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/modai_prct12/matrizAbstracta_rb.html">
|
59
|
+
lib/modai_prct12/matrizAbstracta.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
<div id="description">
|
82
|
+
<h1>Clase abstracta para herencia común de matrices densa y dispersa</h1>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<div id="method-list">
|
90
|
+
<h3 class="section-bar">Methods</h3>
|
91
|
+
|
92
|
+
<div class="name-list">
|
93
|
+
<a href="#M000032">new</a>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if includes -->
|
101
|
+
|
102
|
+
<div id="section">
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<!-- if method_list -->
|
112
|
+
<div id="methods">
|
113
|
+
<h3 class="section-bar">Public Class methods</h3>
|
114
|
+
|
115
|
+
<div id="method-M000032" class="method-detail">
|
116
|
+
<a name="M000032"></a>
|
117
|
+
|
118
|
+
<div class="method-heading">
|
119
|
+
<a href="MatrizAbstracta.src/M000032.html" target="Code" class="method-signature"
|
120
|
+
onclick="popupCode('MatrizAbstracta.src/M000032.html');return false;">
|
121
|
+
<span class="method-name">new</span><span class="method-args">(matriz)</span>
|
122
|
+
</a>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
<div class="method-description">
|
126
|
+
<p>
|
127
|
+
Inicialización
|
128
|
+
</p>
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
|
139
|
+
<div id="validator-badges">
|
140
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
</body>
|
144
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
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>new (MatrizAbstracta)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/modai_prct12/matrizAbstracta.rb, line 24</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">matriz</span>)
|
15
|
+
<span class="ruby-ivar">@matriz</span> = <span class="ruby-identifier">matriz</span>
|
16
|
+
<span class="ruby-ivar">@filas</span> = <span class="ruby-identifier">matriz</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">size</span>
|
17
|
+
<span class="ruby-ivar">@columnas</span> = <span class="ruby-identifier">matriz</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">size</span>
|
18
|
+
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,212 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: MatrizDSL</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">MatrizDSL</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/modai_prct12/matrizDSL_rb.html">
|
59
|
+
lib/modai_prct12/matrizDSL.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="MatrizAbstracta.html">
|
69
|
+
MatrizAbstracta
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
<div id="description">
|
84
|
+
<h1>Clase de Matriz DSL</h1>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
</div>
|
90
|
+
|
91
|
+
<div id="method-list">
|
92
|
+
<h3 class="section-bar">Methods</h3>
|
93
|
+
|
94
|
+
<div class="name-list">
|
95
|
+
<a href="#M000031">execute</a>
|
96
|
+
<a href="#M000028">new</a>
|
97
|
+
<a href="#M000030">operand</a>
|
98
|
+
<a href="#M000029">option</a>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
<!-- if includes -->
|
106
|
+
|
107
|
+
<div id="section">
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
<div id="attribute-list">
|
114
|
+
<h3 class="section-bar">Attributes</h3>
|
115
|
+
|
116
|
+
<div class="name-list">
|
117
|
+
<table>
|
118
|
+
<tr class="top-aligned-row context-row">
|
119
|
+
<td class="context-item-name">matrizA</td>
|
120
|
+
<td class="context-item-value"> [R] </td>
|
121
|
+
<td class="context-item-desc"></td>
|
122
|
+
</tr>
|
123
|
+
<tr class="top-aligned-row context-row">
|
124
|
+
<td class="context-item-name">matrizB</td>
|
125
|
+
<td class="context-item-value"> [R] </td>
|
126
|
+
<td class="context-item-desc"></td>
|
127
|
+
</tr>
|
128
|
+
</table>
|
129
|
+
</div>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<!-- if method_list -->
|
135
|
+
<div id="methods">
|
136
|
+
<h3 class="section-bar">Public Class methods</h3>
|
137
|
+
|
138
|
+
<div id="method-M000028" class="method-detail">
|
139
|
+
<a name="M000028"></a>
|
140
|
+
|
141
|
+
<div class="method-heading">
|
142
|
+
<a href="MatrizDSL.src/M000028.html" target="Code" class="method-signature"
|
143
|
+
onclick="popupCode('MatrizDSL.src/M000028.html');return false;">
|
144
|
+
<span class="method-name">new</span><span class="method-args">(operacion)</span>
|
145
|
+
</a>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
<h2>Inicialización</h2>
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
154
|
+
|
155
|
+
<div id="method-M000031" class="method-detail">
|
156
|
+
<a name="M000031"></a>
|
157
|
+
|
158
|
+
<div class="method-heading">
|
159
|
+
<a href="MatrizDSL.src/M000031.html" target="Code" class="method-signature"
|
160
|
+
onclick="popupCode('MatrizDSL.src/M000031.html');return false;">
|
161
|
+
<span class="method-name">execute</span><span class="method-args">()</span>
|
162
|
+
</a>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="method-description">
|
166
|
+
<h2>Definimos la función de ejecución de la operación</h2>
|
167
|
+
</div>
|
168
|
+
</div>
|
169
|
+
|
170
|
+
<div id="method-M000030" class="method-detail">
|
171
|
+
<a name="M000030"></a>
|
172
|
+
|
173
|
+
<div class="method-heading">
|
174
|
+
<a href="MatrizDSL.src/M000030.html" target="Code" class="method-signature"
|
175
|
+
onclick="popupCode('MatrizDSL.src/M000030.html');return false;">
|
176
|
+
<span class="method-name">operand</span><span class="method-args">(other)</span>
|
177
|
+
</a>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
<div class="method-description">
|
181
|
+
<h2>Definimos el operando</h2>
|
182
|
+
</div>
|
183
|
+
</div>
|
184
|
+
|
185
|
+
<div id="method-M000029" class="method-detail">
|
186
|
+
<a name="M000029"></a>
|
187
|
+
|
188
|
+
<div class="method-heading">
|
189
|
+
<a href="MatrizDSL.src/M000029.html" target="Code" class="method-signature"
|
190
|
+
onclick="popupCode('MatrizDSL.src/M000029.html');return false;">
|
191
|
+
<span class="method-name">option</span><span class="method-args">(opc)</span>
|
192
|
+
</a>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
<h2>Asignamos la opción de matriz</h2>
|
197
|
+
</div>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
|
204
|
+
</div>
|
205
|
+
|
206
|
+
|
207
|
+
<div id="validator-badges">
|
208
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
</body>
|
212
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
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>new (MatrizDSL)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/modai_prct12/matrizDSL.rb, line 5</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">operacion</span>)
|
15
|
+
|
16
|
+
<span class="ruby-ivar">@op_texto</span> = <span class="ruby-identifier">operacion</span>.<span class="ruby-identifier">to_s</span>
|
17
|
+
|
18
|
+
<span class="ruby-comment cmt"># Por defecto la operación será & para devolver error</span>
|
19
|
+
<span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@op_texto</span>
|
20
|
+
|
21
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"suma"</span>
|
22
|
+
<span class="ruby-ivar">@op</span> = <span class="ruby-value str">"+"</span>
|
23
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"resta"</span>
|
24
|
+
<span class="ruby-ivar">@op</span> = <span class="ruby-value str">"-"</span>
|
25
|
+
<span class="ruby-keyword kw">when</span> <span class="ruby-value str">"producto"</span>
|
26
|
+
<span class="ruby-ivar">@op</span> = <span class="ruby-value str">"*"</span>
|
27
|
+
<span class="ruby-keyword kw">else</span>
|
28
|
+
<span class="ruby-ivar">@op</span> = <span class="ruby-value str">"&"</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
|
31
|
+
<span class="ruby-ivar">@matA</span> = <span class="ruby-keyword kw">nil</span>
|
32
|
+
<span class="ruby-ivar">@matB</span> = <span class="ruby-keyword kw">nil</span>
|
33
|
+
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
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>option (MatrizDSL)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/modai_prct12/matrizDSL.rb, line 30</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option</span>(<span class="ruby-identifier">opc</span>)
|
15
|
+
|
16
|
+
<span class="ruby-ivar">@claseMat</span> = <span class="ruby-identifier">opc</span>
|
17
|
+
|
18
|
+
<span class="ruby-keyword kw">end</span></pre>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
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>operand (MatrizDSL)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
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/modai_prct12/matrizDSL.rb, line 37</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">operand</span>(<span class="ruby-identifier">other</span>)
|
15
|
+
|
16
|
+
|
17
|
+
<span class="ruby-keyword kw">if</span>(<span class="ruby-ivar">@matA</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>)
|
18
|
+
<span class="ruby-ivar">@matA</span> = <span class="ruby-identifier">other</span>
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-ivar">@matB</span> = <span class="ruby-identifier">other</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">execute</span>
|
24
|
+
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</html>
|