Started rewrite for ruby2.0, spaceapi, rbenv and twitter-gem 5

This commit is contained in:
Simon Szustkowski 2014-09-03 10:28:19 +02:00
parent 0e71a4a55a
commit d037433eb9
1312 changed files with 112495 additions and 8 deletions

BIN
.gems/cache/json-1.8.1.gem vendored Normal file

Binary file not shown.

BIN
.gems/cache/twitter-5.11.0.gem vendored Normal file

Binary file not shown.

View file

@ -0,0 +1,345 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: BigDecimal</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/bigdecimal_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/bigdecimal.rb">lib/json/add/bigdecimal.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">BigDecimal</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Import a <a href="JSON.html">JSON</a> Marshalled object.</p>
<p>method used for <a href="JSON.html">JSON</a> marshalling support.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/bigdecimal.rb, line 10</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-constant">BigDecimal</span>.<span class="ruby-identifier">_load</span> <span class="ruby-identifier">object</span>[<span class="ruby-string">'b'</span>]
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Marshal the object to <a href="JSON.html">JSON</a>.</p>
<p>method used for <a href="JSON.html">JSON</a> marshalling support.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/bigdecimal.rb, line 17</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'b'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">_dump</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>return the <a href="JSON.html">JSON</a> value</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/bigdecimal.rb, line 25</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,268 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Class</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-json_creatable-3F">#json_creatable?</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Class</h1>
<div id="description" class="description">
<p>Extends any <a href="Class.html">Class</a> to include
<em>json_creatable?</em> method.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="json_creatable-3F-method" class="method-detail ">
<a name="method-i-json_creatable-3F"></a>
<div class="method-heading">
<span class="method-name">json_creatable?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns true if this class can be used to create an instance from a
serialised <a href="JSON.html">JSON</a> string. The class has to implement
a class method <em>json_create</em> that expects a hash as first parameter.
The hash should include the required data.</p>
<div class="method-source-code" id="json_creatable-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/common.rb, line 481</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">json_creatable?</span>
<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:json_create</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- json_creatable-3F-source -->
</div>
</div><!-- json_creatable-3F-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,342 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Complex</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/complex_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/complex.rb">lib/json/add/complex.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Complex</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/complex.rb, line 7</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-constant">Complex</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'r'</span>], <span class="ruby-identifier">object</span>[<span class="ruby-string">'i'</span>])
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/complex.rb, line 11</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'r'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">real</span>,
<span class="ruby-string">'i'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">imag</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/complex.rb, line 19</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,351 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Date</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/date_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/date.rb">lib/json/add/date.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Date</h1>
<div id="description" class="description">
<p><a href="Date.html">Date</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by converting Julian year
<tt>y</tt>, month <tt>m</tt>, day <tt>d</tt> and Day of Calendar Reform
<tt>sg</tt> to <a href="Date.html">Date</a>.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/date.rb, line 11</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">civil</span>(*<span class="ruby-identifier">object</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-string">'y'</span>, <span class="ruby-string">'m'</span>, <span class="ruby-string">'d'</span>, <span class="ruby-string">'sg'</span>))
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/date.rb, line 19</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'y'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">year</span>,
<span class="ruby-string">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">month</span>,
<span class="ruby-string">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">day</span>,
<span class="ruby-string">'sg'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">start</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Date.html">Date</a>) with Julian year
<tt>y</tt>, month <tt>m</tt>, day <tt>d</tt> and Day of Calendar Reform
<tt>sg</tt> as <a href="JSON.html">JSON</a> string</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/date.rb, line 31</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,365 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: DateTime</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/date_time_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/date_time.rb">lib/json/add/date_time.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">DateTime</h1>
<div id="description" class="description">
<p><a href="DateTime.html">DateTime</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by converting year
<tt>y</tt>, month <tt>m</tt>, day <tt>d</tt>, hour <tt>H</tt>, minute
<tt>M</tt>, second <tt>S</tt>, offset <tt>of</tt> and Day of Calendar
Reform <tt>sg</tt> to <a href="DateTime.html">DateTime</a>.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/date_time.rb, line 12</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">args</span> = <span class="ruby-identifier">object</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-string">'y'</span>, <span class="ruby-string">'m'</span>, <span class="ruby-string">'d'</span>, <span class="ruby-string">'H'</span>, <span class="ruby-string">'M'</span>, <span class="ruby-string">'S'</span>)
<span class="ruby-identifier">of_a</span>, <span class="ruby-identifier">of_b</span> = <span class="ruby-identifier">object</span>[<span class="ruby-string">'of'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-string">'/'</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">of_b</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">of_b</span> <span class="ruby-operator">!=</span> <span class="ruby-string">'0'</span>
<span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Rational</span>(<span class="ruby-identifier">of_a</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">of_b</span>.<span class="ruby-identifier">to_i</span>)
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">of_a</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">object</span>[<span class="ruby-string">'sg'</span>]
<span class="ruby-identifier">civil</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/date_time.rb, line 28</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'y'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">year</span>,
<span class="ruby-string">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">month</span>,
<span class="ruby-string">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">day</span>,
<span class="ruby-string">'H'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">hour</span>,
<span class="ruby-string">'M'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">min</span>,
<span class="ruby-string">'S'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">sec</span>,
<span class="ruby-string">'of'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">offset</span>.<span class="ruby-identifier">to_s</span>,
<span class="ruby-string">'sg'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">start</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="DateTime.html">DateTime</a>) with Julian year
<tt>y</tt>, month <tt>m</tt>, day <tt>d</tt>, hour <tt>H</tt>, minute
<tt>M</tt>, second <tt>S</tt>, offset <tt>of</tt> and Day of Calendar
Reform <tt>sg</tt> as <a href="JSON.html">JSON</a> string</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/date_time.rb, line 45</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,351 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Exception</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/exception_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/exception.rb">lib/json/add/exception.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Exception</h1>
<div id="description" class="description">
<p><a href="Exception.html">Exception</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by constructing new <a
href="Exception.html">Exception</a> object with message <tt>m</tt> and
backtrace <tt>b</tt> serialized with <tt>to_json</tt></p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/exception.rb, line 10</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">new</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'m'</span>])
<span class="ruby-identifier">result</span>.<span class="ruby-identifier">set_backtrace</span> <span class="ruby-identifier">object</span>[<span class="ruby-string">'b'</span>]
<span class="ruby-identifier">result</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/exception.rb, line 18</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">message</span>,
<span class="ruby-string">'b'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">backtrace</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Exception.html">Exception</a>) with message
<tt>m</tt> and backtrace array <tt>b</tt> as <a href="JSON.html">JSON</a>
string</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/exception.rb, line 28</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,213 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::CircularDatastructure</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="NestingError.html">JSON::NestingError</a></p>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::CircularDatastructure</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,208 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Ext</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/ext_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/ext.rb">lib/json/ext.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Ext</h1>
<div id="description" class="description">
<p>This module holds all the modules/classes that implement JSONs
functionality as C extensions.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,215 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::UnparserError</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="JSONError.html">JSON::JSONError</a></p>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::UnparserError</h1>
<div id="description" class="description">
<p>This exception is raised if a generator or unparser error occurs.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,656 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::GenericObject</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/generic_object_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/generic_object.rb">lib/json/generic_object.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="../OpenStruct.html">OpenStruct</a></p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-dump">::dump</a></li>
<li><a href="#method-c-from_hash">::from_hash</a></li>
<li><a href="#method-c-json_creatable-3F">::json_creatable?</a></li>
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-c-load">::load</a></li>
<li><a href="#method-i-5B-5D">#[]</a></li>
<li><a href="#method-i-5B-5D-3D">#[]=</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_hash">#to_hash</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
<li><a href="#method-i-7C">#|</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::GenericObject</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Attributes -->
<div id="attribute-method-details" class="method-section section">
<h3 class="section-header">Attributes</h3>
<div id="json_creatable-attribute-method" class="method-detail">
<a name="json_creatable"></a>
<a name="json_creatable="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">json_creatable</span><span
class="attribute-access-type">[W]</span>
</div>
<div class="method-description">
</div>
</div>
</div><!-- attribute-method-details -->
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="dump-method" class="method-detail ">
<a name="method-c-dump"></a>
<div class="method-heading">
<span class="method-name">dump</span><span
class="method-args">(obj, *args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="dump-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 40</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">dump</span>(<span class="ruby-identifier">obj</span>, *<span class="ruby-identifier">args</span>)
<span class="ruby-operator">::</span><span class="ruby-constant">JSON</span>.<span class="ruby-identifier">dump</span>(<span class="ruby-identifier">obj</span>, *<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- dump-source -->
</div>
</div><!-- dump-method -->
<div id="from_hash-method" class="method-detail ">
<a name="method-c-from_hash"></a>
<div class="method-heading">
<span class="method-name">from_hash</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="from_hash-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 20</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_hash</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-keyword">case</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_hash</span>)
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">new</span>
<span class="ruby-identifier">object</span>.<span class="ruby-identifier">to_hash</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
<span class="ruby-identifier">result</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">from_hash</span>(<span class="ruby-identifier">value</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">result</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_ary</span>)
<span class="ruby-identifier">object</span>.<span class="ruby-identifier">to_ary</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">from_hash</span>(<span class="ruby-identifier">a</span>) }
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">object</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- from_hash-source -->
</div>
</div><!-- from_hash-method -->
<div id="json_creatable-3F-method" class="method-detail ">
<a name="method-c-json_creatable-3F"></a>
<div class="method-heading">
<span class="method-name">json_creatable?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="json_creatable-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 8</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">json_creatable?</span>
<span class="ruby-ivar">@json_creatable</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- json_creatable-3F-source -->
</div>
</div><!-- json_creatable-3F-method -->
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(data)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 14</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">data</span>)
<span class="ruby-identifier">data</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">dup</span>
<span class="ruby-identifier">data</span>.<span class="ruby-identifier">delete</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span>
<span class="ruby-keyword">self</span>[<span class="ruby-identifier">data</span>]
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
<div id="load-method" class="method-detail ">
<a name="method-c-load"></a>
<div class="method-heading">
<span class="method-name">load</span><span
class="method-args">(source, proc = nil, opts = {})</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="load-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 35</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">proc</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">opts</span> = {})
<span class="ruby-identifier">result</span> = <span class="ruby-operator">::</span><span class="ruby-constant">JSON</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">proc</span>, <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-value">:object_class</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>))
<span class="ruby-identifier">result</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">new</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">result</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- load-source -->
</div>
</div><!-- load-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="5B-5D-method" class="method-detail ">
<a name="method-i-5B-5D"></a>
<div class="method-heading">
<span class="method-name">[]</span><span
class="method-args">(name)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="5B-5D-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 50</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-identifier">table</span>[<span class="ruby-identifier">name</span>.<span class="ruby-identifier">to_sym</span>]
<span class="ruby-keyword">end</span></pre>
</div><!-- 5B-5D-source -->
</div>
</div><!-- 5B-5D-method -->
<div id="5B-5D-3D-method" class="method-detail ">
<a name="method-i-5B-5D-3D"></a>
<div class="method-heading">
<span class="method-name">[]=</span><span
class="method-args">(name, value)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="5B-5D-3D-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 54</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
<span class="ruby-identifier">__send__</span> <span class="ruby-node">&quot;#{name}=&quot;</span>, <span class="ruby-identifier">value</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- 5B-5D-3D-source -->
</div>
</div><!-- 5B-5D-3D-method -->
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 62</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{ <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span> }.<span class="ruby-identifier">merge</span> <span class="ruby-identifier">to_hash</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_hash-method" class="method-detail ">
<a name="method-i-to_hash"></a>
<div class="method-heading">
<span class="method-name">to_hash</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="to_hash-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 46</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_hash</span>
<span class="ruby-identifier">table</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_hash-source -->
</div>
</div><!-- to_hash-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*a)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 66</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
<div id="7C-method" class="method-detail ">
<a name="method-i-7C"></a>
<div class="method-heading">
<span class="method-name">|</span><span
class="method-args">(other)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="7C-source">
<pre>
<span class="ruby-comment"># File lib/json/generic_object.rb, line 58</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">|</span>(<span class="ruby-identifier">other</span>)
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>[<span class="ruby-identifier">other</span>.<span class="ruby-identifier">to_hash</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">to_hash</span>)]
<span class="ruby-keyword">end</span></pre>
</div><!-- 7C-source -->
</div>
</div><!-- 7C-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,266 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::JSONError</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">StandardError</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-wrap">::wrap</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::JSONError</h1>
<div id="description" class="description">
<p>The base exception for <a href="../JSON.html">JSON</a> errors.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="wrap-method" class="method-detail ">
<a name="method-c-wrap"></a>
<div class="method-heading">
<span class="method-name">wrap</span><span
class="method-args">(exception)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="wrap-source">
<pre>
<span class="ruby-comment"># File lib/json/common.rb, line 107</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">wrap</span>(<span class="ruby-identifier">exception</span>)
<span class="ruby-identifier">obj</span> = <span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;Wrapped(#{exception.class}): #{exception.message.inspect}&quot;</span>)
<span class="ruby-identifier">obj</span>.<span class="ruby-identifier">set_backtrace</span> <span class="ruby-identifier">exception</span>.<span class="ruby-identifier">backtrace</span>
<span class="ruby-identifier">obj</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- wrap-source -->
</div>
</div><!-- wrap-method -->
</div><!-- public-class-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,216 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::MissingUnicodeSupport</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="JSONError.html">JSON::JSONError</a></p>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::MissingUnicodeSupport</h1>
<div id="description" class="description">
<p>This exception is raised if the required unicode support is missing on the
system. Usually this means that the iconv library is not installed.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,216 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::NestingError</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="ParserError.html">JSON::ParserError</a></p>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::NestingError</h1>
<div id="description" class="description">
<p>This exception is raised if the nesting of parsed data structures is too
deep.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,215 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::ParserError</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link"><a href="JSONError.html">JSON::JSONError</a></p>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::ParserError</h1>
<div id="description" class="description">
<p>This exception is raised if a parser error occurs.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,226 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure</title>
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../index.html">Home</a>
<a href="../index.html#classes">Classes</a>
<a href="../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../lib/json/pure_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure.rb">lib/json/pure.rb</a></li>
<li><a href="../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
<li><a href="../lib/json/pure/parser_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/parser.rb">lib/json/pure/parser.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Namespace Contents -->
<div id="namespace-list-section" class="section">
<h3 class="section-header">Namespace</h3>
<ul class="link-list">
<li><span class="type">MODULE</span> <a href="Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><span class="type">CLASS</span> <a href="Pure/Parser.html">JSON::Pure::Parser</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../JSON.html">JSON</a></li>
<li><a href="../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../BigDecimal.html">BigDecimal</a></li>
<li><a href="../Class.html">Class</a></li>
<li><a href="../Complex.html">Complex</a></li>
<li><a href="../Date.html">Date</a></li>
<li><a href="../DateTime.html">DateTime</a></li>
<li><a href="../Exception.html">Exception</a></li>
<li><a href="../Kernel.html">Kernel</a></li>
<li><a href="../OpenStruct.html">OpenStruct</a></li>
<li><a href="../Range.html">Range</a></li>
<li><a href="../Rational.html">Rational</a></li>
<li><a href="../Regexp.html">Regexp</a></li>
<li><a href="../Struct.html">Struct</a></li>
<li><a href="../Symbol.html">Symbol</a></li>
<li><a href="../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure</h1>
<div id="description" class="description">
<p>This module holds all the modules/classes that implement JSONs
functionality in pure ruby.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,217 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator</title>
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
<script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../index.html">Home</a>
<a href="../../index.html#classes">Classes</a>
<a href="../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Namespace Contents -->
<div id="namespace-list-section" class="section">
<h3 class="section-header">Namespace</h3>
<ul class="link-list">
<li><span class="type">MODULE</span> <a href="Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><span class="type">CLASS</span> <a href="Generator/State.html">JSON::Pure::Generator::State</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../JSON.html">JSON</a></li>
<li><a href="../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../Class.html">Class</a></li>
<li><a href="../../Complex.html">Complex</a></li>
<li><a href="../../Date.html">Date</a></li>
<li><a href="../../DateTime.html">DateTime</a></li>
<li><a href="../../Exception.html">Exception</a></li>
<li><a href="../../Kernel.html">Kernel</a></li>
<li><a href="../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../Range.html">Range</a></li>
<li><a href="../../Rational.html">Rational</a></li>
<li><a href="../../Regexp.html">Regexp</a></li>
<li><a href="../../Struct.html">Struct</a></li>
<li><a href="../../Symbol.html">Symbol</a></li>
<li><a href="../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,231 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods</title>
<link rel="stylesheet" href="../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../index.html">Home</a>
<a href="../../../index.html#classes">Classes</a>
<a href="../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Namespace Contents -->
<div id="namespace-list-section" class="section">
<h3 class="section-header">Namespace</h3>
<ul class="link-list">
<li><span class="type">MODULE</span> <a href="GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><span class="type">MODULE</span> <a href="GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../JSON.html">JSON</a></li>
<li><a href="../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../Class.html">Class</a></li>
<li><a href="../../../Complex.html">Complex</a></li>
<li><a href="../../../Date.html">Date</a></li>
<li><a href="../../../DateTime.html">DateTime</a></li>
<li><a href="../../../Exception.html">Exception</a></li>
<li><a href="../../../Kernel.html">Kernel</a></li>
<li><a href="../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../Range.html">Range</a></li>
<li><a href="../../../Rational.html">Rational</a></li>
<li><a href="../../../Regexp.html">Regexp</a></li>
<li><a href="../../../Struct.html">Struct</a></li>
<li><a href="../../../Symbol.html">Symbol</a></li>
<li><a href="../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,260 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::Array</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::Array</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(state = nil, *)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string containing a <a
href="../../../../JSON.html">JSON</a> array, that is unparsed from this <a
href="Array.html">Array</a> instance. <em>state</em> is a JSON::State
object, that can also be used to configure the produced <a
href="../../../../JSON.html">JSON</a> string output further.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 382</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword">nil</span>, *)
<span class="ruby-identifier">state</span> = <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>)
<span class="ruby-identifier">state</span>.<span class="ruby-identifier">check_max_nesting</span>
<span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,253 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::FalseClass</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::FalseClass</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string for false:
false.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 512</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*) <span class="ruby-string">'false'</span> <span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,271 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::Float</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::Float</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(state = nil, *)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string representation
for this <a href="Float.html">Float</a> number.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 418</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword">nil</span>, *)
<span class="ruby-identifier">state</span> = <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>)
<span class="ruby-keyword">case</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">infinite?</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">allow_nan?</span>
<span class="ruby-identifier">to_s</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-node">&quot;#{self} not allowed in JSON&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">nan?</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">allow_nan?</span>
<span class="ruby-identifier">to_s</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-node">&quot;#{self} not allowed in JSON&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">to_s</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,261 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::Hash</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::Hash</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(state = nil, *)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string containing a <a
href="../../../../JSON.html">JSON</a> object, that is unparsed from this <a
href="Hash.html">Hash</a> instance. <em>state</em> is a JSON::State object,
that can also be used to configure the produced <a
href="../../../../JSON.html">JSON</a> string output further. <em>depth</em>
is used to find out nesting depth, to indent accordingly.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 338</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword">nil</span>, *)
<span class="ruby-identifier">state</span> = <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>)
<span class="ruby-identifier">state</span>.<span class="ruby-identifier">check_max_nesting</span>
<span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,253 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::Integer</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::Integer</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string representation
for this <a href="Integer.html">Integer</a> number.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 413</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*) <span class="ruby-identifier">to_s</span> <span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,252 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::NilClass</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::NilClass</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string for nil: null.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 517</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*) <span class="ruby-string">'null'</span> <span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,256 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::Object</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::Object</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Converts this object to a string (calling to_s), converts it to a <a
href="../../../../JSON.html">JSON</a> string, and returns the result. This
is a fallback, if no special method <a
href="Object.html#method-i-to_json">to_json</a> was defined for some
object.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 329</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*) <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_json</span> <span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,398 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::String</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Namespace Contents -->
<div id="namespace-list-section" class="section">
<h3 class="section-header">Namespace</h3>
<ul class="link-list">
<li><span class="type">MODULE</span> <a href="String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
</ul>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-included">::included</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
<li><a href="#method-i-to_json_raw">#to_json_raw</a></li>
<li><a href="#method-i-to_json_raw_object">#to_json_raw_object</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::String</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="included-method" class="method-detail ">
<a name="method-c-included"></a>
<div class="method-heading">
<span class="method-name">included</span><span
class="method-args">(modul)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Extends <em>modul</em> with the <a
href="String/Extend.html">String::Extend</a> module.</p>
<div class="method-source-code" id="included-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 483</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">modul</span>)
<span class="ruby-identifier">modul</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Extend</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- included-source -->
</div>
</div><!-- included-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(state = nil, *args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>This string should be encoded with UTF-8 A call to this method returns a <a
href="../../../../JSON.html">JSON</a> string encoded with UTF16 big endian
characters as u????.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 444</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword">nil</span>, *<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">state</span> = <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">encoding</span> <span class="ruby-operator">==</span> <span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>
<span class="ruby-identifier">string</span> = <span class="ruby-keyword">self</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">string</span> = <span class="ruby-identifier">encode</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span>
<span class="ruby-string">'&quot;'</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">utf8_to_json_ascii</span>(<span class="ruby-identifier">string</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">'&quot;'</span>
<span class="ruby-keyword">else</span>
<span class="ruby-string">'&quot;'</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">utf8_to_json</span>(<span class="ruby-identifier">string</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">'&quot;'</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
<div id="to_json_raw-method" class="method-detail ">
<a name="method-i-to_json_raw"></a>
<div class="method-heading">
<span class="method-name">to_json_raw</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>This method creates a <a href="../../../../JSON.html">JSON</a> text from
the result of a call to <a
href="String.html#method-i-to_json_raw_object">to_json_raw_object</a> of
this <a href="String.html">String</a>.</p>
<div class="method-source-code" id="to_json_raw-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 500</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json_raw</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">to_json_raw_object</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json_raw-source -->
</div>
</div><!-- to_json_raw-method -->
<div id="to_json_raw_object-method" class="method-detail ">
<a name="method-i-to_json_raw_object"></a>
<div class="method-heading">
<span class="method-name">to_json_raw_object</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>This method creates a raw object hash, that can be nested into other data
structures and will be unparsed as a raw string. This method should be
used, if you want to convert raw strings to <a
href="../../../../JSON.html">JSON</a> instead of UTF-8 strings, e. g.
binary data.</p>
<div class="method-source-code" id="to_json_raw_object-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 491</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json_raw_object</span>
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'raw'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-string">'C*'</span>),
}
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json_raw_object-source -->
</div>
</div><!-- to_json_raw_object-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::String::Extend</title>
<link rel="stylesheet" href="../../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../../index.html">Home</a>
<a href="../../../../../index.html#classes">Classes</a>
<a href="../../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-json_create">#json_create</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../../JSON.html">JSON</a></li>
<li><a href="../../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../../Class.html">Class</a></li>
<li><a href="../../../../../Complex.html">Complex</a></li>
<li><a href="../../../../../Date.html">Date</a></li>
<li><a href="../../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../../Exception.html">Exception</a></li>
<li><a href="../../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../../Range.html">Range</a></li>
<li><a href="../../../../../Rational.html">Rational</a></li>
<li><a href="../../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../../Struct.html">Struct</a></li>
<li><a href="../../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::String::Extend</h1>
<div id="description" class="description">
<p>Module that holds the extinding methods if, the <a
href="../String.html">String</a> module is included.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-i-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(o)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Raw Strings are <a href="../../../../../JSON.html">JSON</a> Objects (the
raw bytes are stored in an array for the key “raw”). The Ruby <a
href="../String.html">String</a> can be created by this module method.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 477</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">o</span>)
<span class="ruby-identifier">o</span>[<span class="ruby-string">'raw'</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-string">'C*'</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,252 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: JSON::Pure::Generator::GeneratorMethods::TrueClass</title>
<link rel="stylesheet" href="../../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../../index.html">Home</a>
<a href="../../../../index.html#classes">Classes</a>
<a href="../../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../../JSON.html">JSON</a></li>
<li><a href="../../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../../Class.html">Class</a></li>
<li><a href="../../../../Complex.html">Complex</a></li>
<li><a href="../../../../Date.html">Date</a></li>
<li><a href="../../../../DateTime.html">DateTime</a></li>
<li><a href="../../../../Exception.html">Exception</a></li>
<li><a href="../../../../Kernel.html">Kernel</a></li>
<li><a href="../../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../../Range.html">Range</a></li>
<li><a href="../../../../Rational.html">Rational</a></li>
<li><a href="../../../../Regexp.html">Regexp</a></li>
<li><a href="../../../../Struct.html">Struct</a></li>
<li><a href="../../../../Symbol.html">Symbol</a></li>
<li><a href="../../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">JSON::Pure::Generator::GeneratorMethods::TrueClass</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a <a href="../../../../JSON.html">JSON</a> string for true: true.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 507</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*) <span class="ruby-string">'true'</span> <span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,963 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::Pure::Generator::State</title>
<link rel="stylesheet" href="../../../rdoc.css" type="text/css" media="screen" />
<script src="../../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../../index.html">Home</a>
<a href="../../../index.html#classes">Classes</a>
<a href="../../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../../lib/json/pure/generator_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/generator.rb">lib/json/pure/generator.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-from_state">::from_state</a></li>
<li><a href="#method-c-new">::new</a></li>
<li><a href="#method-i-5B-5D">#[]</a></li>
<li><a href="#method-i-5B-5D-3D">#[]=</a></li>
<li><a href="#method-i-allow_nan-3F">#allow_nan?</a></li>
<li><a href="#method-i-ascii_only-3F">#ascii_only?</a></li>
<li><a href="#method-i-check_circular-3F">#check_circular?</a></li>
<li><a href="#method-i-configure">#configure</a></li>
<li><a href="#method-i-generate">#generate</a></li>
<li><a href="#method-i-merge">#merge</a></li>
<li><a href="#method-i-quirks_mode-3F">#quirks_mode?</a></li>
<li><a href="#method-i-to_h">#to_h</a></li>
<li><a href="#method-i-to_hash">#to_hash</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../../JSON.html">JSON</a></li>
<li><a href="../../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../../Class.html">Class</a></li>
<li><a href="../../../Complex.html">Complex</a></li>
<li><a href="../../../Date.html">Date</a></li>
<li><a href="../../../DateTime.html">DateTime</a></li>
<li><a href="../../../Exception.html">Exception</a></li>
<li><a href="../../../Kernel.html">Kernel</a></li>
<li><a href="../../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../../Range.html">Range</a></li>
<li><a href="../../../Rational.html">Rational</a></li>
<li><a href="../../../Regexp.html">Regexp</a></li>
<li><a href="../../../Struct.html">Struct</a></li>
<li><a href="../../../Symbol.html">Symbol</a></li>
<li><a href="../../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::Pure::Generator::State</h1>
<div id="description" class="description">
<p>This class is used to create <a href="State.html">State</a> instances, that
are use to hold data while generating a <a
href="../../../JSON.html">JSON</a> text from a Ruby data structure.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Attributes -->
<div id="attribute-method-details" class="method-section section">
<h3 class="section-header">Attributes</h3>
<div id="array_nl-attribute-method" class="method-detail">
<a name="array_nl"></a>
<a name="array_nl="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">array_nl</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This string is put at the end of a line that holds a <a
href="../../../JSON.html">JSON</a> array.</p>
</div>
</div>
<div id="depth-attribute-method" class="method-detail">
<a name="depth"></a>
<a name="depth="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">depth</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This integer returns the current depth data structure nesting in the
generated <a href="../../../JSON.html">JSON</a>.</p>
</div>
</div>
<div id="indent-attribute-method" class="method-detail">
<a name="indent"></a>
<a name="indent="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">indent</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This string is used to indent levels in the <a
href="../../../JSON.html">JSON</a> text.</p>
</div>
</div>
<div id="max_nesting-attribute-method" class="method-detail">
<a name="max_nesting"></a>
<a name="max_nesting="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">max_nesting</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This integer returns the maximum level of data structure nesting in the
generated <a href="../../../JSON.html">JSON</a>, <a
href="State.html#attribute-i-max_nesting">max_nesting</a> = 0 if no maximum
is checked.</p>
</div>
</div>
<div id="object_nl-attribute-method" class="method-detail">
<a name="object_nl"></a>
<a name="object_nl="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">object_nl</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This string is put at the end of a line that holds a <a
href="../../../JSON.html">JSON</a> object (or Hash).</p>
</div>
</div>
<div id="quirks_mode-attribute-method" class="method-detail">
<a name="quirks_mode"></a>
<a name="quirks_mode="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">quirks_mode</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>If this attribute is set to true, quirks mode is enabled, otherwise its
disabled.</p>
</div>
</div>
<div id="space-attribute-method" class="method-detail">
<a name="space"></a>
<a name="space="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">space</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This string is used to insert a space between the tokens in a <a
href="../../../JSON.html">JSON</a> string.</p>
</div>
</div>
<div id="space_before-attribute-method" class="method-detail">
<a name="space_before"></a>
<a name="space_before="></a>
<div class="method-heading attribute-method-heading">
<span class="method-name">space_before</span><span
class="attribute-access-type">[RW]</span>
</div>
<div class="method-description">
<p>This string is used to insert a space before the : in <a
href="../../../JSON.html">JSON</a> objects.</p>
</div>
</div>
</div><!-- attribute-method-details -->
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="from_state-method" class="method-detail ">
<a name="method-c-from_state"></a>
<div class="method-heading">
<span class="method-name">from_state</span><span
class="method-args">(opts)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Creates a <a href="State.html">State</a> object from <em>opts</em>, which
ought to be Hash to create a new <a href="State.html">State</a> instance
configured by <em>opts</em>, something else to create an unconfigured
instance. If <em>opts</em> is a <a href="State.html">State</a> object, it
is just returned.</p>
<div class="method-source-code" id="from_state-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 129</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">opts</span>)
<span class="ruby-keyword">case</span>
<span class="ruby-keyword">when</span> <span class="ruby-keyword">self</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">opts</span>
<span class="ruby-identifier">opts</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_hash</span>)
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span>)
<span class="ruby-keyword">when</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_h</span>)
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span>)
<span class="ruby-keyword">else</span>
<span class="ruby-constant">SAFE_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- from_state-source -->
</div>
</div><!-- from_state-method -->
<div id="new-method" class="method-detail ">
<a name="method-c-new"></a>
<div class="method-heading">
<span class="method-name">new</span><span
class="method-args">(opts = {})</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Instantiates a new <a href="State.html">State</a> object, configured by
<em>opts</em>.</p>
<p><em>opts</em> can have the following keys:</p>
<ul><li>
<p><b>indent</b>: a string used to indent levels (default: "),</p>
</li><li>
<p><b>space</b>: a string that is put after, a : or , delimiter (default: "),</p>
</li><li>
<p><b><a href="State.html#attribute-i-space_before">space_before</a></b>: a
string that is put before a : pair delimiter (default: "),</p>
</li><li>
<p><b><a href="State.html#attribute-i-object_nl">object_nl</a></b>: a string
that is put at the end of a <a href="../../../JSON.html">JSON</a> object
(default: "),</p>
</li><li>
<p><b><a href="State.html#attribute-i-array_nl">array_nl</a></b>: a string
that is put at the end of a <a href="../../../JSON.html">JSON</a> array
(default: "),</p>
</li><li>
<p><b>check_circular</b>: is deprecated now, use the :<a
href="State.html#attribute-i-max_nesting">max_nesting</a> option instead,</p>
</li><li>
<p><b><a href="State.html#attribute-i-max_nesting">max_nesting</a></b>: sets
the maximum level of data structure nesting in the generated <a
href="../../../JSON.html">JSON</a>, <a
href="State.html#attribute-i-max_nesting">max_nesting</a> = 0 if no maximum
should be checked.</p>
</li><li>
<p><b>allow_nan</b>: true if NaN, Infinity, and -Infinity should be generated,
otherwise an exception is thrown, if these values are encountered. This
options defaults to false.</p>
</li><li>
<p><b><a href="State.html#attribute-i-quirks_mode">quirks_mode</a></b>:
Enables <a href="State.html#attribute-i-quirks_mode">quirks_mode</a> for
parser, that is for example generating single <a
href="../../../JSON.html">JSON</a> values instead of documents is possible.</p>
</li></ul>
<div class="method-source-code" id="new-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 159</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">opts</span> = {})
<span class="ruby-ivar">@indent</span> = <span class="ruby-string">''</span>
<span class="ruby-ivar">@space</span> = <span class="ruby-string">''</span>
<span class="ruby-ivar">@space_before</span> = <span class="ruby-string">''</span>
<span class="ruby-ivar">@object_nl</span> = <span class="ruby-string">''</span>
<span class="ruby-ivar">@array_nl</span> = <span class="ruby-string">''</span>
<span class="ruby-ivar">@allow_nan</span> = <span class="ruby-keyword">false</span>
<span class="ruby-ivar">@ascii_only</span> = <span class="ruby-keyword">false</span>
<span class="ruby-ivar">@quirks_mode</span> = <span class="ruby-keyword">false</span>
<span class="ruby-ivar">@buffer_initial_length</span> = <span class="ruby-value">1024</span>
<span class="ruby-identifier">configure</span> <span class="ruby-identifier">opts</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- new-source -->
</div>
</div><!-- new-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="5B-5D-method" class="method-detail ">
<a name="method-i-5B-5D"></a>
<div class="method-heading">
<span class="method-name">[]</span><span
class="method-args">(name)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Return the value returned by method <tt>name</tt>.</p>
<div class="method-source-code" id="5B-5D-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 307</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-identifier">__send__</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{name}&quot;</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- 5B-5D-source -->
</div>
</div><!-- 5B-5D-method -->
<div id="5B-5D-3D-method" class="method-detail ">
<a name="method-i-5B-5D-3D"></a>
<div class="method-heading">
<span class="method-name">[]=</span><span
class="method-args">(name, value)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="5B-5D-3D-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 315</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">name_writer</span> = <span class="ruby-node">&quot;#{name}=&quot;</span>)
<span class="ruby-identifier">__send__</span> <span class="ruby-identifier">name_writer</span>, <span class="ruby-identifier">value</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">&quot;@#{name}&quot;</span>, <span class="ruby-identifier">value</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- 5B-5D-3D-source -->
</div>
</div><!-- 5B-5D-3D-method -->
<div id="allow_nan-3F-method" class="method-detail ">
<a name="method-i-allow_nan-3F"></a>
<div class="method-heading">
<span class="method-name">allow_nan?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns true if NaN, Infinity, and -Infinity should be considered as valid
<a href="../../../JSON.html">JSON</a> and output.</p>
<div class="method-source-code" id="allow_nan-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 226</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">allow_nan?</span>
<span class="ruby-ivar">@allow_nan</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- allow_nan-3F-source -->
</div>
</div><!-- allow_nan-3F-method -->
<div id="ascii_only-3F-method" class="method-detail ">
<a name="method-i-ascii_only-3F"></a>
<div class="method-heading">
<span class="method-name">ascii_only?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns true, if only ASCII characters should be generated. Otherwise
returns false.</p>
<div class="method-source-code" id="ascii_only-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 232</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ascii_only?</span>
<span class="ruby-ivar">@ascii_only</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- ascii_only-3F-source -->
</div>
</div><!-- ascii_only-3F-method -->
<div id="check_circular-3F-method" class="method-detail ">
<a name="method-i-check_circular-3F"></a>
<div class="method-heading">
<span class="method-name">check_circular?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns true, if circular data structures are checked, otherwise returns
false.</p>
<div class="method-source-code" id="check_circular-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 220</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">check_circular?</span>
<span class="ruby-operator">!</span><span class="ruby-ivar">@max_nesting</span>.<span class="ruby-identifier">zero?</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- check_circular-3F-source -->
</div>
</div><!-- check_circular-3F-method -->
<div id="configure-method" class="method-detail ">
<a name="method-i-configure"></a>
<div class="method-heading">
<span class="method-name">configure</span><span
class="method-args">(opts)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Configure this <a href="State.html">State</a> instance with the Hash
<em>opts</em>, and return itself.</p>
<div class="method-source-code" id="configure-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 243</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_hash</span>)
<span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span>
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_h</span>)
<span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">&quot;can't convert #{opts.class} into Hash&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">for</span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span> <span class="ruby-keyword">in</span> <span class="ruby-identifier">opts</span>
<span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">&quot;@#{key}&quot;</span>, <span class="ruby-identifier">value</span>
<span class="ruby-keyword">end</span>
<span class="ruby-ivar">@indent</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:indent</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:indent</span>)
<span class="ruby-ivar">@space</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:space</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:space</span>)
<span class="ruby-ivar">@space_before</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:space_before</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:space_before</span>)
<span class="ruby-ivar">@object_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:object_nl</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:object_nl</span>)
<span class="ruby-ivar">@array_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:array_nl</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:array_nl</span>)
<span class="ruby-ivar">@allow_nan</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-value">:allow_nan</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:allow_nan</span>)
<span class="ruby-ivar">@ascii_only</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:ascii_only</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:ascii_only</span>)
<span class="ruby-ivar">@depth</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:depth</span>] <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
<span class="ruby-ivar">@quirks_mode</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:quirks_mode</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:quirks_mode</span>)
<span class="ruby-ivar">@buffer_initial_length</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:buffer_initial_length</span>]
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:max_nesting</span>) <span class="ruby-comment"># defaults to 100</span>
<span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">100</span>
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
<span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
<span class="ruby-keyword">else</span>
<span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">self</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- configure-source -->
</div>
<div class="aliases">
Also aliased as: <a href="State.html#method-i-merge">merge</a>
</div>
</div><!-- configure-method -->
<div id="generate-method" class="method-detail ">
<a name="method-i-generate"></a>
<div class="method-heading">
<span class="method-name">generate</span><span
class="method-args">(obj)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Generates a valid <a href="../../../JSON.html">JSON</a> document from
object <tt>obj</tt> and returns the result. If no valid <a
href="../../../JSON.html">JSON</a> document can be created this method
raises a <a href="../../GeneratorError.html">GeneratorError</a> exception.</p>
<div class="method-source-code" id="generate-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 292</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-keyword">self</span>)
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">valid_utf8?</span>(<span class="ruby-identifier">result</span>) <span class="ruby-keyword">or</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>,
<span class="ruby-node">&quot;source sequence #{result.inspect} is illegal/malformed utf-8&quot;</span>
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@quirks_mode</span>
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\A\s*\[/</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\]\s*\Z/</span> <span class="ruby-operator">||</span>
<span class="ruby-identifier">result</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\A\s*\{/</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/\}\s*\Z/</span>
<span class="ruby-keyword">then</span>
<span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-string">&quot;only generation of JSON objects or arrays allowed&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">result</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- generate-source -->
</div>
</div><!-- generate-method -->
<div id="merge-method" class="method-detail method-alias">
<a name="method-i-merge"></a>
<div class="method-heading">
<span class="method-name">merge</span><span
class="method-args">(opts)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
</div>
<div class="aliases">
Alias for: <a href="State.html#method-i-configure">configure</a>
</div>
</div><!-- merge-method -->
<div id="quirks_mode-3F-method" class="method-detail ">
<a name="method-i-quirks_mode-3F"></a>
<div class="method-heading">
<span class="method-name">quirks_mode?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns true, if quirks mode is enabled. Otherwise returns false.</p>
<div class="method-source-code" id="quirks_mode-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 237</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">quirks_mode?</span>
<span class="ruby-ivar">@quirks_mode</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- quirks_mode-3F-source -->
</div>
</div><!-- quirks_mode-3F-method -->
<div id="to_h-method" class="method-detail ">
<a name="method-i-to_h"></a>
<div class="method-heading">
<span class="method-name">to_h</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns the configuration instance variables as a hash, that can be passed
to the configure method.</p>
<div class="method-source-code" id="to_h-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/generator.rb, line 278</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_h</span>
<span class="ruby-identifier">result</span> = {}
<span class="ruby-keyword">for</span> <span class="ruby-identifier">iv</span> <span class="ruby-keyword">in</span> <span class="ruby-identifier">instance_variables</span>
<span class="ruby-identifier">iv</span> = <span class="ruby-identifier">iv</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
<span class="ruby-identifier">result</span>[<span class="ruby-identifier">iv</span>.<span class="ruby-identifier">to_sym</span>] = <span class="ruby-keyword">self</span>[<span class="ruby-identifier">iv</span>]
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">result</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_h-source -->
</div>
<div class="aliases">
Also aliased as: <a href="State.html#method-i-to_hash">to_hash</a>
</div>
</div><!-- to_h-method -->
<div id="to_hash-method" class="method-detail method-alias">
<a name="method-i-to_hash"></a>
<div class="method-heading">
<span class="method-name">to_hash</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
</div>
<div class="aliases">
Alias for: <a href="State.html#method-i-to_h">to_h</a>
</div>
</div><!-- to_hash-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,563 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: JSON::Pure::Parser</title>
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
<script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="../../index.html">Home</a>
<a href="../../index.html#classes">Classes</a>
<a href="../../index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="../../lib/json/pure/parser_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/pure/parser.rb">lib/json/pure/parser.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">StringScanner</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-new">::new</a></li>
<li><a href="#method-i-parse">#parse</a></li>
<li><a href="#method-i-quirks_mode-3F">#quirks_mode?</a></li>
<li><a href="#method-i-reset">#reset</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="../../images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="../../JSON.html">JSON</a></li>
<li><a href="../../JSON/Ext.html">JSON::Ext</a></li>
<li><a href="../../JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="../../JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="../../JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="../../JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="../../JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="../../JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="../../JSON/Pure.html">JSON::Pure</a></li>
<li><a href="../../JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="../../JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="../../JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="../../JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="../../JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="../../BigDecimal.html">BigDecimal</a></li>
<li><a href="../../Class.html">Class</a></li>
<li><a href="../../Complex.html">Complex</a></li>
<li><a href="../../Date.html">Date</a></li>
<li><a href="../../DateTime.html">DateTime</a></li>
<li><a href="../../Exception.html">Exception</a></li>
<li><a href="../../Kernel.html">Kernel</a></li>
<li><a href="../../OpenStruct.html">OpenStruct</a></li>
<li><a href="../../Range.html">Range</a></li>
<li><a href="../../Rational.html">Rational</a></li>
<li><a href="../../Regexp.html">Regexp</a></li>
<li><a href="../../Struct.html">Struct</a></li>
<li><a href="../../Symbol.html">Symbol</a></li>
<li><a href="../../Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">JSON::Pure::Parser</h1>
<div id="description" class="description">
<p>This class implements the <a href="../../JSON.html">JSON</a> parser that is
used to parse a <a href="../../JSON.html">JSON</a> string into a Ruby data
structure.</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Constants -->
<div id="constants-list" class="section">
<h3 class="section-header">Constants</h3>
<dl>
<dt><a name="ARRAY_CLOSE">ARRAY_CLOSE</a></dt>
<dd class="description"></dd>
<dt><a name="ARRAY_OPEN">ARRAY_OPEN</a></dt>
<dd class="description"></dd>
<dt><a name="COLLECTION_DELIMITER">COLLECTION_DELIMITER</a></dt>
<dd class="description"></dd>
<dt><a name="EMPTY_8BIT_STRING">EMPTY_8BIT_STRING</a></dt>
<dd class="description"></dd>
<dt><a name="FALSE">FALSE</a></dt>
<dd class="description"></dd>
<dt><a name="FLOAT">FLOAT</a></dt>
<dd class="description"></dd>
<dt><a name="IGNORE">IGNORE</a></dt>
<dd class="description"></dd>
<dt><a name="INFINITY">INFINITY</a></dt>
<dd class="description"></dd>
<dt><a name="INTEGER">INTEGER</a></dt>
<dd class="description"></dd>
<dt><a name="MINUS_INFINITY">MINUS_INFINITY</a></dt>
<dd class="description"></dd>
<dt><a name="NAN">NAN</a></dt>
<dd class="description"></dd>
<dt><a name="NULL">NULL</a></dt>
<dd class="description"></dd>
<dt><a name="OBJECT_CLOSE">OBJECT_CLOSE</a></dt>
<dd class="description"></dd>
<dt><a name="OBJECT_OPEN">OBJECT_OPEN</a></dt>
<dd class="description"></dd>
<dt><a name="PAIR_DELIMITER">PAIR_DELIMITER</a></dt>
<dd class="description"></dd>
<dt><a name="STRING">STRING</a></dt>
<dd class="description"></dd>
<dt><a name="TRUE">TRUE</a></dt>
<dd class="description"></dd>
<dt><a name="UNESCAPE_MAP">UNESCAPE_MAP</a></dt>
<dd class="description"><p>Unescape characters in strings.</p></dd>
<dt><a name="UNPARSED">UNPARSED</a></dt>
<dd class="description"></dd>
</dl>
</div>
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="new-method" class="method-detail ">
<a name="method-c-new"></a>
<div class="method-heading">
<span class="method-name">new</span><span
class="method-args">(source, opts = {})</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Creates a new <a href="Parser.html">JSON::Pure::Parser</a> instance for the
string <em>source</em>.</p>
<p>It will be configured by the <em>opts</em> hash. <em>opts</em> can have the
following keys:</p>
<ul><li>
<p><b>max_nesting</b>: The maximum depth of nesting allowed in the parsed data
structures. Disable depth checking with :max_nesting =&gt; false|nil|0, it
defaults to 100.</p>
</li><li>
<p><b>allow_nan</b>: If set to true, allow NaN, Infinity and -Infinity in
defiance of RFC 4627 to be parsed by the <a href="Parser.html">Parser</a>.
This option defaults to false.</p>
</li><li>
<p><b>symbolize_names</b>: If set to true, returns symbols for the names
(keys) in a <a href="../../JSON.html">JSON</a> object. Otherwise strings
are returned, which is also the default.</p>
</li><li>
<p><b>create_additions</b>: If set to true, the <a
href="Parser.html">Parser</a> creates additions when if a matching class
and create_id was found. This option defaults to false.</p>
</li><li>
<p><b>object_class</b>: Defaults to Hash</p>
</li><li>
<p><b>array_class</b>: Defaults to Array</p>
</li><li>
<p><b>quirks_mode</b>: Enables quirks_mode for parser, that is for example
parsing single <a href="../../JSON.html">JSON</a> values instead of
documents is possible.</p>
</li></ul>
<div class="method-source-code" id="new-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/parser.rb, line 73</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">opts</span> = {})
<span class="ruby-identifier">opts</span> <span class="ruby-operator">||=</span> {}
<span class="ruby-keyword">unless</span> <span class="ruby-ivar">@quirks_mode</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:quirks_mode</span>]
<span class="ruby-identifier">source</span> = <span class="ruby-identifier">convert_encoding</span> <span class="ruby-identifier">source</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">super</span> <span class="ruby-identifier">source</span>
<span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:max_nesting</span>) <span class="ruby-comment"># defaults to 100</span>
<span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">100</span>
<span class="ruby-keyword">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
<span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
<span class="ruby-keyword">else</span>
<span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span>
<span class="ruby-keyword">end</span>
<span class="ruby-ivar">@allow_nan</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-value">:allow_nan</span>]
<span class="ruby-ivar">@symbolize_names</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-value">:symbolize_names</span>]
<span class="ruby-keyword">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:create_additions</span>)
<span class="ruby-ivar">@create_additions</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-value">:create_additions</span>]
<span class="ruby-keyword">else</span>
<span class="ruby-ivar">@create_additions</span> = <span class="ruby-keyword">false</span>
<span class="ruby-keyword">end</span>
<span class="ruby-ivar">@create_id</span> = <span class="ruby-ivar">@create_additions</span> <span class="ruby-operator">?</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> <span class="ruby-operator">:</span> <span class="ruby-keyword">nil</span>
<span class="ruby-ivar">@object_class</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:object_class</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Hash</span>
<span class="ruby-ivar">@array_class</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:array_class</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Array</span>
<span class="ruby-ivar">@match_string</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:match_string</span>]
<span class="ruby-keyword">end</span></pre>
</div><!-- new-source -->
</div>
</div><!-- new-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="parse-method" class="method-detail ">
<a name="method-i-parse"></a>
<div class="method-heading">
<span class="method-name">parse</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Parses the current <a href="../../JSON.html">JSON</a> string
<em>source</em> and returns the complete data structure as a result.</p>
<div class="method-source-code" id="parse-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/parser.rb, line 112</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">parse</span>
<span class="ruby-identifier">reset</span>
<span class="ruby-identifier">obj</span> = <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@quirks_mode</span>
<span class="ruby-keyword">while</span> <span class="ruby-operator">!</span><span class="ruby-identifier">eos?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">skip</span>(<span class="ruby-constant">IGNORE</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">eos?</span>
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-string">&quot;source did not contain any JSON!&quot;</span>
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_value</span>
<span class="ruby-identifier">obj</span> <span class="ruby-operator">==</span> <span class="ruby-constant">UNPARSED</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-string">&quot;source did not contain any JSON!&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">else</span>
<span class="ruby-keyword">until</span> <span class="ruby-identifier">eos?</span>
<span class="ruby-keyword">case</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">scan</span>(<span class="ruby-constant">OBJECT_OPEN</span>)
<span class="ruby-identifier">obj</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-node">&quot;source '#{peek(20)}' not in JSON!&quot;</span>
<span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">1</span>
<span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_object</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">scan</span>(<span class="ruby-constant">ARRAY_OPEN</span>)
<span class="ruby-identifier">obj</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-node">&quot;source '#{peek(20)}' not in JSON!&quot;</span>
<span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">1</span>
<span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_array</span>
<span class="ruby-keyword">when</span> <span class="ruby-identifier">skip</span>(<span class="ruby-constant">IGNORE</span>)
;
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-node">&quot;source '#{peek(20)}' not in JSON!&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">obj</span> <span class="ruby-keyword">or</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-string">&quot;source did not contain any JSON!&quot;</span>
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">obj</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- parse-source -->
</div>
</div><!-- parse-method -->
<div id="quirks_mode-3F-method" class="method-detail ">
<a name="method-i-quirks_mode-3F"></a>
<div class="method-heading">
<span class="method-name">quirks_mode?</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="quirks_mode-3F-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/parser.rb, line 101</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">quirks_mode?</span>
<span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-ivar">@quirks_mode</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- quirks_mode-3F-source -->
</div>
</div><!-- quirks_mode-3F-method -->
<div id="reset-method" class="method-detail ">
<a name="method-i-reset"></a>
<div class="method-heading">
<span class="method-name">reset</span><span
class="method-args">()</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="reset-source">
<pre>
<span class="ruby-comment"># File lib/json/pure/parser.rb, line 105</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">reset</span>
<span class="ruby-keyword">super</span>
<span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">0</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- reset-source -->
</div>
</div><!-- reset-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,205 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Module: Kernel</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="module">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/common_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/common.rb">lib/json/common.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="module">Kernel</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,349 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: OpenStruct</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/ostruct_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/ostruct.rb">lib/json/add/ostruct.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">OpenStruct</h1>
<div id="description" class="description">
<p><a href="OpenStruct.html">OpenStruct</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by constructing new <a
href="Struct.html">Struct</a> object with values <tt>v</tt> serialized by
<tt>to_json</tt>.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/ostruct.rb, line 11</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'t'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">object</span>[<span class="ruby-value">:t</span>])
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/ostruct.rb, line 17</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
<span class="ruby-identifier">klass</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>
<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">JSONError</span>, <span class="ruby-string">&quot;Only named structs are supported!&quot;</span>
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">klass</span>,
<span class="ruby-string">'t'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">table</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="OpenStruct.html">OpenStruct</a>) with this
structs values <tt>v</tt> as a <a href="JSON.html">JSON</a> string.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/ostruct.rb, line 28</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,554 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: README.rdoc [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
<script src="./js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1><a href="JSON.html">JSON</a> implementation for Ruby <a href="http://travis-ci.org/flori/json"><img src="https://secure.travis-ci.org/flori/json.png" /></a></h1>
<h2>Description</h2>
<p>This is a implementation of the <a href="JSON.html">JSON</a> specification
according to RFC 4627 <a
href="http://www.ietf.org/rfc/rfc4627.txt">www.ietf.org/rfc/rfc4627.txt</a>
. Starting from version 1.0.0 on there will be two variants available:</p>
<ul><li>
<p>A pure ruby variant, that relies on the iconv and the stringscan
extensions, which are both part of the ruby standard library.</p>
</li><li>
<p>The quite a bit faster C extension variant, which is in parts implemented
in C and comes with its own unicode conversion functions and a parser
generated by the ragel state machine compiler <a
href="http://www.cs.queensu.ca/~thurston/ragel">www.cs.queensu.ca/~thurston/ragel</a>
.</p>
</li></ul>
<p>Both variants of the <a href="JSON.html">JSON</a> generator generate UTF-8
character sequences by default. If an :ascii_only option with a true value
is given, they escape all non-ASCII and control characters with uXXXX
escape sequences, and support UTF-16 surrogate pairs in order to be able to
generate the whole range of unicode code points.</p>
<p>All strings, that are to be encoded as <a href="JSON.html">JSON</a>
strings, should be UTF-8 byte sequences on the Ruby side. To encode raw
binary strings, that arent UTF-8 encoded, please use the
to_json_raw_object method of String (which produces an object, that
contains a byte array) and decode the result on the receiving endpoint.</p>
<p>The <a href="JSON.html">JSON</a> parsers can parse UTF-8, UTF-16BE,
UTF-16LE, UTF-32BE, and UTF-32LE <a href="JSON.html">JSON</a> documents
under Ruby 1.8. Under Ruby 1.9 they take advantage of Rubys M17n features
and can parse all documents which have the correct String#encoding set. If
a document string has ASCII-8BIT as an encoding the parser attempts to
figure out which of the UTF encodings from above it is and trys to parse
it.</p>
<h2>Installation</h2>
<p>Its recommended to use the extension variant of <a
href="JSON.html">JSON</a>, because its faster than the pure ruby variant.
If you cannot build it on your system, you can settle for the latter.</p>
<p>Just type into the command line as root:</p>
<pre># rake install</pre>
<p>The above command will build the extensions and install them on your
system.</p>
<pre># rake install_pure</pre>
<p>or</p>
<pre># ruby install.rb</pre>
<p>will just install the pure ruby implementation of <a
href="JSON.html">JSON</a>.</p>
<p>If you use Rubygems you can type</p>
<pre># gem install json</pre>
<p>instead, to install the newest <a href="JSON.html">JSON</a> version.</p>
<p>There is also a pure ruby json only variant of the gem, that can be
installed with:</p>
<pre># gem install json_pure</pre>
<h2>Compiling the extensions yourself</h2>
<p>If you want to build the extensions yourself you need rake:</p>
<pre>You can get it from rubyforge:
http://rubyforge.org/projects/rake
or just type
# gem install rake
for the installation via rubygems.</pre>
<p>If you want to create the parser.c file from its parser.rl file or draw
nice graphviz images of the state machines, you need ragel from: <a
href="http://www.cs.queensu.ca/~thurston/ragel">www.cs.queensu.ca/~thurston/ragel</a></p>
<h2>Usage</h2>
<p>To use <a href="JSON.html">JSON</a> you can</p>
<pre>require 'json'</pre>
<p>to load the installed variant (either the extension json or the pure
variant json_pure). If you have installed the extension variant, you can
pick either the extension variant or the pure variant by typing</p>
<pre>require 'json/ext'</pre>
<p>or</p>
<pre>require 'json/pure'</pre>
<p>Now you can parse a <a href="JSON.html">JSON</a> document into a ruby data
structure by calling</p>
<pre>JSON.parse(document)</pre>
<p>If you want to generate a <a href="JSON.html">JSON</a> document from a ruby
data structure call</p>
<pre>JSON.generate(data)</pre>
<p>You can also use the pretty_generate method (which formats the output more
verbosely and nicely) or fast_generate (which doesnt do any of the
security checks generate performs, e. g. nesting deepness checks).</p>
<p>To create a valid <a href="JSON.html">JSON</a> document you have to make
sure, that the output is embedded in either a <a href="JSON.html">JSON</a>
array [] or a <a href="JSON.html">JSON</a> object {}. The easiest way to do
this, is by putting your values in a Ruby Array or Hash instance.</p>
<p>There are also the <a href="JSON.html">JSON</a> and JSON[] methods which
use parse on a String or generate a <a href="JSON.html">JSON</a> document
from an array or hash:</p>
<pre>document = JSON 'test' =&gt; 23 # =&gt; &quot;{\&quot;test\&quot;:23}&quot;
document = JSON['test'] =&gt; 23 # =&gt; &quot;{\&quot;test\&quot;:23}&quot;</pre>
<p>and</p>
<pre>data = JSON '{&quot;test&quot;:23}' # =&gt; {&quot;test&quot;=&gt;23}
data = JSON['{&quot;test&quot;:23}'] # =&gt; {&quot;test&quot;=&gt;23}</pre>
<p>You can choose to load a set of common additions to ruby cores objects if
you</p>
<pre>require 'json/add/core'</pre>
<p>After requiring this you can, e. g., serialise/deserialise Ruby ranges:</p>
<pre>JSON JSON(1..10) # =&gt; 1..10</pre>
<p>To find out how to add <a href="JSON.html">JSON</a> support to other or
your own classes, read the section “More Examples” below.</p>
<p>To get the best compatibility to rails <a href="JSON.html">JSON</a>
implementation, you can</p>
<pre>require 'json/add/rails'</pre>
<p>Both of the additions attempt to require json (like above) first, if it
has not been required yet.</p>
<h2>More Examples</h2>
<p>To create a <a href="JSON.html">JSON</a> document from a ruby data
structure, you can call <a
href="JSON.html#method-i-generate">JSON.generate</a> like that:</p>
<pre>json = JSON.generate [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10]
# =&gt; &quot;[1,2,{\&quot;a\&quot;:3.141},false,true,null,\&quot;4..10\&quot;]&quot;</pre>
<p>To get back a ruby data structure from a <a href="JSON.html">JSON</a>
document, you have to call <a
href="JSON.html#method-i-parse">JSON.parse</a> on it:</p>
<pre>JSON.parse json
# =&gt; [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, &quot;4..10&quot;]</pre>
<p>Note, that the range from the original data structure is a simple string
now. The reason for this is, that <a href="JSON.html">JSON</a> doesnt
support ranges or arbitrary classes. In this case the json library falls
back to call Object#to_json, which is the same as to_s.to_json.</p>
<p>Its possible to add <a href="JSON.html">JSON</a> support serialization to
arbitrary classes by simply implementing a more specialized version of the
to_json method, that should return a <a href="JSON.html">JSON</a> object (a
hash converted to <a href="JSON.html">JSON</a> with to_json) like this
(dont forget the *a for all the arguments):</p>
<pre>class Range
def to_json(*a)
{
'json_class' =&gt; self.class.name, # = 'Range'
'data' =&gt; [ first, last, exclude_end? ]
}.to_json(*a)
end
end</pre>
<p>The hash key json_class is the class, that will be asked to deserialise
the <a href="JSON.html">JSON</a> representation later. In this case its
Range, but any namespace of the form A::B or ::A::B will do. All
other keys are arbitrary and can be used to store the necessary data to
configure the object to be deserialised.</p>
<p>If a the key json_class is found in a <a href="JSON.html">JSON</a>
object, the <a href="JSON.html">JSON</a> parser checks if the given class
responds to the json_create class method. If so, it is called with the <a
href="JSON.html">JSON</a> object converted to a Ruby hash. So a range can
be deserialised by implementing <a
href="Range.html#method-c-json_create">Range.json_create</a> like this:</p>
<pre>class Range
def self.json_create(o)
new(*o['data'])
end
end</pre>
<p>Now it possible to serialise/deserialise ranges as well:</p>
<pre>json = JSON.generate [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10]
# =&gt; &quot;[1,2,{\&quot;a\&quot;:3.141},false,true,null,{\&quot;json_class\&quot;:\&quot;Range\&quot;,\&quot;data\&quot;:[4,10,false]}]&quot;
JSON.parse json
# =&gt; [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10]</pre>
<p><a href="JSON.html#method-i-generate">JSON.generate</a> always creates the
shortest possible string representation of a ruby data structure in one
line. This is good for data storage or network protocols, but not so good
for humans to read. Fortunately there's also <a
href="JSON.html#method-i-pretty_generate">JSON.pretty_generate</a> (or <a
href="JSON.html#method-i-pretty_generate">JSON.pretty_generate</a>) that
creates a more readable output:</p>
<pre>puts JSON.pretty_generate([1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10])
[
1,
2,
{
&quot;a&quot;: 3.141
},
false,
true,
null,
{
&quot;json_class&quot;: &quot;Range&quot;,
&quot;data&quot;: [
4,
10,
false
]
}
]</pre>
<p>There are also the methods Kernel#j for generate, and Kernel#jj for
pretty_generate output to the console, that work analogous to Core Rubys p
and the pp librarys pp methods.</p>
<p>The script tools/server.rb contains a small example if you want to test,
how receiving a <a href="JSON.html">JSON</a> object from a webrick server
in your browser with the javasript prototype library <a
href="http://www.prototypejs.org">www.prototypejs.org</a> works.</p>
<h2>Speed Comparisons</h2>
<p>I have created some benchmark results (see the benchmarks/data-p4-3Ghz
subdir of the package) for the JSON-parser to estimate the speed up in the
C extension:</p>
<pre>Comparing times (call_time_mean):
1 ParserBenchmarkExt#parser 900 repeats:
553.922304770 ( real) -&gt; 21.500x
0.001805307
2 ParserBenchmarkYAML#parser 1000 repeats:
224.513358139 ( real) -&gt; 8.714x
0.004454078
3 ParserBenchmarkPure#parser 1000 repeats:
26.755020642 ( real) -&gt; 1.038x
0.037376163
4 ParserBenchmarkRails#parser 1000 repeats:
25.763381731 ( real) -&gt; 1.000x
0.038814780
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<p>In the table above 1 is JSON::Ext::Parser, 2 is YAML.load with YAML
compatbile <a href="JSON.html">JSON</a> document, 3 is is <a
href="JSON/Pure/Parser.html">JSON::Pure::Parser</a>, and 4 is
ActiveSupport::JSON.decode. The ActiveSupport JSON-decoder converts the
input first to YAML and then uses the YAML-parser, the conversion seems to
slow it down so much that it is only as fast as the <a
href="JSON/Pure/Parser.html">JSON::Pure::Parser</a>!</p>
<p>If you look at the benchmark data you can see that this is mostly caused by
the frequent high outliers - the median of the Rails-parser runs is still
overall smaller than the median of the <a
href="JSON/Pure/Parser.html">JSON::Pure::Parser</a> runs:</p>
<pre>Comparing times (call_time_median):
1 ParserBenchmarkExt#parser 900 repeats:
800.592479481 ( real) -&gt; 26.936x
0.001249075
2 ParserBenchmarkYAML#parser 1000 repeats:
271.002390644 ( real) -&gt; 9.118x
0.003690004
3 ParserBenchmarkRails#parser 1000 repeats:
30.227910865 ( real) -&gt; 1.017x
0.033082008
4 ParserBenchmarkPure#parser 1000 repeats:
29.722384421 ( real) -&gt; 1.000x
0.033644676
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<p>I have benchmarked the JSON-Generator as well. This generated a few more
values, because there are different modes that also influence the achieved
speed:</p>
<pre>Comparing times (call_time_mean):
1 GeneratorBenchmarkExt#generator_fast 1000 repeats:
547.354332608 ( real) -&gt; 15.090x
0.001826970
2 GeneratorBenchmarkExt#generator_safe 1000 repeats:
443.968212317 ( real) -&gt; 12.240x
0.002252414
3 GeneratorBenchmarkExt#generator_pretty 900 repeats:
375.104545883 ( real) -&gt; 10.341x
0.002665923
4 GeneratorBenchmarkPure#generator_fast 1000 repeats:
49.978706968 ( real) -&gt; 1.378x
0.020008521
5 GeneratorBenchmarkRails#generator 1000 repeats:
38.531868759 ( real) -&gt; 1.062x
0.025952543
6 GeneratorBenchmarkPure#generator_safe 1000 repeats:
36.927649925 ( real) -&gt; 1.018x 7 (&gt;=3859)
0.027079979
7 GeneratorBenchmarkPure#generator_pretty 1000 repeats:
36.272134441 ( real) -&gt; 1.000x 6 (&gt;=3859)
0.027569373
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<p>In the table above 1-3 are JSON::Ext::Generator methods. 4, 6, and 7 are <a
href="JSON/Pure/Generator.html">JSON::Pure::Generator</a> methods and 5 is
the Rails <a href="JSON.html">JSON</a> generator. It is now a bit faster
than the generator_safe and generator_pretty methods of the pure variant
but slower than the others.</p>
<p>To achieve the fastest <a href="JSON.html">JSON</a> document output, you
can use the fast_generate method. Beware, that this will disable the
checking for circular Ruby data structures, which may cause <a
href="JSON.html">JSON</a> to go into an infinite loop.</p>
<p>Here are the median comparisons for completeness sake:</p>
<pre>Comparing times (call_time_median):
1 GeneratorBenchmarkExt#generator_fast 1000 repeats:
708.258020939 ( real) -&gt; 16.547x
0.001411915
2 GeneratorBenchmarkExt#generator_safe 1000 repeats:
569.105020353 ( real) -&gt; 13.296x
0.001757145
3 GeneratorBenchmarkExt#generator_pretty 900 repeats:
482.825371244 ( real) -&gt; 11.280x
0.002071142
4 GeneratorBenchmarkPure#generator_fast 1000 repeats:
62.717626652 ( real) -&gt; 1.465x
0.015944481
5 GeneratorBenchmarkRails#generator 1000 repeats:
43.965681162 ( real) -&gt; 1.027x
0.022745013
6 GeneratorBenchmarkPure#generator_safe 1000 repeats:
43.929073409 ( real) -&gt; 1.026x 7 (&gt;=3859)
0.022763968
7 GeneratorBenchmarkPure#generator_pretty 1000 repeats:
42.802514491 ( real) -&gt; 1.000x 6 (&gt;=3859)
0.023363113
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<h2>Author</h2>
<p>Florian Frank &lt;<a href="mailto:flori@ping.de">flori@ping.de</a>&gt;</p>
<h2>License</h2>
<p>Ruby License, see the COPYING file included in the source distribution. The
Ruby License includes the GNU General Public License (GPL), Version 2, so
see the file GPL as well.</p>
<h2>Download</h2>
<p>The latest version of this library can be downloaded at</p>
<ul><li>
<p><a
href="http://rubyforge.org/frs?group_id=953">rubyforge.org/frs?group_id=953</a></p>
</li></ul>
<p>Online Documentation should be located at</p>
<ul><li>
<p><a href="http://json.rubyforge.org">json.rubyforge.org</a></p>
</li></ul>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,349 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Range</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/range_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/range.rb">lib/json/add/range.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Range</h1>
<div id="description" class="description">
<p><a href="Range.html">Range</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by constructing new <a
href="Range.html">Range</a> object with arguments <tt>a</tt> serialized by
<tt>to_json</tt>.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/range.rb, line 10</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">object</span>[<span class="ruby-string">'a'</span>])
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/range.rb, line 16</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'a'</span> =<span class="ruby-operator">&gt;</span> [ <span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-identifier">exclude_end?</span> ]
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Range.html">Range</a>) with <a
href="JSON.html">JSON</a> array of arguments <tt>a</tt> which include
<tt>first</tt> (integer), <tt>last</tt> (integer), and
<tt>exclude_end?</tt> (boolean) as <a href="JSON.html">JSON</a> string.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/range.rb, line 26</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,342 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Rational</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/rational_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/rational.rb">lib/json/add/rational.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Rational</h1>
<div id="description" class="description">
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/rational.rb, line 7</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-constant">Rational</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'n'</span>], <span class="ruby-identifier">object</span>[<span class="ruby-string">'d'</span>])
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/rational.rb, line 11</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'n'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">numerator</span>,
<span class="ruby-string">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">denominator</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/rational.rb, line 19</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,350 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Regexp</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/regexp_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/regexp.rb">lib/json/add/regexp.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Regexp</h1>
<div id="description" class="description">
<p><a href="Regexp.html">Regexp</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by constructing new <a
href="Regexp.html">Regexp</a> object with source <tt>s</tt> (<a
href="Regexp.html">Regexp</a> or String) and options <tt>o</tt> serialized
by <tt>to_json</tt></p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/regexp.rb, line 11</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'s'</span>], <span class="ruby-identifier">object</span>[<span class="ruby-string">'o'</span>])
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/regexp.rb, line 17</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'o'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>,
<span class="ruby-string">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">source</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Regexp.html">Regexp</a>) with options
<tt>o</tt> and source <tt>s</tt> (<a href="Regexp.html">Regexp</a> or
String) as <a href="JSON.html">JSON</a> string</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/regexp.rb, line 27</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,350 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Struct</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/struct_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/struct.rb">lib/json/add/struct.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Struct</h1>
<div id="description" class="description">
<p><a href="Struct.html">Struct</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by constructing new <a
href="Struct.html">Struct</a> object with values <tt>v</tt> serialized by
<tt>to_json</tt>.</p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/struct.rb, line 10</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-identifier">new</span>(*<span class="ruby-identifier">object</span>[<span class="ruby-string">'v'</span>])
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/struct.rb, line 16</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
<span class="ruby-identifier">klass</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>
<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">JSONError</span>, <span class="ruby-string">&quot;Only named structs are supported!&quot;</span>
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">klass</span>,
<span class="ruby-string">'v'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">values</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Struct.html">Struct</a>) with <a
href="Struct.html">Struct</a> values <tt>v</tt> as a <a
href="JSON.html">JSON</a> string. Only named structs are supported.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/struct.rb, line 27</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,348 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Symbol</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/symbol_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/symbol.rb">lib/json/add/symbol.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Symbol</h1>
<div id="description" class="description">
<p><a href="Symbol.html">Symbol</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(o)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by converting the
<tt>string</tt> value stored in the object to a <a
href="Symbol.html">Symbol</a></p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/symbol.rb, line 22</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">o</span>)
<span class="ruby-identifier">o</span>[<span class="ruby-string">'s'</span>].<span class="ruby-identifier">to_sym</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/symbol.rb, line 9</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">to_s</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*a)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Symbol.html">Symbol</a>) with String
representation of <a href="Symbol.html">Symbol</a> as a <a
href="JSON.html">JSON</a> string.</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/symbol.rb, line 17</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,358 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Class: Time</title>
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="top" class="class">
<div id="metadata">
<div id="home-metadata">
<div id="home-section" class="section">
<h3 class="section-header">
<a href="./index.html">Home</a>
<a href="./index.html#classes">Classes</a>
<a href="./index.html#methods">Methods</a>
</h3>
</div>
</div>
<div id="file-metadata">
<div id="file-list-section" class="section">
<h3 class="section-header">In Files</h3>
<div class="section-body">
<ul>
<li><a href="./lib/json/add/time_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
class="thickbox" title="lib/json/add/time.rb">lib/json/add/time.rb</a></li>
</ul>
</div>
</div>
</div>
<div id="class-metadata">
<!-- Parent Class -->
<div id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>
<p class="link">Object</p>
</div>
<!-- Method Quickref -->
<div id="method-list-section" class="section">
<h3 class="section-header">Methods</h3>
<ul class="link-list">
<li><a href="#method-c-json_create">::json_create</a></li>
<li><a href="#method-i-as_json">#as_json</a></li>
<li><a href="#method-i-to_json">#to_json</a></li>
</ul>
</div>
</div>
<div id="project-metadata">
<div id="fileindex-section" class="section project-section">
<h3 class="section-header">Files</h3>
<ul>
<li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
</ul>
</div>
<div id="classindex-section" class="section project-section">
<h3 class="section-header">Class/Module Index
<span class="search-toggle"><img src="./images/find.png"
height="16" width="16" alt="[+]"
title="show/hide quicksearch" /></span></h3>
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
<fieldset>
<legend>Quicksearch</legend>
<input type="text" name="quicksearch" value=""
class="quicksearch-field" />
</fieldset>
</form>
<ul class="link-list">
<li><a href="./JSON.html">JSON</a></li>
<li><a href="./JSON/Ext.html">JSON::Ext</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li><a href="./JSON/GenericObject.html">JSON::GenericObject</a></li>
<li><a href="./JSON/JSONError.html">JSON::JSONError</a></li>
<li><a href="./JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li><a href="./JSON/NestingError.html">JSON::NestingError</a></li>
<li><a href="./JSON/ParserError.html">JSON::ParserError</a></li>
<li><a href="./JSON/Pure.html">JSON::Pure</a></li>
<li><a href="./JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="./JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="./JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li><a href="./JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li><a href="./JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li><a href="./BigDecimal.html">BigDecimal</a></li>
<li><a href="./Class.html">Class</a></li>
<li><a href="./Complex.html">Complex</a></li>
<li><a href="./Date.html">Date</a></li>
<li><a href="./DateTime.html">DateTime</a></li>
<li><a href="./Exception.html">Exception</a></li>
<li><a href="./Kernel.html">Kernel</a></li>
<li><a href="./OpenStruct.html">OpenStruct</a></li>
<li><a href="./Range.html">Range</a></li>
<li><a href="./Rational.html">Rational</a></li>
<li><a href="./Regexp.html">Regexp</a></li>
<li><a href="./Struct.html">Struct</a></li>
<li><a href="./Symbol.html">Symbol</a></li>
<li><a href="./Time.html">Time</a></li>
</ul>
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
</div>
</div>
</div>
<div id="documentation">
<h1 class="class">Time</h1>
<div id="description" class="description">
<p><a href="Time.html">Time</a> serialization/deserialization</p>
</div><!-- description -->
<div id="5Buntitled-5D" class="documentation-section">
<!-- Methods -->
<div id="public-class-method-details" class="method-section section">
<h3 class="section-header">Public Class Methods</h3>
<div id="json_create-method" class="method-detail ">
<a name="method-c-json_create"></a>
<div class="method-heading">
<span class="method-name">json_create</span><span
class="method-args">(object)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Deserializes <a href="JSON.html">JSON</a> string by converting time since
epoch to <a href="Time.html">Time</a></p>
<div class="method-source-code" id="json_create-source">
<pre>
<span class="ruby-comment"># File lib/json/add/time.rb, line 9</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
<span class="ruby-keyword">if</span> <span class="ruby-identifier">usec</span> = <span class="ruby-identifier">object</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'u'</span>) <span class="ruby-comment"># used to be tv_usec -&gt; tv_nsec</span>
<span class="ruby-identifier">object</span>[<span class="ruby-string">'n'</span>] = <span class="ruby-identifier">usec</span> * <span class="ruby-value">1000</span>
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">if</span> <span class="ruby-identifier">instance_methods</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value">:tv_nsec</span>)
<span class="ruby-identifier">at</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'s'</span>], <span class="ruby-constant">Rational</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'n'</span>], <span class="ruby-value">1000</span>))
<span class="ruby-keyword">else</span>
<span class="ruby-identifier">at</span>(<span class="ruby-identifier">object</span>[<span class="ruby-string">'s'</span>], <span class="ruby-identifier">object</span>[<span class="ruby-string">'n'</span>] <span class="ruby-operator">/</span> <span class="ruby-value">1000</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
</div><!-- json_create-source -->
</div>
</div><!-- json_create-method -->
</div><!-- public-class-method-details -->
<div id="public-instance-method-details" class="method-section section">
<h3 class="section-header">Public Instance Methods</h3>
<div id="as_json-method" class="method-detail ">
<a name="method-i-as_json"></a>
<div class="method-heading">
<span class="method-name">as_json</span><span
class="method-args">(*)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Returns a hash, that will be turned into a <a href="JSON.html">JSON</a>
object and represent this object.</p>
<div class="method-source-code" id="as_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/time.rb, line 22</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">as_json</span>(*)
<span class="ruby-identifier">nanoseconds</span> = [ <span class="ruby-identifier">tv_usec</span> * <span class="ruby-value">1000</span> ]
<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:tv_nsec</span>) <span class="ruby-keyword">and</span> <span class="ruby-identifier">nanoseconds</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">tv_nsec</span>
<span class="ruby-identifier">nanoseconds</span> = <span class="ruby-identifier">nanoseconds</span>.<span class="ruby-identifier">max</span>
{
<span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
<span class="ruby-string">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">tv_sec</span>,
<span class="ruby-string">'n'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">nanoseconds</span>,
}
<span class="ruby-keyword">end</span></pre>
</div><!-- as_json-source -->
</div>
</div><!-- as_json-method -->
<div id="to_json-method" class="method-detail ">
<a name="method-i-to_json"></a>
<div class="method-heading">
<span class="method-name">to_json</span><span
class="method-args">(*args)</span>
<span class="method-click-advice">click to toggle source</span>
</div>
<div class="method-description">
<p>Stores class name (<a href="Time.html">Time</a>) with number of seconds
since epoch and number of microseconds for <a href="Time.html">Time</a> as
<a href="JSON.html">JSON</a> string</p>
<div class="method-source-code" id="to_json-source">
<pre>
<span class="ruby-comment"># File lib/json/add/time.rb, line 35</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-identifier">as_json</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
<span class="ruby-keyword">end</span></pre>
</div><!-- to_json-source -->
</div>
</div><!-- to_json-method -->
</div><!-- public-instance-method-details -->
</div><!-- 5Buntitled-5D -->
</div><!-- documentation -->
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,23 @@
Wed, 03 Sep 2014 10:26:43 +0200
lib/json.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/common.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/ext.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/pure.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/version.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/generic_object.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/symbol.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/date.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/exception.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/ostruct.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/date_time.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/range.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/core.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/struct.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/complex.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/rational.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/time.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/bigdecimal.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/add/regexp.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/pure/generator.rb Wed, 03 Sep 2014 10:26:40 +0200
lib/json/pure/parser.rb Wed, 03 Sep 2014 10:26:40 +0200
README.rdoc Wed, 03 Sep 2014 10:26:40 +0200

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 659 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

