Mercurial > pymonkey
diff docs/rendered/pymonkey.html @ 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/rendered/pymonkey.html Fri Jul 10 18:41:14 2009 -0700 +++ b/docs/rendered/pymonkey.html Sun Jul 19 19:58:15 2009 -0700 @@ -79,7 +79,7 @@ <em class="property"> class </em><tt class="descclassname">pymonkey.</tt><tt class="descname">Object</tt><a class="headerlink" href="#pymonkey.Object" title="Permalink to this definition">¶</a></dt> <dd><p>This is the type of JavaScript objects. Such objects can only be -created via Pymonkey calls like <tt class="xref docutils literal"><span class="pre">Context.new_object()</span></tt> or +created via Pymonkey calls like <a title="pymonkey.Context.new_object" class="reference" href="#pymonkey.Context.new_object"><tt class="xref docutils literal"><span class="pre">Context.new_object()</span></tt></a> or through the execution of JS code, but this type object can be used with Python’s built-in <tt class="xref docutils literal"><span class="pre">isinstance()</span></tt> to verify that an object is a JS object, like so:</p> @@ -103,6 +103,25 @@ <span class="go">True</span> </pre></div> </div> +<dl class="method"> +<dt id="pymonkey.Context.get_runtime"> +<tt class="descname">get_runtime</tt><big>(</big><big>)</big><a class="headerlink" href="#pymonkey.Context.get_runtime" title="Permalink to this definition">¶</a></dt> +<dd>Returns the <a title="pymonkey.Runtime" class="reference" href="#pymonkey.Runtime"><tt class="xref docutils literal"><span class="pre">Runtime</span></tt></a> that the context belongs to.</dd></dl> + +<dl class="method"> +<dt id="pymonkey.Context.new_object"> +<tt class="descname">new_object</tt><big>(</big><big>)</big><a class="headerlink" href="#pymonkey.Context.new_object" title="Permalink to this definition">¶</a></dt> +<dd>Creates a new <a title="pymonkey.Object" class="reference" href="#pymonkey.Object"><tt class="xref docutils literal"><span class="pre">Object</span></tt></a> instance and returns it.</dd></dl> + +<dl class="method"> +<dt id="pymonkey.Context.init_standard_classes"> +<tt class="descname">init_standard_classes</tt><big>(</big><em>object</em><big>)</big><a class="headerlink" href="#pymonkey.Context.init_standard_classes" title="Permalink to this definition">¶</a></dt> +<dd>Defines the standard JavaScript classes on the given +<a title="pymonkey.Object" class="reference" href="#pymonkey.Object"><tt class="xref docutils literal"><span class="pre">Object</span></tt></a>, such as <tt class="docutils literal"><span class="pre">Array</span></tt>, <tt class="docutils literal"><span class="pre">eval</span></tt>, <tt class="docutils literal"><span class="pre">undefined</span></tt>, and +so forth. For more information, see the documentation to +<a class="reference" href="https://developer.mozilla.org/en/SpiderMonkey/JSAPI_Reference/JS_InitStandardClasses">JS_InitStandardClasses()</a>, +which this method wraps.</dd></dl> + </dd></dl> <dl class="class">