Method: BBLib::SimpleInit::ClassMethods#ancestor_init_foundation_method

Defined in:
lib/bblib/core/mixins/simple_init.rb

#ancestor_init_foundation_methodObject



129
130
131
132
133
134
135
# File 'lib/bblib/core/mixins/simple_init.rb', line 129

def ancestor_init_foundation_method
  anc = ancestors.find do |a|
    next if a == self
    a.respond_to?(:init_foundation_method)
  end
  anc ? anc.init_foundation_method : :_class
end