You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: supports_attribute.rb
    path of file: ./repos/manageiq/app/models/ext_management_system
    
    the code of the file until where you have to start completion: module ExtManagementSystem::SupportsAttribute
  extend ActiveSupport::Concern

  class_methods do
    # define an attribute that is
    
    def supports_attribute(colname = nil, feature: :create, child_model: nil)
      feature = feature.to_sym

      if child_model
        define_method(colname) do
          class_by_ems(child_model)&.supports?(feature) || false
        end
      else
        colname ||= "supports_#{feature}"

        define_method(colname) do
          supports?(feature)
        end
      end