class Module

Utility methods for Module class

Lazy load

It allows to skip 'require' definitions and load all classes and modules by convention.

Public Instance Methods

ancestors_with(base) click to toggle source

Get all ancestors which have “base” module as one of its' own ancestors

# File lib/aws/templates/utils.rb, line 9
def ancestors_with(base)
  ancestors.reverse_each.select { |mod| mod < base }
end