module Peregrine::Features
This module provides modules which add instance methods to Peregrine
objects that provide functionality such as tags, names, and identifiers. These modules are designed to be included in Peregrine
classes.
Public Class Methods
included(parent)
click to toggle source
Includes all of the constants defined within this module to the parent which includes this module – essentially a shortcut to include all of the defined features.
# File lib/peregrine/features.rb, line 16 def self.included(parent) parent.send(:include, *constants.map { |const| const_get(const) }) end