# File lib/ruote/util/misc.rb, line 113 def self.narrow_to_number(o) return o if [ Fixnum, Bignum, Float ].include?(o.class) s = o.to_s (s.index('.') ? Float(s) : Integer(s)) rescue nil end