How to load CS alias?

  • CS alias extra makes CS available as a shorthand for ConvenientService.

  • In order to load it, require convenient_service and the extra.

    require "convenient_service"
    require "convenient_service/extras/alias"
  • Once loaded, CS can be used in place of ConvenientService.

    class Service
      include CS::Standard::Config
    
      def result
        success
      end
    end

See also