Skip to content

dluman/include_all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

include_all

You've heard of require_all, now meet include_all! Written for the purpose of including functions from a require'd module without typing them all out, this niche, but personally useful, gem shines brightest when used in conjunction with a Ruby monolith.

Installation

gem install 'include_all' or include in your Gemfile: gem 'include_all'

Usage

It's best used after something that has a lot of items you'd like to include but not do so individually. Let's assume that the methods module has a bunch of stuff we'd like to bring in.

require 'require_all`
require 'include_all`

require 'methods'
include_all

The include_all gem will automatically diff the list of required objects and figure out what's missing.