# File lib/facet/hash/keys_to_sym.rb, line 31 def keys_to_sym!( from_class=String ) raise ArgumentError, "Parameter must be a class" unless from_class.kind_of?(Class) if from_class if from_class self.each_key{ |k| self[k.to_sym]=self.delete(k) if k.respond_to?(:to_sym) and k.class == from_class } else self.each_key{ |k| self[k.to_sym]=self.delete(k) if k.respond_to?(:to_sym) } end self end