rubyunit 0.3.15 → 0.3.16
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/lib/RubyUnit/Assertions/Class.rb +3 -1
- data/lib/RubyUnit/Assertions.rb +2 -2
- data/lib/RubyUnit/Runner.rb +1 -1
- data/lib/RubyUnit.rb +1 -1
- data/tests/Assertions/TC_Class.rb +319 -0
- data/tests/Assertions/data/Class.rb +117 -0
- data/tests/Assertions/data/ObjectTypes.rb +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca80c88f05e1945496377a6b44d73c622412c985
|
4
|
+
data.tar.gz: 6a86a2572e1a7cc2e25f9af74224732e5664b3ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc2a9820139f22073934d121751fb7bbc0edc4099caf27a3b646976935c467173c600784ba8007ac829794014b8d980727a7a450c1b1682cae6fc8e4f0d0892
|
7
|
+
data.tar.gz: a01214430b5f3f640e264a81e9012de8e88f7d92b736d6d180e95a22d2b0aef93c3237ec17f89c05f80aca95450e1cd732e2ee1a907520edfd3025dc995816a1
|
@@ -103,6 +103,7 @@ module RubyUnit
|
|
103
103
|
# assertDescendent Numeric, Exception, 'Nope' # => fail
|
104
104
|
#
|
105
105
|
def assertDescendent klass, descendent, message = nil
|
106
|
+
raise ArgumentError, 'Expecting Class' unless klass.is_a? Class
|
106
107
|
__assert (descendent < klass), ASSERT_DESCENDENT_ERROR, message, {:klass=>klass, :descendent=>descendent}
|
107
108
|
end
|
108
109
|
|
@@ -122,7 +123,8 @@ module RubyUnit
|
|
122
123
|
# assertDescendent StandardError, Exception, 'It is' # => fail
|
123
124
|
#
|
124
125
|
def assertNotDescendent klass, illegal, message = nil
|
125
|
-
|
126
|
+
raise ArgumentError, 'Expecting Class' unless klass.is_a? Class
|
127
|
+
__reject (illegal < klass), ASSERT_NOT_DESCENDENT_ERROR, message, {:klass=>klass, :illegal=>illegal}
|
126
128
|
end
|
127
129
|
|
128
130
|
#
|
data/lib/RubyUnit/Assertions.rb
CHANGED
@@ -99,8 +99,8 @@ module RubyUnit
|
|
99
99
|
# * raises ArgumentError unless _e_ is a descendent of the Exception class
|
100
100
|
#
|
101
101
|
def __validate_exception pattern, e = Exception # :nodoc:
|
102
|
-
raise ArgumentError,
|
103
|
-
raise ArgumentError,
|
102
|
+
raise ArgumentError, 'Exception message must be a Regexp or String' unless pattern.is_a? Regexp or pattern.is_a? String
|
103
|
+
raise ArgumentError, 'Exception must be a subclass of Exception' unless e < Exception
|
104
104
|
end
|
105
105
|
end
|
106
106
|
end
|
data/lib/RubyUnit/Runner.rb
CHANGED
@@ -104,7 +104,7 @@ module RubyUnit
|
|
104
104
|
puts "#{@@errors.count} Errors:\n" if @@errors.count > 0
|
105
105
|
@@errors.each_with_index do |error, i|
|
106
106
|
puts "#{i + 1}) #{error[0]}::#{error[1]}(#{error[2]})"
|
107
|
-
puts error[3].message
|
107
|
+
puts "#{error[3].class}: #{error[3].message}"
|
108
108
|
puts error[3].backtrace.join("\n")
|
109
109
|
end
|
110
110
|
|
data/lib/RubyUnit.rb
CHANGED
@@ -38,6 +38,21 @@ module AssertionsTests
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
##
|
42
|
+
# Test assertKindOf invalid
|
43
|
+
#
|
44
|
+
# klass::
|
45
|
+
# Class name for assertion
|
46
|
+
#
|
47
|
+
# object::
|
48
|
+
# Object to be asserted
|
49
|
+
#
|
50
|
+
def assertKindOfInvalidTest klass, object
|
51
|
+
assertRaiseKindOf TypeError do
|
52
|
+
assertKindOf klass, object
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
41
56
|
##
|
42
57
|
# Test assertKindOf with message
|
43
58
|
#
|
@@ -71,5 +86,309 @@ module AssertionsTests
|
|
71
86
|
assertKindOf klass, object, message
|
72
87
|
end
|
73
88
|
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Test assertKindOf invalid with message
|
92
|
+
#
|
93
|
+
# klass::
|
94
|
+
# Class name for assertion
|
95
|
+
#
|
96
|
+
# object::
|
97
|
+
# Object to be asserted
|
98
|
+
#
|
99
|
+
# message::
|
100
|
+
# The assertion message
|
101
|
+
#
|
102
|
+
def assertKindOfWithMessageInvalidTest klass, object, message
|
103
|
+
assertRaiseKindOf TypeError, message do
|
104
|
+
assertKindOf klass, object, message
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Test assertInstanceOf
|
110
|
+
#
|
111
|
+
# klass::
|
112
|
+
# Class name for assertion
|
113
|
+
#
|
114
|
+
# object::
|
115
|
+
# Object to be asserted
|
116
|
+
#
|
117
|
+
def assertInstanceOfTest klass, object
|
118
|
+
assertInstanceOf klass, object
|
119
|
+
end
|
120
|
+
|
121
|
+
##
|
122
|
+
# Test assertInstanceOf failure
|
123
|
+
#
|
124
|
+
# klass::
|
125
|
+
# Class name for assertion
|
126
|
+
#
|
127
|
+
# object::
|
128
|
+
# Object to be asserted
|
129
|
+
#
|
130
|
+
def assertInstanceOfFailTest klass, object
|
131
|
+
rescue_assertion /#{ASSERT_INSTANCE_OF_ERROR}/ do
|
132
|
+
assertInstanceOf klass, object
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
##
|
137
|
+
# Test assertInstanceOf invalid
|
138
|
+
#
|
139
|
+
# klass::
|
140
|
+
# Class name for assertion
|
141
|
+
#
|
142
|
+
# object::
|
143
|
+
# Object to be asserted
|
144
|
+
#
|
145
|
+
def assertInstanceOfInvalidTest klass, object
|
146
|
+
assertRaiseKindOf TypeError do
|
147
|
+
assertInstanceOf klass, object
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
##
|
152
|
+
# Test assertInstanceOf with message
|
153
|
+
#
|
154
|
+
# klass::
|
155
|
+
# Class name for assertion
|
156
|
+
#
|
157
|
+
# object::
|
158
|
+
# Object to be asserted
|
159
|
+
#
|
160
|
+
# message::
|
161
|
+
# The assertion message
|
162
|
+
#
|
163
|
+
def assertInstanceOfWithMessageTest klass, object, message
|
164
|
+
assertInstanceOf klass, object, message
|
165
|
+
end
|
166
|
+
|
167
|
+
##
|
168
|
+
# Test assertInstanceOf failure
|
169
|
+
#
|
170
|
+
# klass::
|
171
|
+
# Class name for assertion
|
172
|
+
#
|
173
|
+
# object::
|
174
|
+
# Object to be asserted
|
175
|
+
#
|
176
|
+
# message::
|
177
|
+
# The assertion message
|
178
|
+
#
|
179
|
+
def assertInstanceOfWithMessageFailTest klass, object, message
|
180
|
+
rescue_assertion /#{ASSERT_INSTANCE_OF_ERROR}/, message do
|
181
|
+
assertInstanceOf klass, object, message
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
##
|
186
|
+
# Test assertInstanceOf invalid with message
|
187
|
+
#
|
188
|
+
# klass::
|
189
|
+
# Class name for assertion
|
190
|
+
#
|
191
|
+
# object::
|
192
|
+
# Object to be asserted
|
193
|
+
#
|
194
|
+
# message::
|
195
|
+
# The assertion message
|
196
|
+
#
|
197
|
+
def assertInstanceOfWithMessageInvalidTest klass, object, message
|
198
|
+
assertRaiseKindOf TypeError, message do
|
199
|
+
assertInstanceOf klass, object, message
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
##
|
204
|
+
# Test assertDescendent
|
205
|
+
#
|
206
|
+
# klass::
|
207
|
+
# Class name for assertion
|
208
|
+
#
|
209
|
+
# descendent::
|
210
|
+
# Class to be asserted
|
211
|
+
#
|
212
|
+
def assertDescendentTest klass, descendent
|
213
|
+
assertDescendent klass, descendent
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# Test assertDescendent failure
|
218
|
+
#
|
219
|
+
# klass::
|
220
|
+
# Class name for assertion
|
221
|
+
#
|
222
|
+
# descendent::
|
223
|
+
# Class to be asserted
|
224
|
+
#
|
225
|
+
def assertDescendentFailTest klass, descendent
|
226
|
+
rescue_assertion /#{ASSERT_DESCENDENT_ERROR}/ do
|
227
|
+
assertDescendent klass, descendent
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
##
|
232
|
+
# Test assertDescendent invalid
|
233
|
+
#
|
234
|
+
# klass::
|
235
|
+
# Class name for assertion
|
236
|
+
#
|
237
|
+
# descendent::
|
238
|
+
# Class to be asserted
|
239
|
+
#
|
240
|
+
def assertDescendentInvalidTest klass, descendent
|
241
|
+
assertRaiseKindOf ArgumentError do
|
242
|
+
assertDescendent klass, descendent
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
##
|
247
|
+
# Test assertDescendent with message
|
248
|
+
#
|
249
|
+
# klass::
|
250
|
+
# Class name for assertion
|
251
|
+
#
|
252
|
+
# descendent::
|
253
|
+
# Class to be asserted
|
254
|
+
#
|
255
|
+
# message::
|
256
|
+
# The assertion message
|
257
|
+
#
|
258
|
+
def assertDescendentWithMessageTest klass, descendent, message
|
259
|
+
assertDescendent klass, descendent, message
|
260
|
+
end
|
261
|
+
|
262
|
+
##
|
263
|
+
# Test assertDescendent failure
|
264
|
+
#
|
265
|
+
# klass::
|
266
|
+
# Class name for assertion
|
267
|
+
#
|
268
|
+
# descendent::
|
269
|
+
# Class to be asserted
|
270
|
+
#
|
271
|
+
# message::
|
272
|
+
# The assertion message
|
273
|
+
#
|
274
|
+
def assertDescendentWithMessageFailTest klass, descendent, message
|
275
|
+
rescue_assertion /#{ASSERT_DESCENDENT_ERROR}/, message do
|
276
|
+
assertDescendent klass, descendent, message
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
##
|
281
|
+
# Test assertDescendent invalid with message
|
282
|
+
#
|
283
|
+
# klass::
|
284
|
+
# Class name for assertion
|
285
|
+
#
|
286
|
+
# descendent::
|
287
|
+
# Class to be asserted
|
288
|
+
#
|
289
|
+
# message::
|
290
|
+
# The assertion message
|
291
|
+
#
|
292
|
+
def assertDescendentWithMessageInvalidTest klass, descendent, message
|
293
|
+
assertRaiseKindOf ArgumentError, message do
|
294
|
+
assertDescendent klass, descendent, message
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
##
|
299
|
+
# Test assertNotDescendent
|
300
|
+
#
|
301
|
+
# klass::
|
302
|
+
# Class name for assertion
|
303
|
+
#
|
304
|
+
# descendent::
|
305
|
+
# Class to be asserted
|
306
|
+
#
|
307
|
+
def assertNotDescendentTest klass, descendent
|
308
|
+
assertNotDescendent klass, descendent
|
309
|
+
end
|
310
|
+
|
311
|
+
##
|
312
|
+
# Test assertNotDescendent failure
|
313
|
+
#
|
314
|
+
# klass::
|
315
|
+
# Class name for assertion
|
316
|
+
#
|
317
|
+
# descendent::
|
318
|
+
# Class to be asserted
|
319
|
+
#
|
320
|
+
def assertNotDescendentFailTest klass, descendent
|
321
|
+
rescue_assertion /#{ASSERT_NOT_DESCENDENT_ERROR}/ do
|
322
|
+
assertNotDescendent klass, descendent
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
##
|
327
|
+
# Test assertNotDescendent invalid
|
328
|
+
#
|
329
|
+
# klass::
|
330
|
+
# Class name for assertion
|
331
|
+
#
|
332
|
+
# descendent::
|
333
|
+
# Class to be asserted
|
334
|
+
#
|
335
|
+
def assertNotDescendentInvalidTest klass, descendent
|
336
|
+
assertRaiseKindOf ArgumentError do
|
337
|
+
assertNotDescendent klass, descendent
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
##
|
342
|
+
# Test assertNotDescendent with message
|
343
|
+
#
|
344
|
+
# klass::
|
345
|
+
# Class name for assertion
|
346
|
+
#
|
347
|
+
# descendent::
|
348
|
+
# Class to be asserted
|
349
|
+
#
|
350
|
+
# message::
|
351
|
+
# The assertion message
|
352
|
+
#
|
353
|
+
def assertNotDescendentWithMessageTest klass, descendent, message
|
354
|
+
assertNotDescendent klass, descendent, message
|
355
|
+
end
|
356
|
+
|
357
|
+
##
|
358
|
+
# Test assertNotDescendent failure
|
359
|
+
#
|
360
|
+
# klass::
|
361
|
+
# Class name for assertion
|
362
|
+
#
|
363
|
+
# descendent::
|
364
|
+
# Class to be asserted
|
365
|
+
#
|
366
|
+
# message::
|
367
|
+
# The assertion message
|
368
|
+
#
|
369
|
+
def assertNotDescendentWithMessageFailTest klass, descendent, message
|
370
|
+
rescue_assertion /#{ASSERT_NOT_DESCENDENT_ERROR}/, message do
|
371
|
+
assertNotDescendent klass, descendent, message
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
##
|
376
|
+
# Test assertNotDescendent invalid with message
|
377
|
+
#
|
378
|
+
# klass::
|
379
|
+
# Class name for assertion
|
380
|
+
#
|
381
|
+
# descendent::
|
382
|
+
# Class to be asserted
|
383
|
+
#
|
384
|
+
# message::
|
385
|
+
# The assertion message
|
386
|
+
#
|
387
|
+
def assertNotDescendentWithMessageInvalidTest klass, descendent, message
|
388
|
+
assertRaiseKindOf ArgumentError, message do
|
389
|
+
assertNotDescendent klass, descendent, message
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
74
393
|
end
|
75
394
|
end
|
@@ -43,6 +43,10 @@ module AssertionsTests
|
|
43
43
|
data += add_parameter classes_exclude([Hash]), hashObjects
|
44
44
|
end
|
45
45
|
|
46
|
+
def assertKindOfInvalidData
|
47
|
+
add_parameter non_classes, [[Object]]
|
48
|
+
end
|
49
|
+
|
46
50
|
def assertKindOfWithMessageData
|
47
51
|
add_parameter assertKindOfData
|
48
52
|
end
|
@@ -50,5 +54,118 @@ module AssertionsTests
|
|
50
54
|
def assertKindOfWithMessageFailData
|
51
55
|
add_parameter assertKindOfFailData
|
52
56
|
end
|
57
|
+
|
58
|
+
def assertKindOfWithMessageInvalidData
|
59
|
+
add_parameter assertKindOfInvalidData
|
60
|
+
end
|
61
|
+
|
62
|
+
def assertInstanceOfData
|
63
|
+
data = add_parameter [[Class]], classObjects
|
64
|
+
data += add_parameter [[NilClass]], nilObjects
|
65
|
+
data += add_parameter [[TrueClass]], trueObjects
|
66
|
+
data += add_parameter [[FalseClass]], falseObjects
|
67
|
+
data += add_parameter [[Fixnum]], fixnumObjects
|
68
|
+
data += add_parameter [[Bignum]], bignumObjects
|
69
|
+
data += add_parameter [[Float]], floatObjects
|
70
|
+
data += add_parameter [[Rational]], rationalObjects
|
71
|
+
data += add_parameter [[Complex]], complexObjects
|
72
|
+
data += add_parameter [[Time]], timeObjects
|
73
|
+
data += add_parameter [[String]], stringObjects
|
74
|
+
data += add_parameter [[Range]], rangeObjects
|
75
|
+
data += add_parameter [[Regexp]], regexpObjects
|
76
|
+
data += add_parameter [[Array]], arrayObjects
|
77
|
+
data += add_parameter [[Hash]], hashObjects
|
78
|
+
end
|
79
|
+
|
80
|
+
def assertInstanceOfFailData
|
81
|
+
data = add_parameter classes_exclude([Class]), classObjects
|
82
|
+
data += add_parameter classes_exclude([NilClass]), nilObjects
|
83
|
+
data += add_parameter classes_exclude([TrueClass]), trueObjects
|
84
|
+
data += add_parameter classes_exclude([FalseClass]), falseObjects
|
85
|
+
data += add_parameter classes_exclude([Fixnum]), fixnumObjects
|
86
|
+
data += add_parameter classes_exclude([Bignum]), bignumObjects
|
87
|
+
data += add_parameter classes_exclude([Float]), floatObjects
|
88
|
+
data += add_parameter classes_exclude([Rational]), rationalObjects
|
89
|
+
data += add_parameter classes_exclude([Complex]), complexObjects
|
90
|
+
data += add_parameter classes_exclude([Time]), timeObjects
|
91
|
+
data += add_parameter classes_exclude([String]), stringObjects
|
92
|
+
data += add_parameter classes_exclude([Range]), rangeObjects
|
93
|
+
data += add_parameter classes_exclude([Regexp]), regexpObjects
|
94
|
+
data += add_parameter classes_exclude([Array]), arrayObjects
|
95
|
+
data += add_parameter classes_exclude([Hash]), hashObjects
|
96
|
+
end
|
97
|
+
|
98
|
+
def assertInstanceOfInvalidData
|
99
|
+
add_parameter non_classes, [[Object]]
|
100
|
+
end
|
101
|
+
|
102
|
+
def assertInstanceOfWithMessageData
|
103
|
+
add_parameter assertInstanceOfData
|
104
|
+
end
|
105
|
+
|
106
|
+
def assertInstanceOfWithMessageFailData
|
107
|
+
add_parameter assertInstanceOfFailData
|
108
|
+
end
|
109
|
+
|
110
|
+
def assertInstanceOfWithMessageInvalidData
|
111
|
+
add_parameter assertInstanceOfInvalidData
|
112
|
+
end
|
113
|
+
|
114
|
+
def assertDescendentData
|
115
|
+
data = add_parameter [[BasicObject], [Object]], [[NilClass]]
|
116
|
+
data += add_parameter [[BasicObject], [Object]], [[TrueClass]]
|
117
|
+
data += add_parameter [[BasicObject], [Object]], [[FalseClass]]
|
118
|
+
data += add_parameter [[BasicObject], [Object], [Numeric], [Integer]], [[Fixnum]]
|
119
|
+
data += add_parameter [[BasicObject], [Object], [Numeric], [Integer]], [[Bignum]]
|
120
|
+
data += add_parameter [[BasicObject], [Object], [Numeric]], [[Float]]
|
121
|
+
data += add_parameter [[BasicObject], [Object], [Numeric]], [[Rational]]
|
122
|
+
data += add_parameter [[BasicObject], [Object], [Numeric]], [[Complex]]
|
123
|
+
data += add_parameter [[BasicObject], [Object]], [[Time]]
|
124
|
+
data += add_parameter [[BasicObject], [Object]], [[String]]
|
125
|
+
data += add_parameter [[BasicObject], [Object]], [[Range]]
|
126
|
+
data += add_parameter [[BasicObject], [Object]], [[Regexp]]
|
127
|
+
data += add_parameter [[BasicObject], [Object]], [[Array]]
|
128
|
+
data += add_parameter [[BasicObject], [Object]], [[Hash]]
|
129
|
+
end
|
130
|
+
alias_method :assertNotDescendentFailData, :assertDescendentData
|
131
|
+
|
132
|
+
def assertDescendentFailData
|
133
|
+
data = add_parameter classes_exclude([BasicObject, Object]), [[NilClass]]
|
134
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[TrueClass]]
|
135
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[FalseClass]]
|
136
|
+
data += add_parameter classes_exclude([BasicObject, Object, Numeric, Integer]), [[Fixnum]]
|
137
|
+
data += add_parameter classes_exclude([BasicObject, Object, Numeric, Integer]), [[Bignum]]
|
138
|
+
data += add_parameter classes_exclude([BasicObject, Object, Numeric]), [[Float]]
|
139
|
+
data += add_parameter classes_exclude([BasicObject, Object, Numeric]), [[Rational]]
|
140
|
+
data += add_parameter classes_exclude([BasicObject, Object, Numeric]), [[Complex]]
|
141
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[Time]]
|
142
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[String]]
|
143
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[Range]]
|
144
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[Regexp]]
|
145
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[Array]]
|
146
|
+
data += add_parameter classes_exclude([BasicObject, Object]), [[Hash]]
|
147
|
+
end
|
148
|
+
alias_method :assertNotDescendentData, :assertDescendentFailData
|
149
|
+
|
150
|
+
def assertDescendentInvalidData
|
151
|
+
data = add_parameter non_classes, [[Class]]
|
152
|
+
data += add_parameter non_classes, non_classes
|
153
|
+
end
|
154
|
+
alias_method :assertNotDescendentInvalidData, :assertDescendentInvalidData
|
155
|
+
|
156
|
+
def assertDescendentWithMessageData
|
157
|
+
add_parameter assertDescendentData
|
158
|
+
end
|
159
|
+
alias_method :assertNotDescendentWithMessageFailData, :assertDescendentWithMessageData
|
160
|
+
|
161
|
+
def assertDescendentWithMessageFailData
|
162
|
+
add_parameter assertDescendentFailData
|
163
|
+
end
|
164
|
+
alias_method :assertNotDescendentWithMessageData, :assertDescendentWithMessageFailData
|
165
|
+
|
166
|
+
def assertDescendentWithMessageInvalidData
|
167
|
+
add_parameter assertDescendentInvalidData
|
168
|
+
end
|
169
|
+
alias_method :assertNotDescendentWithMessageInvalidData, :assertDescendentWithMessageInvalidData
|
53
170
|
end
|
54
171
|
end
|
@@ -22,6 +22,23 @@ module AssertionsTests
|
|
22
22
|
classes
|
23
23
|
end
|
24
24
|
|
25
|
+
def non_classes
|
26
|
+
nilObjects +
|
27
|
+
trueObjects +
|
28
|
+
falseObjects +
|
29
|
+
fixnumObjects +
|
30
|
+
bignumObjects +
|
31
|
+
floatObjects +
|
32
|
+
rationalObjects +
|
33
|
+
complexObjects +
|
34
|
+
timeObjects +
|
35
|
+
stringObjects +
|
36
|
+
rangeObjects +
|
37
|
+
regexpObjects +
|
38
|
+
arrayObjects +
|
39
|
+
hashObjects
|
40
|
+
end
|
41
|
+
|
25
42
|
def classObjects
|
26
43
|
[
|
27
44
|
[ NilClass],
|