def require_nested(dir = 0)
      dir = caller_locations(dir + 1, 1)[0].path.sub(/\.rb$/, '') if dir.is_a?(Integer)
      Dir["#{dir}/*.rb"].each { |file| require_dependency file }
    end
def require_nested(dir = 0)
      dir = caller_locations(dir + 1, 1)[0].path.sub(/\.rb$/, '') if dir.is_a?(Integer)
      Dir["#{dir}/*.rb"].each { |file| require_dependency file }
    end
Requires nested modules with `require_dependency`.
 Pass custom directory to require its content.
 By default uses caller's filename with stripped `.rb` extension from.