# frozen_string_literal: true module Azeroth module Resourceable # @api public # @author Darthjee # # Class methods added by {Resourceable} module ClassMethods # Adds resource methods for resource # # @param name [String, Symbol] Name of the resource # @param options [Hash] # # @return [Array] # # @example # class DocumentsController < ApplicationController # include Azeroth::Resourceable # # resource_for :document # end def resource_for(name, **options) Builder.new( self, name, Azeroth::Options.new(options) ).build end end end end