davidrichards-just_enumerable_stats 0.0.18 → 0.0.19
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.
- 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
|