class ConventionalExtensions::Loader
def initialize(klass, path)
def initialize(klass, path) @loaded, @klass, @matcher = Set.new, klass, /\s*class #{klass.name}/ @path_format = File.join path.sub(/\.rb$/, "/extensions/%s.rb") end
def initialize(klass, path) @loaded, @klass, @matcher = Set.new, klass, /\s*class #{klass.name}/ @path_format = File.join path.sub(/\.rb$/, "/extensions/%s.rb") end