View file

@ -0,0 +1,711 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>json-1.8.1 Documentation</title>
<link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
<script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
<script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
</head>
<body class="indexpage">
<h1>json-1.8.1 Documentation</h1>
<div id="main">
<h2>Description</h2>
<p>This is a implementation of the <a href="JSON.html">JSON</a> specification
according to RFC 4627 <a
href="http://www.ietf.org/rfc/rfc4627.txt">www.ietf.org/rfc/rfc4627.txt</a>
. Starting from version 1.0.0 on there will be two variants available:</p>
<ul><li>
<p>A pure ruby variant, that relies on the iconv and the stringscan
extensions, which are both part of the ruby standard library.</p>
</li><li>
<p>The quite a bit faster C extension variant, which is in parts implemented
in C and comes with its own unicode conversion functions and a parser
generated by the ragel state machine compiler <a
href="http://www.cs.queensu.ca/~thurston/ragel">www.cs.queensu.ca/~thurston/ragel</a>
.</p>
</li></ul>
<p>Both variants of the <a href="JSON.html">JSON</a> generator generate UTF-8
character sequences by default. If an :ascii_only option with a true value
is given, they escape all non-ASCII and control characters with uXXXX
escape sequences, and support UTF-16 surrogate pairs in order to be able to
generate the whole range of unicode code points.</p>
<p>All strings, that are to be encoded as <a href="JSON.html">JSON</a>
strings, should be UTF-8 byte sequences on the Ruby side. To encode raw
binary strings, that arent UTF-8 encoded, please use the
to_json_raw_object method of String (which produces an object, that
contains a byte array) and decode the result on the receiving endpoint.</p>
<p>The <a href="JSON.html">JSON</a> parsers can parse UTF-8, UTF-16BE,
UTF-16LE, UTF-32BE, and UTF-32LE <a href="JSON.html">JSON</a> documents
under Ruby 1.8. Under Ruby 1.9 they take advantage of Rubys M17n features
and can parse all documents which have the correct String#encoding set. If
a document string has ASCII-8BIT as an encoding the parser attempts to
figure out which of the UTF encodings from above it is and trys to parse
it.</p>
<h2>Installation</h2>
<p>Its recommended to use the extension variant of <a
href="JSON.html">JSON</a>, because its faster than the pure ruby variant.
If you cannot build it on your system, you can settle for the latter.</p>
<p>Just type into the command line as root:</p>
<pre># rake install</pre>
<p>The above command will build the extensions and install them on your
system.</p>
<pre># rake install_pure</pre>
<p>or</p>
<pre># ruby install.rb</pre>
<p>will just install the pure ruby implementation of <a
href="JSON.html">JSON</a>.</p>
<p>If you use Rubygems you can type</p>
<pre># gem install json</pre>
<p>instead, to install the newest <a href="JSON.html">JSON</a> version.</p>
<p>There is also a pure ruby json only variant of the gem, that can be
installed with:</p>
<pre># gem install json_pure</pre>
<h2>Compiling the extensions yourself</h2>
<p>If you want to build the extensions yourself you need rake:</p>
<pre>You can get it from rubyforge:
http://rubyforge.org/projects/rake
or just type
# gem install rake
for the installation via rubygems.</pre>
<p>If you want to create the parser.c file from its parser.rl file or draw
nice graphviz images of the state machines, you need ragel from: <a
href="http://www.cs.queensu.ca/~thurston/ragel">www.cs.queensu.ca/~thurston/ragel</a></p>
<h2>Usage</h2>
<p>To use <a href="JSON.html">JSON</a> you can</p>
<pre>require 'json'</pre>
<p>to load the installed variant (either the extension json or the pure
variant json_pure). If you have installed the extension variant, you can
pick either the extension variant or the pure variant by typing</p>
<pre>require 'json/ext'</pre>
<p>or</p>
<pre>require 'json/pure'</pre>
<p>Now you can parse a <a href="JSON.html">JSON</a> document into a ruby data
structure by calling</p>
<pre>JSON.parse(document)</pre>
<p>If you want to generate a <a href="JSON.html">JSON</a> document from a ruby
data structure call</p>
<pre>JSON.generate(data)</pre>
<p>You can also use the pretty_generate method (which formats the output more
verbosely and nicely) or fast_generate (which doesnt do any of the
security checks generate performs, e. g. nesting deepness checks).</p>
<p>To create a valid <a href="JSON.html">JSON</a> document you have to make
sure, that the output is embedded in either a <a href="JSON.html">JSON</a>
array [] or a <a href="JSON.html">JSON</a> object {}. The easiest way to do
this, is by putting your values in a Ruby Array or Hash instance.</p>
<p>There are also the <a href="JSON.html">JSON</a> and JSON[] methods which
use parse on a String or generate a <a href="JSON.html">JSON</a> document
from an array or hash:</p>
<pre>document = JSON 'test' =&gt; 23 # =&gt; &quot;{\&quot;test\&quot;:23}&quot;
document = JSON['test'] =&gt; 23 # =&gt; &quot;{\&quot;test\&quot;:23}&quot;</pre>
<p>and</p>
<pre>data = JSON '{&quot;test&quot;:23}' # =&gt; {&quot;test&quot;=&gt;23}
data = JSON['{&quot;test&quot;:23}'] # =&gt; {&quot;test&quot;=&gt;23}</pre>
<p>You can choose to load a set of common additions to ruby cores objects if
you</p>
<pre>require 'json/add/core'</pre>
<p>After requiring this you can, e. g., serialise/deserialise Ruby ranges:</p>
<pre>JSON JSON(1..10) # =&gt; 1..10</pre>
<p>To find out how to add <a href="JSON.html">JSON</a> support to other or
your own classes, read the section “More Examples” below.</p>
<p>To get the best compatibility to rails <a href="JSON.html">JSON</a>
implementation, you can</p>
<pre>require 'json/add/rails'</pre>
<p>Both of the additions attempt to require json (like above) first, if it
has not been required yet.</p>
<h2>More Examples</h2>
<p>To create a <a href="JSON.html">JSON</a> document from a ruby data
structure, you can call <a
href="JSON.html#method-i-generate">JSON.generate</a> like that:</p>
<pre>json = JSON.generate [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10]
# =&gt; &quot;[1,2,{\&quot;a\&quot;:3.141},false,true,null,\&quot;4..10\&quot;]&quot;</pre>
<p>To get back a ruby data structure from a <a href="JSON.html">JSON</a>
document, you have to call <a
href="JSON.html#method-i-parse">JSON.parse</a> on it:</p>
<pre>JSON.parse json
# =&gt; [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, &quot;4..10&quot;]</pre>
<p>Note, that the range from the original data structure is a simple string
now. The reason for this is, that <a href="JSON.html">JSON</a> doesnt
support ranges or arbitrary classes. In this case the json library falls
back to call Object#to_json, which is the same as to_s.to_json.</p>
<p>Its possible to add <a href="JSON.html">JSON</a> support serialization to
arbitrary classes by simply implementing a more specialized version of the
to_json method, that should return a <a href="JSON.html">JSON</a> object (a
hash converted to <a href="JSON.html">JSON</a> with to_json) like this
(dont forget the *a for all the arguments):</p>
<pre>class Range
def to_json(*a)
{
'json_class' =&gt; self.class.name, # = 'Range'
'data' =&gt; [ first, last, exclude_end? ]
}.to_json(*a)
end
end</pre>
<p>The hash key json_class is the class, that will be asked to deserialise
the <a href="JSON.html">JSON</a> representation later. In this case its
Range, but any namespace of the form A::B or ::A::B will do. All
other keys are arbitrary and can be used to store the necessary data to
configure the object to be deserialised.</p>
<p>If a the key json_class is found in a <a href="JSON.html">JSON</a>
object, the <a href="JSON.html">JSON</a> parser checks if the given class
responds to the json_create class method. If so, it is called with the <a
href="JSON.html">JSON</a> object converted to a Ruby hash. So a range can
be deserialised by implementing <a
href="Range.html#method-c-json_create">Range.json_create</a> like this:</p>
<pre>class Range
def self.json_create(o)
new(*o['data'])
end
end</pre>
<p>Now it possible to serialise/deserialise ranges as well:</p>
<pre>json = JSON.generate [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10]
# =&gt; &quot;[1,2,{\&quot;a\&quot;:3.141},false,true,null,{\&quot;json_class\&quot;:\&quot;Range\&quot;,\&quot;data\&quot;:[4,10,false]}]&quot;
JSON.parse json
# =&gt; [1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10]</pre>
<p><a href="JSON.html#method-i-generate">JSON.generate</a> always creates the
shortest possible string representation of a ruby data structure in one
line. This is good for data storage or network protocols, but not so good
for humans to read. Fortunately there's also <a
href="JSON.html#method-i-pretty_generate">JSON.pretty_generate</a> (or <a
href="JSON.html#method-i-pretty_generate">JSON.pretty_generate</a>) that
creates a more readable output:</p>
<pre>puts JSON.pretty_generate([1, 2, {&quot;a&quot;=&gt;3.141}, false, true, nil, 4..10])
[
1,
2,
{
&quot;a&quot;: 3.141
},
false,
true,
null,
{
&quot;json_class&quot;: &quot;Range&quot;,
&quot;data&quot;: [
4,
10,
false
]
}
]</pre>
<p>There are also the methods Kernel#j for generate, and Kernel#jj for
pretty_generate output to the console, that work analogous to Core Rubys p
and the pp librarys pp methods.</p>
<p>The script tools/server.rb contains a small example if you want to test,
how receiving a <a href="JSON.html">JSON</a> object from a webrick server
in your browser with the javasript prototype library <a
href="http://www.prototypejs.org">www.prototypejs.org</a> works.</p>
<h2>Speed Comparisons</h2>
<p>I have created some benchmark results (see the benchmarks/data-p4-3Ghz
subdir of the package) for the JSON-parser to estimate the speed up in the
C extension:</p>
<pre>Comparing times (call_time_mean):
1 ParserBenchmarkExt#parser 900 repeats:
553.922304770 ( real) -&gt; 21.500x
0.001805307
2 ParserBenchmarkYAML#parser 1000 repeats:
224.513358139 ( real) -&gt; 8.714x
0.004454078
3 ParserBenchmarkPure#parser 1000 repeats:
26.755020642 ( real) -&gt; 1.038x
0.037376163
4 ParserBenchmarkRails#parser 1000 repeats:
25.763381731 ( real) -&gt; 1.000x
0.038814780
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<p>In the table above 1 is JSON::Ext::Parser, 2 is YAML.load with YAML
compatbile <a href="JSON.html">JSON</a> document, 3 is is <a
href="JSON/Pure/Parser.html">JSON::Pure::Parser</a>, and 4 is
ActiveSupport::JSON.decode. The ActiveSupport JSON-decoder converts the
input first to YAML and then uses the YAML-parser, the conversion seems to
slow it down so much that it is only as fast as the <a
href="JSON/Pure/Parser.html">JSON::Pure::Parser</a>!</p>
<p>If you look at the benchmark data you can see that this is mostly caused by
the frequent high outliers - the median of the Rails-parser runs is still
overall smaller than the median of the <a
href="JSON/Pure/Parser.html">JSON::Pure::Parser</a> runs:</p>
<pre>Comparing times (call_time_median):
1 ParserBenchmarkExt#parser 900 repeats:
800.592479481 ( real) -&gt; 26.936x
0.001249075
2 ParserBenchmarkYAML#parser 1000 repeats:
271.002390644 ( real) -&gt; 9.118x
0.003690004
3 ParserBenchmarkRails#parser 1000 repeats:
30.227910865 ( real) -&gt; 1.017x
0.033082008
4 ParserBenchmarkPure#parser 1000 repeats:
29.722384421 ( real) -&gt; 1.000x
0.033644676
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<p>I have benchmarked the JSON-Generator as well. This generated a few more
values, because there are different modes that also influence the achieved
speed:</p>
<pre>Comparing times (call_time_mean):
1 GeneratorBenchmarkExt#generator_fast 1000 repeats:
547.354332608 ( real) -&gt; 15.090x
0.001826970
2 GeneratorBenchmarkExt#generator_safe 1000 repeats:
443.968212317 ( real) -&gt; 12.240x
0.002252414
3 GeneratorBenchmarkExt#generator_pretty 900 repeats:
375.104545883 ( real) -&gt; 10.341x
0.002665923
4 GeneratorBenchmarkPure#generator_fast 1000 repeats:
49.978706968 ( real) -&gt; 1.378x
0.020008521
5 GeneratorBenchmarkRails#generator 1000 repeats:
38.531868759 ( real) -&gt; 1.062x
0.025952543
6 GeneratorBenchmarkPure#generator_safe 1000 repeats:
36.927649925 ( real) -&gt; 1.018x 7 (&gt;=3859)
0.027079979
7 GeneratorBenchmarkPure#generator_pretty 1000 repeats:
36.272134441 ( real) -&gt; 1.000x 6 (&gt;=3859)
0.027569373
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<p>In the table above 1-3 are JSON::Ext::Generator methods. 4, 6, and 7 are <a
href="JSON/Pure/Generator.html">JSON::Pure::Generator</a> methods and 5 is
the Rails <a href="JSON.html">JSON</a> generator. It is now a bit faster
than the generator_safe and generator_pretty methods of the pure variant
but slower than the others.</p>
<p>To achieve the fastest <a href="JSON.html">JSON</a> document output, you
can use the fast_generate method. Beware, that this will disable the
checking for circular Ruby data structures, which may cause <a
href="JSON.html">JSON</a> to go into an infinite loop.</p>
<p>Here are the median comparisons for completeness sake:</p>
<pre>Comparing times (call_time_median):
1 GeneratorBenchmarkExt#generator_fast 1000 repeats:
708.258020939 ( real) -&gt; 16.547x
0.001411915
2 GeneratorBenchmarkExt#generator_safe 1000 repeats:
569.105020353 ( real) -&gt; 13.296x
0.001757145
3 GeneratorBenchmarkExt#generator_pretty 900 repeats:
482.825371244 ( real) -&gt; 11.280x
0.002071142
4 GeneratorBenchmarkPure#generator_fast 1000 repeats:
62.717626652 ( real) -&gt; 1.465x
0.015944481
5 GeneratorBenchmarkRails#generator 1000 repeats:
43.965681162 ( real) -&gt; 1.027x
0.022745013
6 GeneratorBenchmarkPure#generator_safe 1000 repeats:
43.929073409 ( real) -&gt; 1.026x 7 (&gt;=3859)
0.022763968
7 GeneratorBenchmarkPure#generator_pretty 1000 repeats:
42.802514491 ( real) -&gt; 1.000x 6 (&gt;=3859)
0.023363113
calls/sec ( time) -&gt; speed covers
secs/call</pre>
<h2>Author</h2>
<p>Florian Frank &lt;<a href="mailto:flori@ping.de">flori@ping.de</a>&gt;</p>
<h2>License</h2>
<p>Ruby License, see the COPYING file included in the source distribution. The
Ruby License includes the GNU General Public License (GPL), Version 2, so
see the file GPL as well.</p>
<h2>Download</h2>
<p>The latest version of this library can be downloaded at</p>
<ul><li>
<p><a
href="http://rubyforge.org/frs?group_id=953">rubyforge.org/frs?group_id=953</a></p>
</li></ul>
<p>Online Documentation should be located at</p>
<ul><li>
<p><a href="http://json.rubyforge.org">json.rubyforge.org</a></p>
</li></ul>
</div>
<h2>Files</h2>
<ul>
<li class="file"><a href="README_rdoc.html">README.rdoc</a></li>
</ul>
<h2 id="classes">Classes/Modules</h2>
<ul>
<li class="module"><a href="JSON.html">JSON</a></li>
<li class="module"><a href="JSON/Ext.html">JSON::Ext</a></li>
<li class="class"><a href="JSON/GeneratorError.html">JSON::GeneratorError</a></li>
<li class="class"><a href="JSON/GenericObject.html">JSON::GenericObject</a></li>
<li class="class"><a href="JSON/JSONError.html">JSON::JSONError</a></li>
<li class="class"><a href="JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
<li class="class"><a href="JSON/NestingError.html">JSON::NestingError</a></li>
<li class="class"><a href="JSON/ParserError.html">JSON::ParserError</a></li>
<li class="module"><a href="JSON/Pure.html">JSON::Pure</a></li>
<li class="module"><a href="JSON/Pure/Generator.html">JSON::Pure::Generator</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li class="module"><a href="JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li class="class"><a href="JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a></li>
<li class="class"><a href="JSON/Pure/Parser.html">JSON::Pure::Parser</a></li>
<li class="class"><a href="JSON/GeneratorError.html">JSON::UnparserError</a></li>
<li class="class"><a href="BigDecimal.html">BigDecimal</a></li>
<li class="class"><a href="Class.html">Class</a></li>
<li class="class"><a href="Complex.html">Complex</a></li>
<li class="class"><a href="Date.html">Date</a></li>
<li class="class"><a href="DateTime.html">DateTime</a></li>
<li class="class"><a href="Exception.html">Exception</a></li>
<li class="module"><a href="Kernel.html">Kernel</a></li>
<li class="class"><a href="OpenStruct.html">OpenStruct</a></li>
<li class="class"><a href="Range.html">Range</a></li>
<li class="class"><a href="Rational.html">Rational</a></li>
<li class="class"><a href="Regexp.html">Regexp</a></li>
<li class="class"><a href="Struct.html">Struct</a></li>
<li class="class"><a href="Symbol.html">Symbol</a></li>
<li class="class"><a href="Time.html">Time</a></li>
</ul>
<h2 id="methods">Methods</h2>
<ul>
<li><a href="JSON.html#method-c-5B-5D">::[] &mdash; JSON</a></li>
<li><a href="JSON.html#method-c-const_defined_in-3F">::const_defined_in? &mdash; JSON</a></li>
<li><a href="JSON/GenericObject.html#method-c-dump">::dump &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/GenericObject.html#method-c-from_hash">::from_hash &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-c-from_state">::from_state &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON.html#method-c-iconv">::iconv &mdash; JSON</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/String.html#method-c-included">::included &mdash; JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="JSON/GenericObject.html#method-c-json_creatable-3F">::json_creatable? &mdash; JSON::GenericObject</a></li>
<li><a href="BigDecimal.html#method-c-json_create">::json_create &mdash; BigDecimal</a></li>
<li><a href="Time.html#method-c-json_create">::json_create &mdash; Time</a></li>
<li><a href="Rational.html#method-c-json_create">::json_create &mdash; Rational</a></li>
<li><a href="Complex.html#method-c-json_create">::json_create &mdash; Complex</a></li>
<li><a href="Regexp.html#method-c-json_create">::json_create &mdash; Regexp</a></li>
<li><a href="Struct.html#method-c-json_create">::json_create &mdash; Struct</a></li>
<li><a href="Range.html#method-c-json_create">::json_create &mdash; Range</a></li>
<li><a href="Symbol.html#method-c-json_create">::json_create &mdash; Symbol</a></li>
<li><a href="Date.html#method-c-json_create">::json_create &mdash; Date</a></li>
<li><a href="DateTime.html#method-c-json_create">::json_create &mdash; DateTime</a></li>
<li><a href="JSON/GenericObject.html#method-c-json_create">::json_create &mdash; JSON::GenericObject</a></li>
<li><a href="Exception.html#method-c-json_create">::json_create &mdash; Exception</a></li>
<li><a href="OpenStruct.html#method-c-json_create">::json_create &mdash; OpenStruct</a></li>
<li><a href="JSON/GenericObject.html#method-c-load">::load &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/Pure/Parser.html#method-c-new">::new &mdash; JSON::Pure::Parser</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-c-new">::new &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON.html#method-c-restore">::restore &mdash; JSON</a></li>
<li><a href="JSON.html#method-c-valid_utf8-3F">::valid_utf8? &mdash; JSON</a></li>
<li><a href="JSON/JSONError.html#method-c-wrap">::wrap &mdash; JSON::JSONError</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-5B-5D">#[] &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON/GenericObject.html#method-i-5B-5D">#[] &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/GenericObject.html#method-i-5B-5D-3D">#[]= &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-5B-5D-3D">#[]= &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-allow_nan-3F">#allow_nan? &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="Complex.html#method-i-as_json">#as_json &mdash; Complex</a></li>
<li><a href="Symbol.html#method-i-as_json">#as_json &mdash; Symbol</a></li>
<li><a href="JSON/GenericObject.html#method-i-as_json">#as_json &mdash; JSON::GenericObject</a></li>
<li><a href="Date.html#method-i-as_json">#as_json &mdash; Date</a></li>
<li><a href="Range.html#method-i-as_json">#as_json &mdash; Range</a></li>
<li><a href="DateTime.html#method-i-as_json">#as_json &mdash; DateTime</a></li>
<li><a href="Rational.html#method-i-as_json">#as_json &mdash; Rational</a></li>
<li><a href="Regexp.html#method-i-as_json">#as_json &mdash; Regexp</a></li>
<li><a href="BigDecimal.html#method-i-as_json">#as_json &mdash; BigDecimal</a></li>
<li><a href="Time.html#method-i-as_json">#as_json &mdash; Time</a></li>
<li><a href="Exception.html#method-i-as_json">#as_json &mdash; Exception</a></li>
<li><a href="Struct.html#method-i-as_json">#as_json &mdash; Struct</a></li>
<li><a href="OpenStruct.html#method-i-as_json">#as_json &mdash; OpenStruct</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-ascii_only-3F">#ascii_only? &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-check_circular-3F">#check_circular? &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-configure">#configure &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON.html#method-i-dump">#dump &mdash; JSON</a></li>
<li><a href="JSON.html#method-i-fast_generate">#fast_generate &mdash; JSON</a></li>
<li><a href="JSON.html#method-i-generate">#generate &mdash; JSON</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-generate">#generate &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="Class.html#method-i-json_creatable-3F">#json_creatable? &mdash; Class</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/String/Extend.html#method-i-json_create">#json_create &mdash; JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
<li><a href="JSON.html#method-i-load">#load &mdash; JSON</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-merge">#merge &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON/Pure/Parser.html#method-i-parse">#parse &mdash; JSON::Pure::Parser</a></li>
<li><a href="JSON.html#method-i-parse">#parse &mdash; JSON</a></li>
<li><a href="JSON.html#method-i-parse-21">#parse! &mdash; JSON</a></li>
<li><a href="JSON.html#method-i-pretty_generate">#pretty_generate &mdash; JSON</a></li>
<li><a href="JSON/Pure/Parser.html#method-i-quirks_mode-3F">#quirks_mode? &mdash; JSON::Pure::Parser</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-quirks_mode-3F">#quirks_mode? &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON.html#method-i-recurse_proc">#recurse_proc &mdash; JSON</a></li>
<li><a href="JSON/Pure/Parser.html#method-i-reset">#reset &mdash; JSON::Pure::Parser</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-to_h">#to_h &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="JSON/GenericObject.html#method-i-to_hash">#to_hash &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/Pure/Generator/State.html#method-i-to_hash">#to_hash &mdash; JSON::Pure::Generator::State</a></li>
<li><a href="BigDecimal.html#method-i-to_json">#to_json &mdash; BigDecimal</a></li>
<li><a href="Date.html#method-i-to_json">#to_json &mdash; Date</a></li>
<li><a href="Exception.html#method-i-to_json">#to_json &mdash; Exception</a></li>
<li><a href="OpenStruct.html#method-i-to_json">#to_json &mdash; OpenStruct</a></li>
<li><a href="DateTime.html#method-i-to_json">#to_json &mdash; DateTime</a></li>
<li><a href="Range.html#method-i-to_json">#to_json &mdash; Range</a></li>
<li><a href="Struct.html#method-i-to_json">#to_json &mdash; Struct</a></li>
<li><a href="Symbol.html#method-i-to_json">#to_json &mdash; Symbol</a></li>
<li><a href="Complex.html#method-i-to_json">#to_json &mdash; Complex</a></li>
<li><a href="JSON/GenericObject.html#method-i-to_json">#to_json &mdash; JSON::GenericObject</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/NilClass.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::NilClass</a></li>
<li><a href="Regexp.html#method-i-to_json">#to_json &mdash; Regexp</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/Object.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::Object</a></li>
<li><a href="Time.html#method-i-to_json">#to_json &mdash; Time</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/Array.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::Array</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/Integer.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::Integer</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/Float.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::Float</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="Rational.html#method-i-to_json">#to_json &mdash; Rational</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/FalseClass.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::FalseClass</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/TrueClass.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::TrueClass</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/Hash.html#method-i-to_json">#to_json &mdash; JSON::Pure::Generator::GeneratorMethods::Hash</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json_raw">#to_json_raw &mdash; JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json_raw_object">#to_json_raw_object &mdash; JSON::Pure::Generator::GeneratorMethods::String</a></li>
<li><a href="JSON/GenericObject.html#method-i-7C">#| &mdash; JSON::GenericObject</a></li>
</ul>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
Rdoc Generator</a> 2</small>.</p>
</div>
</body>
</html>

