lib/knj/arrayext.rb in knjrbfw-0.0.74 vs lib/knj/arrayext.rb in knjrbfw-0.0.75

- old
+ new

@@ -58,10 +58,10 @@ #Returns true if all keys in a hash are numeric objects. def self.hash_numeric_keys?(hash) all_num = true hash.each do |key, val| - if !Php4r.is_numeric(key) + if !(Float(key) rescue false) all_num = false break end end \ No newline at end of file