Mercurial > pymonkey
diff docs/src/pymonkey.txt @ 58:7a3461ccaf1d
Added documentation for Context methods get_runtime(), new_object(), and init_standard_classes().
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 19 Jul 2009 19:58:15 -0700 |
parents | a2b617731398 |
children | c48b393f6461 |
line wrap: on
line diff
--- a/docs/src/pymonkey.txt Fri Jul 10 18:41:14 2009 -0700 +++ b/docs/src/pymonkey.txt Sun Jul 19 19:58:15 2009 -0700 @@ -56,6 +56,23 @@ >>> isinstance(cx, pymonkey.Context) True + .. method:: get_runtime() + + Returns the :class:`Runtime` that the context belongs to. + + .. method:: new_object() + + Creates a new :class:`Object` instance and returns it. + + .. method:: init_standard_classes(object) + + Defines the standard JavaScript classes on the given + :class:`Object`, such as ``Array``, ``eval``, ``undefined``, and + so forth. For more information, see the documentation to + `JS_InitStandardClasses() + <https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_InitStandardClasses>`_, + which this method wraps. + .. class:: Runtime() Creates a new JavaScript runtime. JS objects created by the runtime