davidrichards-just_enumerable_stats 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/just_enumerable_stats.rb +5 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -254,9 +254,12 @@ module Enumerable
|
|
254
254
|
def _jes_categories
|
255
255
|
if @_jes_categories
|
256
256
|
@_jes_categories
|
257
|
+
elsif self.any? {|e| e.is_a?(Float)}
|
258
|
+
val = self.map {|e| e}
|
259
|
+
val.uniq.sort rescue val
|
257
260
|
elsif self._jes_is_numeric?
|
258
|
-
|
259
|
-
|
261
|
+
val = self._jes_range_instance.map {|e| e}
|
262
|
+
val.uniq.sort rescue val
|
260
263
|
else
|
261
264
|
self.uniq.sort rescue self.uniq
|
262
265
|
end
|