View file

@ -0,0 +1,118 @@
/**
*
* Darkfish Page Functions
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
*
* Author: Michael Granger <mgranger@laika.com>
*
*/
/* Provide console simulation for firebug-less environments */
if (!("console" in window) || !("firebug" in console)) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i)
window.console[names[i]] = function() {};
};
/**
* Unwrap the first element that matches the given @expr@ from the targets and return them.
*/
$.fn.unwrap = function( expr ) {
return this.each( function() {
$(this).parents( expr ).eq( 0 ).after( this ).remove();
});
};
function showSource( e ) {
var target = e.target;
var codeSections = $(target).
parents('.method-detail').
find('.method-source-code');
$(target).
parents('.method-detail').
find('.method-source-code').
slideToggle();
};
function hookSourceViews() {
$('.method-description,.method-heading').click( showSource );
};
function toggleDebuggingSection() {
$('.debugging-section').slideToggle();
};
function hookDebuggingToggle() {
$('#debugging-toggle img').click( toggleDebuggingSection );
};
function hookQuickSearch() {
$('.quicksearch-field').each( function() {
var searchElems = $(this).parents('.section').find( 'li' );
var toggle = $(this).parents('.section').find('h3 .search-toggle');
// console.debug( "Toggle is: %o", toggle );
var qsbox = $(this).parents('form').get( 0 );
$(this).quicksearch( this, searchElems, {
noSearchResultsIndicator: 'no-class-search-results',
focusOnLoad: false
});
$(toggle).click( function() {
// console.debug( "Toggling qsbox: %o", qsbox );
$(qsbox).toggle();
});
});
};
function highlightTarget( anchor ) {
console.debug( "Highlighting target '%s'.", anchor );
$("a[name]").each( function() {
if ( $(this).attr("name") == anchor ) {
if ( !$(this).parent().parent().hasClass('target-section') ) {
console.debug( "Wrapping the target-section" );
$('div.method-detail').unwrap( 'div.target-section' );
$(this).parent().wrap( '<div class="target-section"></div>' );
} else {
console.debug( "Already wrapped." );
}
}
});
};
function highlightLocationTarget() {
console.debug( "Location hash: %s", window.location.hash );
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
var anchor = window.location.hash.substring(1);
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
highlightTarget( anchor );
};
function highlightClickTarget( event ) {
console.debug( "Highlighting click target for event %o", event.target );
try {
var anchor = $(event.target).attr( 'href' ).substring(1);
console.debug( "Found target anchor: %s", anchor );
highlightTarget( anchor );
} catch ( err ) {
console.error( "Exception while highlighting: %o", err );
};
};
$(document).ready( function() {
hookSourceViews();
hookDebuggingToggle();
hookQuickSearch();
highlightLocationTarget();
$('ul.link-list a').bind( "click", highlightClickTarget );
});

