code: function(style, options) {
  
          OpenLayers.Util.extend(this, options);
          this.rules = [];
          if(options && options.rules) {
              this.addRules(options.rules);
          }
  
          // use the default style from OpenLayers.Feature.Vector if no style
          // was given in the constructor
          this.setDefaultStyle(style ||
                               OpenLayers.Feature.Vector.style["default"]);
  
          this.id = OpenLayers.Util.createUniqueID(this.CLASS_NAME + "_");
      }
docs: Constructor: OpenLayers.Style
  Creates a UserStyle.
  
  Parameters:
  style        - {Object} Optional hash of style properties that will be
  used as default style for this style object. This style
  applies if no rules are specified. Symbolizers defined in
  rules will extend this default style.
  options - {Object} An optional object with properties to set on the
  style.
  
  Valid options:
  rules - {Array(<OpenLayers.Rule>)} List of rules to be added to the
  style.
  
  Returns:
  {<OpenLayers.Style>}