summaryrefslogtreecommitdiff
path: root/doc/classes/JSON/Pure/Generator
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/JSON/Pure/Generator')
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods.html77
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.html111
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html101
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.html118
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.html111
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.html101
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html101
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.html103
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/String.html286
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html112
-rw-r--r--doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html101
-rw-r--r--doc/classes/JSON/Pure/Generator/State.html588
12 files changed, 0 insertions, 1910 deletions
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods.html
deleted file mode 100644
index 9a8bfd2..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods.html
+++ /dev/null
@@ -1,77 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <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>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.html
deleted file mode 100644
index 05dd260..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.html
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::Array</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::Array
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000056">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000056">
-
- <a name="M000056"></a><b>to_json</b>(state = nil, depth = 0, *)
-
- </div>
-
- <div class="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. <em>depth</em>
-is used to find out nesting depth, to indent accordingly.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000056_source')" id="l_M000056_source">show</a>
-
- </p>
- <div id="M000056_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 305</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">depth</span> = <span class="ruby-value">0</span>, <span class="ruby-operator">*</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</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">depth</span>)
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>, <span class="ruby-identifier">depth</span>)
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html
deleted file mode 100644
index 43490d1..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::FalseClass</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::FalseClass
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000067">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000067">
-
- <a name="M000067"></a><b>to_json</b>(*)
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string for false:
-&#8216;false&#8217;.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000067_source')" id="l_M000067_source">show</a>
-
- </p>
- <div id="M000067_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 442</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-value str">'false'</span> <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.html
deleted file mode 100644
index 48f606c..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::Float</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::Float
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000059">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000059">
-
- <a name="M000059"></a><b>to_json</b>(state = nil, *)
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string representation
-for this <a href="Float.html">Float</a> number.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000059_source')" id="l_M000059_source">show</a>
-
- </p>
- <div id="M000059_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 347</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span>)
- <span class="ruby-keyword kw">case</span>
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">infinite?</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span> <span class="ruby-operator">&amp;&amp;</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 kw">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 kw">end</span>
- <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">nan?</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span> <span class="ruby-operator">&amp;&amp;</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 kw">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 kw">end</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-identifier">to_s</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.html
deleted file mode 100644
index 960a650..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.html
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::Hash</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::Hash
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000053">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000053">
-
- <a name="M000053"></a><b>to_json</b>(state = nil, depth = 0, *)
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000053_source')" id="l_M000053_source">show</a>
-
- </p>
- <div id="M000053_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 250</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">depth</span> = <span class="ruby-value">0</span>, <span class="ruby-operator">*</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</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">depth</span>)
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>, <span class="ruby-identifier">depth</span>)
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.html
deleted file mode 100644
index 5267f27..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::Integer</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::Integer
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000058">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000058">
-
- <a name="M000058"></a><b>to_json</b>(*)
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string representation
-for this <a href="Integer.html">Integer</a> number.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000058_source')" id="l_M000058_source">show</a>
-
- </p>
- <div id="M000058_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 342</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html
deleted file mode 100644
index 8d33d8a..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::NilClass</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::NilClass
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000069">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000069">
-
- <a name="M000069"></a><b>to_json</b>(*)
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string for nil:
-&#8216;null&#8217;.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000069_source')" id="l_M000069_source">show</a>
-
- </p>
- <div id="M000069_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 447</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-value str">'null'</span> <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.html
deleted file mode 100644
index 11d009f..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.html
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::Object</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::Object
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000052">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000052">
-
- <a name="M000052"></a><b>to_json</b>(*)
-
- </div>
-
- <div class="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#M000052">to_json</a> was defined for some object.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000052_source')" id="l_M000052_source">show</a>
-
- </p>
- <div id="M000052_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 241</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_json</span> <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.html
deleted file mode 100644
index 3cf38df..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.html
+++ /dev/null
@@ -1,286 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::String</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::String
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>I</dt>
- <dd>
- <ul>
-
- <li><a href="#M000063">included</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000060">to_json</a>,</li>
-
- <li><a href="#M000061">to_json</a>,</li>
-
- <li><a href="#M000065">to_json_raw</a>,</li>
-
- <li><a href="#M000064">to_json_raw_object</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a></li>
-
- </ul>
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="M000063">
-
- <a name="M000063"></a><b>included</b>(modul)
-
- </div>
-
- <div class="description">
- <p>
-Extends <em>modul</em> with the <a
-href="String/Extend.html">String::Extend</a> module.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000063_source')" id="l_M000063_source">show</a>
-
- </p>
- <div id="M000063_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 413</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">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 kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000060">
-
- <a name="M000060"></a><b>to_json</b>(*args)
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000060_source')" id="l_M000060_source">show</a>
-
- </p>
- <div id="M000060_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 372</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
- <span class="ruby-identifier">state</span>, = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
- <span class="ruby-identifier">state</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>)
- <span class="ruby-keyword kw">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 kw">self</span>
- <span class="ruby-keyword kw">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 kw">end</span>
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span>
- <span class="ruby-value str">'&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-value str">'&quot;'</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-value str">'&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-value str">'&quot;'</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000061">
-
- <a name="M000061"></a><b>to_json</b>(*args)
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000061_source')" id="l_M000061_source">show</a>
-
- </p>
- <div id="M000061_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 390</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
- <span class="ruby-identifier">state</span>, = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
- <span class="ruby-identifier">state</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span>
- <span class="ruby-value str">'&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-keyword kw">self</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'&quot;'</span>
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-value str">'&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-keyword kw">self</span>) <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'&quot;'</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000065">
-
- <a name="M000065"></a><b>to_json_raw</b>(*args)
-
- </div>
-
- <div class="description">
- <p>
-This method creates a <a href="../../../../JSON.html">JSON</a> text from
-the result of a call to <a
-href="String.html#M000064">to_json_raw_object</a> of this <a
-href="String.html">String</a>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000065_source')" id="l_M000065_source">show</a>
-
- </p>
- <div id="M000065_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 430</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json_raw</span>(<span class="ruby-operator">*</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-operator">*</span><span class="ruby-identifier">args</span>)
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000064">
-
- <a name="M000064"></a><b>to_json_raw_object</b>()
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000064_source')" id="l_M000064_source">show</a>
-
- </p>
- <div id="M000064_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 421</span>
- <span class="ruby-keyword kw">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 kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
- <span class="ruby-value str">'raw'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>),
- }
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html
deleted file mode 100644
index ef4aace..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::String::Extend</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::String::Extend
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-Module that holds the extinding methods if, the <a
-href="../String.html">String</a> module is included.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#M000062">json_create</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000062">
-
- <a name="M000062"></a><b>json_create</b>(o)
-
- </div>
-
- <div class="description">
- <p>
-Raw Strings are <a href="../../../../../JSON.html">JSON</a> Objects (the
-raw bytes are stored in an array for the key &#8220;raw&#8221;). The Ruby
-<a href="../String.html">String</a> can be created by this module method.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000062_source')" id="l_M000062_source">show</a>
-
- </p>
- <div id="M000062_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 407</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">o</span>)
- <span class="ruby-identifier">o</span>[<span class="ruby-value str">'raw'</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'C*'</span>)
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html
deleted file mode 100644
index 26ce6a3..0000000
--- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::GeneratorMethods::TrueClass</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Module</span>
- JSON::Pure::Generator::GeneratorMethods::TrueClass
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000066">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000066">
-
- <a name="M000066"></a><b>to_json</b>(*)
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string for true:
-&#8216;true&#8217;.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000066_source')" id="l_M000066_source">show</a>
-
- </p>
- <div id="M000066_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 437</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-value str">'true'</span> <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator/State.html b/doc/classes/JSON/Pure/Generator/State.html
deleted file mode 100644
index 8e64194..0000000
--- a/doc/classes/JSON/Pure/Generator/State.html
+++ /dev/null
@@ -1,588 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>JSON::Pure::Generator::State</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="../../../../css/reset.css" type="text/css" media="screen" />
- <link rel="stylesheet" href="../../../../css/main.css" type="text/css" media="screen" />
- <script src="../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
-</head>
-
-<body>
- <div class="banner">
- <h1>
- <span class="type">Class</span>
- JSON::Pure::Generator::State
-
- <span class="parent">&lt;
-
- <a href="../../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div 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 a Ruby data structure.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>#</dt>
- <dd>
- <ul>
-
- <li><a href="#M000051">[]</a></li>
-
- </ul>
- </dd>
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#M000042">allow_nan?</a>,</li>
-
- <li><a href="#M000043">ascii_only?</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#M000041">check_circular?</a>,</li>
-
- <li><a href="#M000044">configure</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#M000034">from_state</a></li>
-
- </ul>
- </dd>
-
- <dt>G</dt>
- <dd>
- <ul>
-
- <li><a href="#M000050">generate</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#M000037">new</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#M000048">to_h</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>indent</td>
- <td class='attr-desc'><p>
-This string is used to indent levels in the <a
-href="../../../JSON.html">JSON</a> text.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>space</td>
- <td class='attr-desc'><p>
-This string is used to insert a space between the tokens in a <a
-href="../../../JSON.html">JSON</a> string.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>space_before</td>
- <td class='attr-desc'><p>
-This string is used to insert a space before the &#8217;:&#8217; in <a
-href="../../../JSON.html">JSON</a> objects.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>object_nl</td>
- <td class='attr-desc'><p>
-This string is put at the end of a line that holds a <a
-href="../../../JSON.html">JSON</a> object (or Hash).
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>array_nl</td>
- <td class='attr-desc'><p>
-This string is put at the end of a line that holds a <a
-href="../../../JSON.html">JSON</a> array.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>max_nesting</td>
- <td class='attr-desc'><p>
-This integer returns the maximum level of data structure nesting in the
-generated <a href="../../../JSON.html">JSON</a>, <a
-href="State.html#max_nesting">max_nesting</a> = 0 if no maximum is checked.
-</p></td>
- </tr>
-
- </table>
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="M000034">
-
- <a name="M000034"></a><b>from_state</b>(opts)
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000034_source')" id="l_M000034_source">show</a>
-
- </p>
- <div id="M000034_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 108</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">opts</span>)
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">opts</span>
- <span class="ruby-keyword kw">when</span> <span class="ruby-keyword kw">self</span>
- <span class="ruby-identifier">opts</span>
- <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
- <span class="ruby-identifier">new</span>(<span class="ruby-identifier">opts</span>)
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000037">
-
- <a name="M000037"></a><b>new</b>(opts = {})
-
- </div>
-
- <div class="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><b>indent</b>: a string used to indent levels (default: &#8217;&#8217;),
-
-</li>
-<li><b>space</b>: a string that is put after, a : or , delimiter (default:
-&#8217;&#8217;),
-
-</li>
-<li><b><a href="State.html#space_before">space_before</a></b>: a string that is
-put before a : pair delimiter (default: &#8217;&#8217;),
-
-</li>
-<li><b><a href="State.html#object_nl">object_nl</a></b>: a string that is put
-at the end of a <a href="../../../JSON.html">JSON</a> object (default:
-&#8217;&#8217;),
-
-</li>
-<li><b><a href="State.html#array_nl">array_nl</a></b>: a string that is put at
-the end of a <a href="../../../JSON.html">JSON</a> array (default:
-&#8217;&#8217;),
-
-</li>
-<li><b>check_circular</b>: is deprecated now, use the :<a
-href="State.html#max_nesting">max_nesting</a> option instead,
-
-</li>
-<li><b><a href="State.html#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#max_nesting">max_nesting</a> = 0 if no maximum should be
-checked.
-
-</li>
-<li><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.
-
-</li>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000037_source')" id="l_M000037_source">show</a>
-
- </p>
- <div id="M000037_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 134</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">opts</span> = {})
- <span class="ruby-ivar">@indent</span> = <span class="ruby-value str">''</span>
- <span class="ruby-ivar">@space</span> = <span class="ruby-value str">''</span>
- <span class="ruby-ivar">@space_before</span> = <span class="ruby-value str">''</span>
- <span class="ruby-ivar">@object_nl</span> = <span class="ruby-value str">''</span>
- <span class="ruby-ivar">@array_nl</span> = <span class="ruby-value str">''</span>
- <span class="ruby-ivar">@allow_nan</span> = <span class="ruby-keyword kw">false</span>
- <span class="ruby-ivar">@ascii_only</span> = <span class="ruby-keyword kw">false</span>
- <span class="ruby-identifier">configure</span> <span class="ruby-identifier">opts</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="M000051">
-
- <a name="M000051"></a><b>[]</b>(name)
-
- </div>
-
- <div class="description">
- <p>
-Return the value returned by method <tt>name</tt>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000051_source')" id="l_M000051_source">show</a>
-
- </p>
- <div id="M000051_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 231</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
- <span class="ruby-identifier">__send__</span> <span class="ruby-identifier">name</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000042">
-
- <a name="M000042"></a><b>allow_nan?</b>()
-
- </div>
-
- <div class="description">
- <p>
-Returns true if NaN, Infinity, and -Infinity should be considered as valid
-<a href="../../../JSON.html">JSON</a> and output.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000042_source')" id="l_M000042_source">show</a>
-
- </p>
- <div id="M000042_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 181</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">allow_nan?</span>
- <span class="ruby-ivar">@allow_nan</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000043">
-
- <a name="M000043"></a><b>ascii_only?</b>()
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000043_source')" id="l_M000043_source">show</a>
-
- </p>
- <div id="M000043_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 185</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ascii_only?</span>
- <span class="ruby-ivar">@ascii_only</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000041">
-
- <a name="M000041"></a><b>check_circular?</b>()
-
- </div>
-
- <div class="description">
- <p>
-Returns true, if circular data structures are checked, otherwise returns
-false.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000041_source')" id="l_M000041_source">show</a>
-
- </p>
- <div id="M000041_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 175</span>
- <span class="ruby-keyword kw">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 kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000044">
-
- <a name="M000044"></a><b>configure</b>(opts)
-
- </div>
-
- <div class="description">
- <p>
-Configure this <a href="State.html">State</a> instance with the Hash
-<em>opts</em>, and return itself.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000044_source')" id="l_M000044_source">show</a>
-
- </p>
- <div id="M000044_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 191</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>)
- <span class="ruby-ivar">@indent</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:indent</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:indent</span>)
- <span class="ruby-ivar">@space</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:space</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:space</span>)
- <span class="ruby-ivar">@space_before</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:space_before</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:space_before</span>)
- <span class="ruby-ivar">@object_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object_nl</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:object_nl</span>)
- <span class="ruby-ivar">@array_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:array_nl</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">: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-identifier">:allow_nan</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:allow_nan</span>)
- <span class="ruby-ivar">@ascii_only</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:ascii_only</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:ascii_only</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:max_nesting</span>) <span class="ruby-comment cmt"># defaults to 19</span>
- <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">19</span>
- <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:max_nesting</span>]
- <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:max_nesting</span>]
- <span class="ruby-keyword kw">else</span>
- <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-keyword kw">self</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000050">
-
- <a name="M000050"></a><b>generate</b>(obj)
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000050_source')" id="l_M000050_source">show</a>
-
- </p>
- <div id="M000050_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 222</span>
- <span class="ruby-keyword kw">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 kw">self</span>)
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\A\s*(?:\[.*\]|\{.*\})\s*\Z/</span><span class="ruby-identifier">m</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-value str">&quot;only generation of JSON objects or arrays allowed&quot;</span>
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">result</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="M000048">
-
- <a name="M000048"></a><b>to_h</b>()
-
- </div>
-
- <div class="description">
- <p>
-Returns the configuration instance variables as a hash, that can be passed
-to the configure method.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('M000048_source')" id="l_M000048_source">show</a>
-
- </p>
- <div id="M000048_source" class="dyn-source">
- <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 211</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
- <span class="ruby-identifier">result</span> = {}
- <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">iv</span> <span class="ruby-keyword kw">in</span> <span class="ruby-node">%w[indent space space_before object_nl array_nl allow_nan max_nesting]</span>
- <span class="ruby-identifier">result</span>[<span class="ruby-identifier">iv</span>.<span class="ruby-identifier">intern</span>] = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{iv}&quot;</span>)
- <span class="ruby-keyword kw">end</span>
- <span class="ruby-identifier">result</span>
- <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file