Method: Module#ancestors_with

Defined in:
lib/aws/templates/utils.rb

#ancestors_with(base) ⇒ Object

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



9
10
11
# File 'lib/aws/templates/utils.rb', line 9

def ancestors_with(base)
  ancestors.reverse_each.select { |mod| mod < base }
end