I would like to add a new method to the rjs “page” object through a
plugin. For a simple example, suppose I want to add the following
which is really just an alias for the usual page.replace_html.
def replace_html2(id, *options_for_render) call 'Element.update', id, render(*options_for_render) end
How can I stitch this new method into the “page” object?