32
.gems/doc/json-1.8.1/rdoc/js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,114 @@
/**
*
* JQuery QuickSearch - Hook up a form field to hide non-matching elements.
* $Id: quicksearch.js 53 2009-01-07 02:52:03Z deveiant $
*
* Author: Michael Granger <mgranger@laika.com>
*
*/
jQuery.fn.quicksearch = function( target, searchElems, options ) {
// console.debug( "Quicksearch fn" );
var settings = {
delay: 250,
clearButton: false,
highlightMatches: false,
focusOnLoad: false,
noSearchResultsIndicator: null
};
if ( options ) $.extend( settings, options );
return jQuery(this).each( function() {
// console.debug( "Creating a new quicksearch on %o for %o", this, searchElems );
new jQuery.quicksearch( this, searchElems, settings );
});
};
jQuery.quicksearch = function( searchBox, searchElems, settings ) {
var timeout;
var boxdiv = $(searchBox).parents('div').eq(0);
function init() {
setupKeyEventHandlers();
focusOnLoad();
};
function setupKeyEventHandlers() {
// console.debug( "Hooking up the 'keypress' event to %o", searchBox );
$(searchBox).
unbind( 'keyup' ).
keyup( function(e) { return onSearchKey( e.keyCode ); });
$(searchBox).
unbind( 'keypress' ).
keypress( function(e) {
switch( e.which ) {
// Execute the search on Enter, Tab, or Newline
case 9:
case 13:
case 10:
clearTimeout( timeout );
e.preventDefault();
doQuickSearch();
break;
// Allow backspace
case 8:
return true;
break;
// Only allow valid search characters
default:
return validQSChar( e.charCode );
}
});
};
function focusOnLoad() {
if ( !settings.focusOnLoad ) return false;
$(searchBox).focus();
};
function onSearchKey ( code ) {
clearTimeout( timeout );
// console.debug( "...scheduling search." );
timeout = setTimeout( doQuickSearch, settings.delay );
};
function validQSChar( code ) {
var c = String.fromCharCode( code );
return (
(c == ':') ||
(c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z')
);
};
function doQuickSearch() {
var searchText = searchBox.value;
var pat = new RegExp( searchText, "im" );
var shownCount = 0;
if ( settings.noSearchResultsIndicator ) {
$('#' + settings.noSearchResultsIndicator).hide();
}
// All elements start out hidden
$(searchElems).each( function(index) {
var str = $(this).text();
if ( pat.test(str) ) {
shownCount += 1;
$(this).fadeIn();
} else {
$(this).hide();
}
});
if ( shownCount == 0 && settings.noSearchResultsIndicator ) {
$('#' + settings.noSearchResultsIndicator).slideDown();
}
};
init();
};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: bigdecimal.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
<li>bigdecimal</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: complex.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
<li>complex</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: core.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json/add/date</li>
<li>json/add/date_time</li>
<li>json/add/exception</li>
<li>json/add/range</li>
<li>json/add/regexp</li>
<li>json/add/struct</li>
<li>json/add/symbol</li>
<li>json/add/time</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
<p>This file requires the implementations of ruby cores custom objects for
serialisation/deserialisation.</p>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: date.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
<li>date</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: date_time.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
<li>date</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: exception.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: ostruct.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
<li>ostruct</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: range.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: rational.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
<li>rational</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: regexp.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: struct.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: symbol.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: time.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: common.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
<script src="../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json/version</li>
<li>json/generic_object</li>
<li>iconv</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: ext.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
<script src="../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>simplecov</li>
<li>json/common</li>
<li>json/ext/parser</li>
<li>json/ext/generator</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: generic_object.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
<script src="../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>ostruct</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: generator.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: parser.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet" />
<script src="../../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>strscan</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: pure.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
<script src="../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>simplecov</li>
<li>json/common</li>
<li>json/pure/parser</li>
<li>json/pure/generator</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: version.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
<script src="../../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>File: json.rb [json-1.8.1 Documentation]</title>
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
<script src="../js/jquery.js" type="text/javascript"
charset="utf-8"></script>
<script src="../js/thickbox-compressed.js" type="text/javascript"
charset="utf-8"></script>
<script src="../js/quicksearch.js" type="text/javascript"
charset="utf-8"></script>
<script src="../js/darkfish.js" type="text/javascript"
charset="utf-8"></script>
</head>
<body class="file file-popup">
<div id="metadata">
<dl>
<dt class="modified-date">Last Modified</dt>
<dd class="modified-date">2014-09-03 10:26:40 +0200</dd>
<dt class="requires">Requires</dt>
<dd class="requires">
<ul>
<li>json/common</li>
<li>json/version</li>
<li>json/ext</li>
<li>json/pure</li>
</ul>
</dd>
</dl>
</div>
<div id="documentation">
<div class="description">
<h2>Description</h2>
</div>
</div>
</body>
</html>

View file

@ -0,0 +1,763 @@
/*
* "Darkfish" Rdoc CSS
* $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
*
* Author: Michael Granger <ged@FaerieMUD.org>
*
*/
/* Base Green is: #6C8C22 */
*{ padding: 0; margin: 0; }
body {
background: #efefef;
font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
}
body.class, body.module, body.file {
margin-left: 40px;
}
body.file-popup {
font-size: 90%;
margin-left: 0;
}
h1 {
font-size: 300%;
text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
color: #6C8C22;
}
h2,h3,h4 { margin-top: 1.5em; }
:link,
:visited {
color: #6C8C22;
text-decoration: none;
}
:link:hover,
:visited:hover {
border-bottom: 1px dotted #6C8C22;
}
pre {
background: #ddd;
padding: 0.5em 0;
}
/* @group Generic Classes */
.initially-hidden {
display: none;
}
.quicksearch-field {
width: 98%;
background: #ddd;
border: 1px solid #aaa;
height: 1.5em;
-webkit-border-radius: 4px;
}
.quicksearch-field:focus {
background: #f1edba;
}
.missing-docs {
font-size: 120%;
background: white url(images/wrench_orange.png) no-repeat 4px center;
color: #ccc;
line-height: 2em;
border: 1px solid #d00;
opacity: 1;
padding-left: 20px;
text-indent: 24px;
letter-spacing: 3px;
font-weight: bold;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
}
.target-section {
border: 2px solid #dcce90;
border-left-width: 8px;
padding: 0 1em;
background: #fff3c2;
}
/* @end */
/* @group Index Page, Standalone file pages */
body.indexpage {
margin: 1em 3em;
}
body.indexpage p,
body.indexpage div,
body.file p {
margin: 1em 0;
}
.indexpage .rdoc-list p, .file .rdoc-list p {
margin: 0em 0;
}
.indexpage ol,
.file #documentation ol {
line-height: 160%;
}
.indexpage ul,
.file #documentation ul {
line-height: 160%;
list-style: none;
}
.indexpage ul :link,
.indexpage ul :visited {
font-size: 16px;
}
.indexpage li,
.file #documentation li {
padding-left: 20px;
}
.indexpage ol,
.file #documentation ol {
margin-left: 20px;
}
.indexpage ol > li,
.file #documentation ol > li {
padding-left: 0;
}
.indexpage ul > li,
.file #documentation ul > li {
background: url(images/bullet_black.png) no-repeat left 4px;
}
.indexpage li.module {
background: url(images/package.png) no-repeat left 4px;
}
.indexpage li.class {
background: url(images/ruby.png) no-repeat left 4px;
}
.indexpage li.file {
background: url(images/page_white_text.png) no-repeat left 4px;
}
.file li p,
.indexpage li p {
margin: 0 0;
}
/* @end */
/* @group Top-Level Structure */
.class #metadata,
.file #metadata,
.module #metadata {
float: left;
width: 260px;
}
.class #documentation,
.file #documentation,
.module #documentation {
margin: 2em 1em 5em 300px;
min-width: 340px;
}
.file #metadata {
margin: 0.8em;
}
#validator-badges {
clear: both;
margin: 1em 1em 2em;
}
/* @end */
/* @group Metadata Section */
#metadata .section {
background-color: #dedede;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #aaa;
margin: 0 8px 16px;
font-size: 90%;
overflow: hidden;
}
#metadata h3.section-header {
margin: 0;
padding: 2px 8px;
background: #ccc;
color: #666;
-moz-border-radius-topleft: 4px;
-moz-border-radius-topright: 4px;
-webkit-border-top-left-radius: 4px;
-webkit-border-top-right-radius: 4px;
border-bottom: 1px solid #aaa;
}
#metadata #home-section h3.section-header {
border-bottom: 0;
}
#metadata ul,
#metadata dl,
#metadata p {
padding: 8px;
list-style: none;
}
#file-metadata ul {
padding-left: 28px;
list-style-image: url(images/page_green.png);
}
dl.svninfo {
color: #666;
margin: 0;
}
dl.svninfo dt {
font-weight: bold;
}
ul.link-list li {
white-space: nowrap;
}
ul.link-list .type {
font-size: 8px;
text-transform: uppercase;
color: white;
background: #969696;
padding: 2px 4px;
-webkit-border-radius: 5px;
}
/* @end */
/* @group Project Metadata Section */
#project-metadata {
margin-top: 3em;
}
.file #project-metadata {
margin-top: 0em;
}
#project-metadata .section {
border: 1px solid #aaa;
}
#project-metadata h3.section-header {
border-bottom: 1px solid #aaa;
position: relative;
}
#project-metadata h3.section-header .search-toggle {
position: absolute;
right: 5px;
}
#project-metadata form {
color: #777;
background: #ccc;
padding: 8px 8px 16px;
border-bottom: 1px solid #bbb;
}
#project-metadata fieldset {
border: 0;
}
#no-class-search-results {
margin: 0 auto 1em;
text-align: center;
font-size: 14px;
font-weight: bold;
color: #aaa;
}
/* @end */
/* @group Documentation Section */
.description {
font-size: 100%;
color: #333;
}
.description p {
margin: 1em 0.4em;
}
.description li p {
margin: 0;
}
.description ul {
margin-left: 1.5em;
}
.description ul li {
line-height: 1.4em;
}
.description dl,
#documentation dl {
margin: 8px 1.5em;
border: 1px solid #ccc;
}
.description dl {
font-size: 14px;
}
.description dt,
#documentation dt {
padding: 2px 4px;
font-weight: bold;
background: #ddd;
}
.description dd,
#documentation dd {
padding: 2px 12px;
}
.description dd + dt,
#documentation dd + dt {
margin-top: 0.7em;
}
#documentation .section {
font-size: 90%;
}
#documentation h2.section-header {
margin-top: 2em;
padding: 0.75em 0.5em;
background: #ccc;
color: #333;
font-size: 175%;
border: 1px solid #bbb;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
#documentation h3.section-header {
margin-top: 2em;
padding: 0.25em 0.5em;
background-color: #dedede;
color: #333;
font-size: 150%;
border: 1px solid #bbb;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
#constants-list > dl,
#attributes-list > dl {
margin: 1em 0 2em;
border: 0;
}
#constants-list > dl dt,
#attributes-list > dl dt {
padding-left: 0;
font-weight: bold;
font-family: Monaco, "Andale Mono";
background: inherit;
}
#constants-list > dl dt a,
#attributes-list > dl dt a {
color: inherit;
}
#constants-list > dl dd,
#attributes-list > dl dd {
margin: 0 0 1em 0;
padding: 0;
color: #666;
}
.documentation-section h2 {
position: relative;
}
.documentation-section h2 a {
position: absolute;
top: 8px;
right: 10px;
font-size: 12px;
color: #9b9877;
visibility: hidden;
}
.documentation-section h2:hover a {
visibility: visible;
}
/* @group Method Details */
#documentation .method-source-code {
display: none;
}
#documentation .method-detail {
margin: 0.5em 0;
padding: 0.5em 0;
cursor: pointer;
}
#documentation .method-detail:hover {
background-color: #f1edba;
}
#documentation .method-heading {
position: relative;
padding: 2px 4px 0 20px;
font-size: 125%;
font-weight: bold;
color: #333;
background: url(images/brick.png) no-repeat left bottom;
}
#documentation .method-heading :link,
#documentation .method-heading :visited {
color: inherit;
}
#documentation .method-click-advice {
position: absolute;
top: 2px;
right: 5px;
font-size: 10px;
color: #9b9877;
visibility: hidden;
padding-right: 20px;
line-height: 20px;
background: url(images/zoom.png) no-repeat right top;
}
#documentation .method-detail:hover .method-click-advice {
visibility: visible;
}
#documentation .method-alias .method-heading {
color: #666;
background: url(images/brick_link.png) no-repeat left bottom;
}
#documentation .method-description,
#documentation .aliases {
margin: 0 20px;
color: #666;
}
#documentation .method-description p,
#documentation .aliases p {
line-height: 1.2em;
}
#documentation .aliases {
padding-top: 4px;
font-style: italic;
cursor: default;
}
#documentation .method-description p {
padding: 0;
}
#documentation .method-description p + p {
margin-bottom: 0.5em;
}
#documentation .method-description ul {
margin-left: 1.5em;
}
#documentation .attribute-method-heading {
background: url(images/tag_green.png) no-repeat left bottom;
}
#documentation #attribute-method-details .method-detail:hover {
background-color: transparent;
cursor: default;
}
#documentation .attribute-access-type {
font-size: 60%;
text-transform: uppercase;
vertical-align: super;
padding: 0 2px;
}
/* @end */
/* @end */
/* @group Source Code */
div.method-source-code {
background: #262626;
color: #efefef;
margin: 1em;
padding: 0.5em;
border: 1px dashed #999;
overflow: hidden;
}
div.method-source-code pre {
background: inherit;
padding: 0;
color: white;
overflow: auto;
}
/* @group Ruby keyword styles */
.ruby-constant { color: #7fffd4; background: transparent; }
.ruby-keyword { color: #00ffff; background: transparent; }
.ruby-ivar { color: #eedd82; background: transparent; }
.ruby-operator { color: #00ffee; background: transparent; }
.ruby-identifier { color: #ffdead; background: transparent; }
.ruby-node { color: #ffa07a; background: transparent; }
.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
.ruby-regexp { color: #ffa07a; background: transparent; }
.ruby-value { color: #7fffd4; background: transparent; }
/* @end */
/* @end */
/* @group File Popup Contents */
.file #metadata,
.file-popup #metadata {
}
.file-popup dl {
font-size: 80%;
padding: 0.75em;
background-color: #dedede;
color: #333;
border: 1px solid #bbb;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.file dt {
font-weight: bold;
padding-left: 22px;
line-height: 20px;
background: url(images/page_white_width.png) no-repeat left top;
}
.file dt.modified-date {
background: url(images/date.png) no-repeat left top;
}
.file dt.requires {
background: url(images/plugin.png) no-repeat left top;
}
.file dt.scs-url {
background: url(images/wrench.png) no-repeat left top;
}
.file dl dd {
margin: 0 0 1em 0;
}
.file #metadata dl dd ul {
list-style: circle;
margin-left: 20px;
padding-top: 0;
}
.file #metadata dl dd ul li {
}
.file h2 {
margin-top: 2em;
padding: 0.75em 0.5em;
background-color: #dedede;
color: #333;
font-size: 120%;
border: 1px solid #bbb;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
/* @end */
/* @group ThickBox Styles */
#TB_window {
font: 12px Arial, Helvetica, sans-serif;
color: #333333;
}
#TB_secondLine {
font: 10px Arial, Helvetica, sans-serif;
color:#666666;
}
#TB_window :link,
#TB_window :visited { color: #666666; }
#TB_window :link:hover,
#TB_window :visited:hover { color: #000; }
#TB_window :link:active,
#TB_window :visited:active { color: #666666; }
#TB_window :link:focus,
#TB_window :visited:focus { color: #666666; }
#TB_overlay {
position: fixed;
z-index:100;
top: 0px;
left: 0px;
height:100%;
width:100%;
}
.TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
.TB_overlayBG {
background-color:#000;
filter:alpha(opacity=75);
-moz-opacity: 0.75;
opacity: 0.75;
}
* html #TB_overlay { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_window {
position: fixed;
background: #ffffff;
z-index: 102;
color:#000000;
display:none;
border: 4px solid #525252;
text-align:left;
top:50%;
left:50%;
}
* html #TB_window { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_window img#TB_Image {
display:block;
margin: 15px 0 0 15px;
border-right: 1px solid #ccc;
border-bottom: 1px solid #ccc;
border-top: 1px solid #666;
border-left: 1px solid #666;
}
#TB_caption{
height:25px;
padding:7px 30px 10px 25px;
float:left;
}
#TB_closeWindow{
height:25px;
padding:11px 25px 10px 0;
float:right;
}
#TB_closeAjaxWindow{
padding:7px 10px 5px 0;
margin-bottom:1px;
text-align:right;
float:right;
}
#TB_ajaxWindowTitle{
float:left;
padding:7px 0 5px 10px;
margin-bottom:1px;
font-size: 22px;
}
#TB_title{
background-color: #6C8C22;
color: #dedede;
height:40px;
}
#TB_title :link,
#TB_title :visited {
color: white !important;
border-bottom: 1px dotted #dedede;
}
#TB_ajaxContent{
clear:both;
padding:2px 15px 15px 15px;
overflow:auto;
text-align:left;
line-height:1.4em;
}
#TB_ajaxContent.TB_modal{
padding:15px;
}
#TB_ajaxContent p{
padding:5px 0px 5px 0px;
}
#TB_load{
position: fixed;
display:none;
height:13px;
width:208px;
z-index:103;
top: 50%;
left: 50%;
margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
}
* html #TB_load { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}
#TB_HideSelect{
z-index:99;
position:fixed;
top: 0;
left: 0;
background-color:#fff;
border:none;
filter:alpha(opacity=0);
-moz-opacity: 0;
opacity: 0;
height:100%;
width:100%;
}
* html #TB_HideSelect { /* ie6 hack */
position: absolute;
height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}
#TB_iframeContent{
clear:both;
border:none;
margin-bottom:-1px;
margin-top:1px;
_margin-bottom:1px;
}
/* @end */
/* @group Debugging Section */
#debugging-toggle {
text-align: center;
}
#debugging-toggle img {
cursor: pointer;
}
#rdoc-debugging-section-dump {
display: none;
margin: 0 2em 2em;
background: #ccc;
border: 1px solid #999;
}
/* @end */

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more