jQuery equivalent of Ruby's .send() method
<p>I am currently developing a jQuery plugin where I would like to dismiss an element but have the way it is dismissed (slideUp, hide, and other jQuery methods) specified as an option.</p>

<p>For example, someone will be able to specify:</p>

<pre><code>$('element').plugin({style: "slideUp", speed: 300});
</code></pre>

<p>and it will call slideUp on the given element.</p>

<p>This is a simplified example and the plugin will do a lot more but I was just wondering if something like this was possible in JavaScript / jQuery. As a parallel I am looking for something much like Ruby's .send() method.</p>

<p>Thanks!</p>

<p><strong>EDIT:</strong>
I did find <a href="http://jpoz.github.com/jquery.engineer/#send-doc" rel="nofollow">this plugin </a> which does something similar to what I am looking for but I would love if there was some way to do this without including another plugin.</p>
