WB.Resources.Dir.new

You're seeing just the function new, go back to WB.Resources.Dir module for more information.
Link to this function

new(path, root, templates)