title: Custom JQuery plugin - how to get/maintain user defined options?
body: <p>I've a simple(lightweight) div slider that I wrote some time ago, and because I use it in various different projects - the time has come to wrap it into its own plugin (at the risk of it not being so lightweight anymore!).</p>
  
  <p>I've been reading, and copying from <a href="http://docs.jquery.com/Plugins/Authoring" rel="nofollow">http://docs.jquery.com/Plugins/Authoring</a> since this is popping my plugin cherry, and it makes sense (mostly) but something is eluding me.  Here's my plugin code: </p>
  
  <pre><code>(function( $ ) {
  
      //List of callable methods
      var methods = {
          init : function(options) {
  
              var settings = $.extend({
  
                  optionOne   : 'aaa',
                  optionTwo   : 'bbb',
                  optionThree : 'ccc',
                  optionFour  : 'ddd'
  
              }, options);        
  
          },
  
          error : function(message) {
              alert(message);            
          },        
  
          showSettings : function() { 
              //This bit... how to show whats in 'settings' defined in init?
          }
  
      }
  
      $.fn.ccSlider = function( method ) {
  
          //Calling methods
          if (methods[method]) {
              //If plugin is called with a recognised method, run that.
              return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
          } else if (typeof method === 'object' || !method) {
              //if plugin is called without a method, run the init() function
              return methods.init.apply( this, arguments );
          } else {
              //Run the error() function to catch all else.
              return methods.error("ccSlider: Method '"+method+"' does not exist!");            
          }
      };
  
  })( jQuery );
  </code></pre>
  
  <p>Everything here is working as expected, but I can't go on to write the methods I need, but only because I can't figure out how to access the content of 'settings' outside of the init() method.  </p>
  
  <p>I was using 'showSettings' as a test... how would I write a showSettings method that popped up and told me what the value of a specified setting (like say, optionTwo) is? </p>