[Feature Proposal] Add method has_attribute? for ActiveModel::AttributeMethods & ::ClassMethods

I like using ActiveModel, and with my models I’d like to call has_attribute? on the model or instance, but that’s only available for ActiveRecord objects. Is there a reason it’s not available in the ActiveModel::API?

If not, would you accept a PR to add it?