simple_record 1.1.59 → 1.1.60
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_record/results_array.rb +6 -6
- metadata +1 -1
@@ -26,11 +26,11 @@ module SimpleRecord
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def [](*i)
|
29
|
-
puts 'i.inspect=' + i.inspect
|
30
|
-
puts i.size.to_s
|
31
|
-
i.each do |x|
|
32
|
-
puts 'x=' + x.inspect + " -- " + x.class.name
|
33
|
-
end
|
29
|
+
# puts 'i.inspect=' + i.inspect
|
30
|
+
# puts i.size.to_s
|
31
|
+
# i.each do |x|
|
32
|
+
# puts 'x=' + x.inspect + " -- " + x.class.name
|
33
|
+
# end
|
34
34
|
if i.size == 1
|
35
35
|
# either fixnum or range
|
36
36
|
x = i[0]
|
@@ -98,7 +98,7 @@ module SimpleRecord
|
|
98
98
|
limit = options[:limit]
|
99
99
|
|
100
100
|
@items[i..@items.size].each do |v|
|
101
|
-
puts "i=" + i.to_s
|
101
|
+
# puts "i=" + i.to_s
|
102
102
|
yield v
|
103
103
|
i += 1
|
104
104
|
if !limit.nil? && i >= limit
|