    # File lib/facets/core/kernel/to_data.rb, line 7
      def to_data( deep=false )
        #return self if Hash === object_class
        data = {}
        data.data_represents( object_class )
        instance_variables.each do |iv|
          name = iv[1..-1].to_sym  # remove @
          value = instance_variable_get(iv)
          value = value.to_data if deep
          data[name] = value
        end
        data
      end