title: How to document Closures
body: <p>I'm trying to document functionality within a class called User that is located within a closure - How do I do that with JsDoc3?</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>/**
      @class User
      @classdesc This is the class that describes each user.
  */
  (function($){
  
      var _defaults = {
          'first_name': '',
          'last_name': ''
      };
  
      /**
          @constructor
      */
      function User(options) {
          this.options = $.extend({}, _defaults, options);
      }
  
      /**
          @method
          @desc Returns the combined first name and last name as a string
          @returns {string}
      */
      User.prototype.getName() = function(){
          return this.options.first_name + this.options.last_name;
      };
  
      window.User = User;
  
  }(jQuery));
  </code></pre>