eymiha_util 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/gem_package.rb +1 -1
- data/html/classes/BaseEnvelope.html +203 -203
- data/html/classes/BaseEnvelope.src/M000001.html +15 -15
- data/html/classes/BaseEnvelope.src/M000002.html +15 -15
- data/html/classes/BaseEnvelope.src/M000003.html +15 -15
- data/html/classes/Enum.html +133 -0
- data/html/classes/Envelope.html +328 -328
- data/html/classes/Envelope.src/M000016.html +15 -15
- data/html/classes/Envelope.src/M000017.html +15 -15
- data/html/classes/Envelope.src/M000018.html +15 -15
- data/html/classes/Envelope.src/M000019.html +15 -15
- data/html/classes/Envelope.src/M000020.html +15 -15
- data/html/classes/Envelope.src/M000021.html +15 -15
- data/html/classes/Envelope.src/M000023.html +15 -15
- data/html/classes/EnvelopeException.html +118 -118
- data/html/classes/ForwardReference.html +203 -203
- data/html/classes/ForwardReference.src/M000024.html +20 -20
- data/html/classes/ForwardReference.src/M000025.html +17 -17
- data/html/classes/ForwardReferencer.html +173 -173
- data/html/classes/ForwardReferencing.html +319 -319
- data/html/classes/ForwardReferencing.src/M000026.html +19 -19
- data/html/classes/ForwardReferencing.src/M000027.html +19 -19
- data/html/classes/ForwardReferencing.src/M000028.html +19 -19
- data/html/classes/ForwardReferencing.src/M000029.html +31 -31
- data/html/classes/ForwardReferencing.src/M000030.html +17 -17
- data/html/classes/ForwardReferencing.src/M000031.html +24 -24
- data/html/classes/ForwardReferencing.src/M000032.html +17 -17
- data/html/classes/ForwardReferencing.src/M000033.html +17 -17
- data/html/classes/ForwardReferencing.src/M000034.html +17 -17
- data/html/classes/Histogram.html +324 -324
- data/html/classes/Histogram.src/M000007.html +15 -15
- data/html/classes/Histogram.src/M000008.html +15 -15
- data/html/classes/Histogram.src/M000009.html +15 -15
- data/html/classes/Histogram.src/M000010.html +15 -15
- data/html/classes/Histogram.src/M000011.html +15 -15
- data/html/classes/Histogram.src/M000012.html +15 -15
- data/html/classes/Histogram.src/M000013.html +15 -15
- data/html/classes/Histogram.src/M000014.html +15 -15
- data/html/classes/Histogram.src/M000015.html +15 -15
- data/html/classes/HistogramException.html +117 -117
- data/html/classes/MethodicHash.html +221 -221
- data/html/classes/MethodicHash.src/M000004.html +15 -15
- data/html/classes/MethodicHash.src/M000005.html +15 -15
- data/html/classes/MethodicHash.src/M000006.html +15 -15
- data/html/created.rid +1 -1
- data/html/files/lib/enum_rb.html +123 -0
- data/html/files/lib/envelope_rb.html +108 -108
- data/html/files/lib/forward_referencing_rb.html +119 -119
- data/html/files/lib/histogram_rb.html +108 -108
- data/html/files/lib/methodic_hash_rb.html +139 -139
- data/html/fr_class_index.html +35 -34
- data/html/fr_file_index.html +30 -29
- data/html/fr_method_index.html +59 -59
- data/html/index.html +23 -23
- data/html/rdoc-style.css +207 -207
- data/lib/enum.rb +57 -0
- data/test/tc_enum.rb +70 -0
- metadata +6 -2
@@ -1,222 +1,222 @@
|
|
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: MethodicHash</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">MethodicHash</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/methodic_hash_rb.html">
|
59
|
-
lib/methodic_hash.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
|
-
Hash
|
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
|
-
<p>
|
83
|
-
The <a href="MethodicHash.html">MethodicHash</a> is some <a
|
84
|
-
href="MethodicHash.html#M000006">method_missing</a> magic that uses method
|
85
|
-
names as hash keys, so hash assignment and lookup appear to be attribute
|
86
|
-
writing and reading. For instance, if
|
87
|
-
</p>
|
88
|
-
<pre>
|
89
|
-
mh = MethodicHash.new
|
90
|
-
mh['four'] = 'iv'
|
91
|
-
mh[:seven] = 'vii'
|
92
|
-
mh.eighteen = 'xviii'
|
93
|
-
</pre>
|
94
|
-
<p>
|
95
|
-
then
|
96
|
-
</p>
|
97
|
-
<pre>
|
98
|
-
mh['four'] ---> 'iv'
|
99
|
-
mh[:four] ---> 'iv'
|
100
|
-
mh.four ---> 'iv'
|
101
|
-
mh['seven'] ---> 'vii'
|
102
|
-
mh[:seven] ---> 'vii'
|
103
|
-
mh.seven ---> 'vii'
|
104
|
-
mh['eighteen'] ---> 'xviii'
|
105
|
-
mh[:eighteen] ---> 'xviii'
|
106
|
-
mh.eighteen ---> 'xviii'
|
107
|
-
</pre>
|
108
|
-
<p>
|
109
|
-
This allows access to simply declared facts to be embedded in Ruby code and
|
110
|
-
leverages the possibility of hashing procs.
|
111
|
-
</p>
|
112
|
-
<p>
|
113
|
-
Note that if the hash uses anything but strings or symbols as keys, the
|
114
|
-
magic stands a good chance of failing, raising an error or acting in a
|
115
|
-
bizarre manner. Note also that methods of the Hash cannot be used as
|
116
|
-
‘attribute’ names.
|
117
|
-
</p>
|
118
|
-
|
119
|
-
</div>
|
120
|
-
|
121
|
-
|
122
|
-
</div>
|
123
|
-
|
124
|
-
<div id="method-list">
|
125
|
-
<h3 class="section-bar">Methods</h3>
|
126
|
-
|
127
|
-
<div class="name-list">
|
128
|
-
<a href="#M000004">[]</a>
|
129
|
-
<a href="#M000005">delete</a>
|
130
|
-
<a href="#M000006">method_missing</a>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
|
134
|
-
</div>
|
135
|
-
|
136
|
-
|
137
|
-
<!-- if includes -->
|
138
|
-
|
139
|
-
<div id="section">
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<!-- if method_list -->
|
149
|
-
<div id="methods">
|
150
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
151
|
-
|
152
|
-
<div id="method-M000004" class="method-detail">
|
153
|
-
<a name="M000004"></a>
|
154
|
-
|
155
|
-
<div class="method-heading">
|
156
|
-
<a href="MethodicHash.src/M000004.html" target="Code" class="method-signature"
|
157
|
-
onclick="popupCode('MethodicHash.src/M000004.html');return false;">
|
158
|
-
<span class="method-name">[]</span><span class="method-args">(key)</span>
|
159
|
-
</a>
|
160
|
-
</div>
|
161
|
-
|
162
|
-
<div class="method-description">
|
163
|
-
<p>
|
164
|
-
Try to look up using a key directly, or if that fails as a string, or as a
|
165
|
-
symbol as last resort. If a symbol conversion doesn‘t exists, rescue
|
166
|
-
with a nil.
|
167
|
-
</p>
|
168
|
-
</div>
|
169
|
-
</div>
|
170
|
-
|
171
|
-
<div id="method-M000005" class="method-detail">
|
172
|
-
<a name="M000005"></a>
|
173
|
-
|
174
|
-
<div class="method-heading">
|
175
|
-
<a href="MethodicHash.src/M000005.html" target="Code" class="method-signature"
|
176
|
-
onclick="popupCode('MethodicHash.src/M000005.html');return false;">
|
177
|
-
<span class="method-name">delete</span><span class="method-args">(key,&block)</span>
|
178
|
-
</a>
|
179
|
-
</div>
|
180
|
-
|
181
|
-
<div class="method-description">
|
182
|
-
<p>
|
183
|
-
Deletes and returns the key-value pairs from hash whose keys are equal to
|
184
|
-
key.to_s or key.to_sym. If both key.to_s and key.to_sym are in the hash,
|
185
|
-
then both values are returned in an Array, respectively. If neither key is
|
186
|
-
found, the <a href="MethodicHash.html#M000005">delete</a> is deferred to
|
187
|
-
the Hash.
|
188
|
-
</p>
|
189
|
-
</div>
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div id="method-M000006" class="method-detail">
|
193
|
-
<a name="M000006"></a>
|
194
|
-
|
195
|
-
<div class="method-heading">
|
196
|
-
<a href="MethodicHash.src/M000006.html" target="Code" class="method-signature"
|
197
|
-
onclick="popupCode('MethodicHash.src/M000006.html');return false;">
|
198
|
-
<span class="method-name">method_missing</span><span class="method-args">(method,*args)</span>
|
199
|
-
</a>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div class="method-description">
|
203
|
-
<p>
|
204
|
-
A missing method is assummed to be the assignment of a value of a key, or
|
205
|
-
the lookup of a value with a key.
|
206
|
-
</p>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
|
211
|
-
</div>
|
212
|
-
|
213
|
-
|
214
|
-
</div>
|
215
|
-
|
216
|
-
|
217
|
-
<div id="validator-badges">
|
218
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
</body>
|
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: MethodicHash</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">MethodicHash</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/methodic_hash_rb.html">
|
59
|
+
lib/methodic_hash.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
|
+
Hash
|
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
|
+
<p>
|
83
|
+
The <a href="MethodicHash.html">MethodicHash</a> is some <a
|
84
|
+
href="MethodicHash.html#M000006">method_missing</a> magic that uses method
|
85
|
+
names as hash keys, so hash assignment and lookup appear to be attribute
|
86
|
+
writing and reading. For instance, if
|
87
|
+
</p>
|
88
|
+
<pre>
|
89
|
+
mh = MethodicHash.new
|
90
|
+
mh['four'] = 'iv'
|
91
|
+
mh[:seven] = 'vii'
|
92
|
+
mh.eighteen = 'xviii'
|
93
|
+
</pre>
|
94
|
+
<p>
|
95
|
+
then
|
96
|
+
</p>
|
97
|
+
<pre>
|
98
|
+
mh['four'] ---> 'iv'
|
99
|
+
mh[:four] ---> 'iv'
|
100
|
+
mh.four ---> 'iv'
|
101
|
+
mh['seven'] ---> 'vii'
|
102
|
+
mh[:seven] ---> 'vii'
|
103
|
+
mh.seven ---> 'vii'
|
104
|
+
mh['eighteen'] ---> 'xviii'
|
105
|
+
mh[:eighteen] ---> 'xviii'
|
106
|
+
mh.eighteen ---> 'xviii'
|
107
|
+
</pre>
|
108
|
+
<p>
|
109
|
+
This allows access to simply declared facts to be embedded in Ruby code and
|
110
|
+
leverages the possibility of hashing procs.
|
111
|
+
</p>
|
112
|
+
<p>
|
113
|
+
Note that if the hash uses anything but strings or symbols as keys, the
|
114
|
+
magic stands a good chance of failing, raising an error or acting in a
|
115
|
+
bizarre manner. Note also that methods of the Hash cannot be used as
|
116
|
+
‘attribute’ names.
|
117
|
+
</p>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="method-list">
|
125
|
+
<h3 class="section-bar">Methods</h3>
|
126
|
+
|
127
|
+
<div class="name-list">
|
128
|
+
<a href="#M000004">[]</a>
|
129
|
+
<a href="#M000005">delete</a>
|
130
|
+
<a href="#M000006">method_missing</a>
|
131
|
+
</div>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
</div>
|
135
|
+
|
136
|
+
|
137
|
+
<!-- if includes -->
|
138
|
+
|
139
|
+
<div id="section">
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<!-- if method_list -->
|
149
|
+
<div id="methods">
|
150
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
151
|
+
|
152
|
+
<div id="method-M000004" class="method-detail">
|
153
|
+
<a name="M000004"></a>
|
154
|
+
|
155
|
+
<div class="method-heading">
|
156
|
+
<a href="MethodicHash.src/M000004.html" target="Code" class="method-signature"
|
157
|
+
onclick="popupCode('MethodicHash.src/M000004.html');return false;">
|
158
|
+
<span class="method-name">[]</span><span class="method-args">(key)</span>
|
159
|
+
</a>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<div class="method-description">
|
163
|
+
<p>
|
164
|
+
Try to look up using a key directly, or if that fails as a string, or as a
|
165
|
+
symbol as last resort. If a symbol conversion doesn‘t exists, rescue
|
166
|
+
with a nil.
|
167
|
+
</p>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div id="method-M000005" class="method-detail">
|
172
|
+
<a name="M000005"></a>
|
173
|
+
|
174
|
+
<div class="method-heading">
|
175
|
+
<a href="MethodicHash.src/M000005.html" target="Code" class="method-signature"
|
176
|
+
onclick="popupCode('MethodicHash.src/M000005.html');return false;">
|
177
|
+
<span class="method-name">delete</span><span class="method-args">(key,&block)</span>
|
178
|
+
</a>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
<div class="method-description">
|
182
|
+
<p>
|
183
|
+
Deletes and returns the key-value pairs from hash whose keys are equal to
|
184
|
+
key.to_s or key.to_sym. If both key.to_s and key.to_sym are in the hash,
|
185
|
+
then both values are returned in an Array, respectively. If neither key is
|
186
|
+
found, the <a href="MethodicHash.html#M000005">delete</a> is deferred to
|
187
|
+
the Hash.
|
188
|
+
</p>
|
189
|
+
</div>
|
190
|
+
</div>
|
191
|
+
|
192
|
+
<div id="method-M000006" class="method-detail">
|
193
|
+
<a name="M000006"></a>
|
194
|
+
|
195
|
+
<div class="method-heading">
|
196
|
+
<a href="MethodicHash.src/M000006.html" target="Code" class="method-signature"
|
197
|
+
onclick="popupCode('MethodicHash.src/M000006.html');return false;">
|
198
|
+
<span class="method-name">method_missing</span><span class="method-args">(method,*args)</span>
|
199
|
+
</a>
|
200
|
+
</div>
|
201
|
+
|
202
|
+
<div class="method-description">
|
203
|
+
<p>
|
204
|
+
A missing method is assummed to be the assignment of a value of a key, or
|
205
|
+
the lookup of a value with a key.
|
206
|
+
</p>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
</div>
|
212
|
+
|
213
|
+
|
214
|
+
</div>
|
215
|
+
|
216
|
+
|
217
|
+
<div id="validator-badges">
|
218
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</body>
|
222
222
|
</html>
|
@@ -1,22 +1,22 @@
|
|
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>[] (MethodicHash)</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/methodic_hash.rb, line 34</span>
|
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>[] (MethodicHash)</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/methodic_hash.rb, line 34</span>
|
14
14
|
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
15
15
|
<span class="ruby-keyword kw">begin</span>
|
16
16
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">key</span>) <span class="ruby-operator">||</span> <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-operator">||</span> <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_sym</span>)
|
17
17
|
<span class="ruby-keyword kw">rescue</span>
|
18
18
|
<span class="ruby-keyword kw">nil</span>
|
19
19
|
<span class="ruby-keyword kw">end</span>
|
20
|
-
<span class="ruby-keyword kw">end</span></pre>
|
21
|
-
</body>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
22
|
</html>
|