Module: Familia::Features::Autoloader

Defined in:
lib/familia/features/autoloader.rb

Overview

Autoloader is a mixin that automatically loads feature files from a ‘features’ subdirectory when included. This provides a standardized way to organize and auto-load project-specific features.

When included in a module, it automatically: 1. Determines the directory containing the module file 2. Looks for a ‘features’ subdirectory in that location 3. Loads all *.rb files from that features directory

Example usage:

# apps/api/v2/models/customer/features.rb module V2 class Customer < Familia::Horreum module Features include Familia::Features::Autoloader # Automatically loads all files from customer/features/ end end end

This would automatically load: - apps/api/v2/models/customer/features/deprecated_fields.rb - apps/api/v2/models/customer/features/legacy_support.rb - etc.