def get_methods(getter = :methods)
      parent = inspect_superclass || Object
      diff   = constant.__send__(getter, false) -
        parent.__send__(getter, false)

      methods = diff | constant.__send__(getter, false)

      # If the constant manually defines the initialize method (= private)
      # we'll also want to include it.
      if include_initialize?(getter)
        methods = methods | [:initialize]
      end

      return methods
    end
def get_methods(getter = :methods)
      parent = inspect_superclass || Object
      diff   = constant.__send__(getter, false) -
        parent.__send__(getter, false)

      methods = diff | constant.__send__(getter, false)

      # If the constant manually defines the initialize method (= private)
      # we'll also want to include it.
      if include_initialize?(getter)
        methods = methods | [:initialize]
      end

      return methods
    end
Gets the methods of the current constant minus those defined in Object.

 @param [Symbol] getter
 @return [Array]