summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-06-20 14:53:00 +0200
committerFlorian Frank <flori@ping.de>2011-06-20 14:53:00 +0200
commitfda7896e7611f01d40e66072ce79ed0d97f6c08f (patch)
treef3d4d46592419db22cf2fb3561f35a894ac75b74
parent93647f09152263836fc133d511ba92426b250fef (diff)
downloadjson-fda7896e7611f01d40e66072ce79ed0d97f6c08f.tar.gz
deleted documentation
-rw-r--r--doc/apple-touch-icon.pngbin86447 -> 0 bytes
-rw-r--r--doc/classes/Class.html111
-rw-r--r--doc/classes/Date.html143
-rw-r--r--doc/classes/DateTime.html155
-rw-r--r--doc/classes/Enumerable.html95
-rw-r--r--doc/classes/Exception.html143
-rw-r--r--doc/classes/JSON.html902
-rw-r--r--doc/classes/JSON/Editor.html572
-rw-r--r--doc/classes/JSON/Editor/EditMenu.html400
-rw-r--r--doc/classes/JSON/Editor/FileMenu.html411
-rw-r--r--doc/classes/JSON/Editor/Gtk.html59
-rw-r--r--doc/classes/JSON/Editor/Gtk/TreeIter.html363
-rw-r--r--doc/classes/JSON/Editor/JSONTreeView.html591
-rw-r--r--doc/classes/JSON/Editor/MainWindow.html1062
-rw-r--r--doc/classes/JSON/Editor/MenuExtension.html318
-rw-r--r--doc/classes/JSON/Editor/OptionsMenu.html222
-rw-r--r--doc/classes/JSON/Editor/PopUpMenu.html593
-rw-r--r--doc/classes/JSON/Ext.html73
-rw-r--r--doc/classes/JSON/Ext/Generator.html77
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods.html79
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.html105
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html104
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html104
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html104
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.html104
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html108
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html96
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.html111
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/String.html238
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html108
-rw-r--r--doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html104
-rw-r--r--doc/classes/JSON/Ext/Generator/State.html1164
-rw-r--r--doc/classes/JSON/Ext/Parser.html488
-rw-r--r--doc/classes/JSON/GeneratorError.html67
-rw-r--r--doc/classes/JSON/JSONError.html67
-rw-r--r--doc/classes/JSON/MissingUnicodeSupport.html68
-rw-r--r--doc/classes/JSON/NestingError.html68
-rw-r--r--doc/classes/JSON/ParserError.html67
-rw-r--r--doc/classes/JSON/Pure.html75
-rw-r--r--doc/classes/JSON/Pure/Generator.html63
-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.html596
-rw-r--r--doc/classes/JSON/Pure/Parser.html407
-rw-r--r--doc/classes/Kernel.html54
-rw-r--r--doc/classes/Object.html149
-rw-r--r--doc/classes/Range.html140
-rw-r--r--doc/classes/Regexp.html141
-rw-r--r--doc/classes/Struct.html142
-rw-r--r--doc/classes/Symbol.html169
-rw-r--r--doc/classes/Time.html148
-rw-r--r--doc/created.rid14
-rwxr-xr-xdoc/css/main.css278
-rwxr-xr-xdoc/css/panel.css383
-rwxr-xr-xdoc/css/reset.css53
-rw-r--r--doc/favicon.icobin1150 -> 0 bytes
-rw-r--r--doc/files/README.html544
-rw-r--r--doc/files/ext/json/ext/generator/generator_c.html59
-rw-r--r--doc/files/ext/json/ext/parser/parser_c.html59
-rw-r--r--doc/files/lib/json/add/core_rb.html90
-rw-r--r--doc/files/lib/json/add/rails_rb.html78
-rw-r--r--doc/files/lib/json/common_rb.html72
-rw-r--r--doc/files/lib/json/editor_rb.html82
-rw-r--r--doc/files/lib/json/ext_rb.html70
-rw-r--r--doc/files/lib/json/pure/generator_rb.html59
-rw-r--r--doc/files/lib/json/pure/parser_rb.html66
-rw-r--r--doc/files/lib/json/pure_rb.html72
-rw-r--r--doc/files/lib/json/version_rb.html59
-rw-r--r--doc/files/lib/json_rb.html72
-rwxr-xr-xdoc/i/arrows.pngbin477 -> 0 bytes
-rwxr-xr-xdoc/i/results_bg.pngbin696 -> 0 bytes
-rwxr-xr-xdoc/i/tree_bg.pngbin207 -> 0 bytes
-rw-r--r--doc/index.html14
-rwxr-xr-xdoc/js/jquery-1.3.2.min.js19
-rw-r--r--doc/js/jquery-effect.js593
-rwxr-xr-xdoc/js/main.js22
-rwxr-xr-xdoc/js/searchdoc.js628
-rwxr-xr-xdoc/panel/index.html71
-rw-r--r--doc/panel/search_index.js1
-rw-r--r--doc/panel/tree.js1
89 files changed, 0 insertions, 16509 deletions
diff --git a/doc/apple-touch-icon.png b/doc/apple-touch-icon.png
deleted file mode 100644
index 50f98b0..0000000
--- a/doc/apple-touch-icon.png
+++ /dev/null
Binary files differ
diff --git a/doc/classes/Class.html b/doc/classes/Class.html
deleted file mode 100644
index 6f42408..0000000
--- a/doc/classes/Class.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>Class</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>
- Class
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-json_creatable%3F">json_creatable?</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-json_creatable%3F">
-
- <a name="method-i-json_creatable%3F"></a><b>json_creatable?</b>()
-
- </div>
-
- <div class="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,
-which includes the required data.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-json_creatable%3F_source')" id="l_method-i-json_creatable%3F_source">show</a>
-
- </p>
- <div id="method-i-json_creatable%3F_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 394</span>
-394: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">json_creatable?</span>
-395: <span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:json_create</span>)
-396: <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/Date.html b/doc/classes/Date.html
deleted file mode 100644
index 1025f72..0000000
--- a/doc/classes/Date.html
+++ /dev/null
@@ -1,143 +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>Date</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>
- Date
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 45</span>
-45: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-46: <span class="ruby-identifier">civil</span>(*<span class="ruby-identifier">object</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-value str">'y'</span>, <span class="ruby-value str">'m'</span>, <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'sg'</span>))
-47: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*args)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 51</span>
-51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-52: {
-53: <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>,
-54: <span class="ruby-value str">'y'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">year</span>,
-55: <span class="ruby-value str">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">month</span>,
-56: <span class="ruby-value str">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">day</span>,
-57: <span class="ruby-value str">'sg'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">start</span>,
-58: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-59: <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/DateTime.html b/doc/classes/DateTime.html
deleted file mode 100644
index 3a5b2bf..0000000
--- a/doc/classes/DateTime.html
+++ /dev/null
@@ -1,155 +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>DateTime</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>
- DateTime
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 63</span>
-63: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-64: <span class="ruby-identifier">args</span> = <span class="ruby-identifier">object</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-value str">'y'</span>, <span class="ruby-value str">'m'</span>, <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'H'</span>, <span class="ruby-value str">'M'</span>, <span class="ruby-value str">'S'</span>)
-65: <span class="ruby-identifier">of_a</span>, <span class="ruby-identifier">of_b</span> = <span class="ruby-identifier">object</span>[<span class="ruby-value str">'of'</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>)
-66: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">of_b</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">of_b</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'0'</span>
-67: <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>)
-68: <span class="ruby-keyword kw">else</span>
-69: <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">of_a</span>
-70: <span class="ruby-keyword kw">end</span>
-71: <span class="ruby-identifier">args</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">object</span>[<span class="ruby-value str">'sg'</span>]
-72: <span class="ruby-identifier">civil</span>(*<span class="ruby-identifier">args</span>)
-73: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*args)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 77</span>
-77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-78: {
-79: <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>,
-80: <span class="ruby-value str">'y'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">year</span>,
-81: <span class="ruby-value str">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">month</span>,
-82: <span class="ruby-value str">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">day</span>,
-83: <span class="ruby-value str">'H'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">hour</span>,
-84: <span class="ruby-value str">'M'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">min</span>,
-85: <span class="ruby-value str">'S'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">sec</span>,
-86: <span class="ruby-value str">'of'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">offset</span>.<span class="ruby-identifier">to_s</span>,
-87: <span class="ruby-value str">'sg'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">start</span>,
-88: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-89: <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/Enumerable.html b/doc/classes/Enumerable.html
deleted file mode 100644
index e92617c..0000000
--- a/doc/classes/Enumerable.html
+++ /dev/null
@@ -1,95 +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>Enumerable</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>
- Enumerable
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/rails_rb.html">lib/json/add/rails.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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*a)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 38</span>
-38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-39: <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-40: <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/Exception.html b/doc/classes/Exception.html
deleted file mode 100644
index 6116d06..0000000
--- a/doc/classes/Exception.html
+++ /dev/null
@@ -1,143 +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>Exception</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>
- Exception
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 121</span>
-121: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-122: <span class="ruby-identifier">result</span> = <span class="ruby-identifier">new</span>(<span class="ruby-identifier">object</span>[<span class="ruby-value str">'m'</span>])
-123: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">set_backtrace</span> <span class="ruby-identifier">object</span>[<span class="ruby-value str">'b'</span>]
-124: <span class="ruby-identifier">result</span>
-125: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*args)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 127</span>
-127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-128: {
-129: <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>,
-130: <span class="ruby-value str">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">message</span>,
-131: <span class="ruby-value str">'b'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">backtrace</span>,
-132: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-133: <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.html b/doc/classes/JSON.html
deleted file mode 100644
index 2377a44..0000000
--- a/doc/classes/JSON.html
+++ /dev/null
@@ -1,902 +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</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
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json_rb.html">lib/json.rb</a></li>
-
- <li><a href="../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- <li><a href="../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- <li><a href="../files/lib/json/pure/parser_rb.html">lib/json/pure/parser.rb</a></li>
-
- <li><a href="../files/lib/json/pure_rb.html">lib/json/pure.rb</a></li>
-
- <li><a href="../files/lib/json/version_rb.html">lib/json/version.rb</a></li>
-
- <li><a href="../files/lib/json/ext_rb.html">lib/json/ext.rb</a></li>
-
- <li><a href="../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- <li><a href="../files/ext/json/ext/parser/parser_c.html">ext/json/ext/parser/parser.c</a></li>
-
- <li><a href="../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>#</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-%5B%5D">[]</a></li>
-
- </ul>
- </dd>
-
- <dt>D</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-dump">dump</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-fast_generate">fast_generate</a></li>
-
- </ul>
- </dd>
-
- <dt>G</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-generate">generate</a></li>
-
- </ul>
- </dd>
-
- <dt>I</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-iconv">iconv</a></li>
-
- </ul>
- </dd>
-
- <dt>L</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-load">load</a></li>
-
- </ul>
- </dd>
-
- <dt>P</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-parse">parse</a>,</li>
-
- <li><a href="#method-i-parse%21">parse!</a>,</li>
-
- <li><a href="#method-i-pretty_generate">pretty_generate</a></li>
-
- </ul>
- </dd>
-
- <dt>R</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-recurse_proc">recurse_proc</a>,</li>
-
- <li><a href="#method-c-restore">restore</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="JSON/Editor.html">JSON::Editor</a></li>
-
- <li><span class="type">MODULE</span> <a href="JSON/Ext.html">JSON::Ext</a></li>
-
- <li><span class="type">MODULE</span> <a href="JSON/Pure.html">JSON::Pure</a></li>
-
- <li><span class="type">CLASS</span> <a href="JSON/GeneratorError.html">JSON::GeneratorError</a></li>
-
- <li><span class="type">CLASS</span> <a href="JSON/GeneratorError.html">JSON::GeneratorError</a></li>
-
- <li><span class="type">CLASS</span> <a href="JSON/JSONError.html">JSON::JSONError</a></li>
-
- <li><span class="type">CLASS</span> <a href="JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a></li>
-
- <li><span class="type">CLASS</span> <a href="JSON/NestingError.html">JSON::NestingError</a></li>
-
- <li><span class="type">CLASS</span> <a href="JSON/ParserError.html">JSON::ParserError</a></li>
-
- </ul>
-
-
-
- <div class="sectiontitle">Constants</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class="attr-name">NaN</td>
- <td>=</td>
- <td class="attr-value">0.0/0</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">Infinity</td>
- <td>=</td>
- <td class="attr-value">1.0/0</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">MinusInfinity</td>
- <td>=</td>
- <td class="attr-value">-Infinity</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">UnparserError</td>
- <td>=</td>
- <td class="attr-value">GeneratorError</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-For backwards compatibility
-</p>
-</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">JSON_LOADED</td>
- <td>=</td>
- <td class="attr-value">true</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">VERSION</td>
- <td>=</td>
- <td class="attr-value">'1.4.4'</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-<a href="JSON.html">JSON</a> version
-</p>
-</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">JSON_LOADED</td>
- <td>=</td>
- <td class="attr-value">true</td>
- </tr>
-
-
- </table>
-
-
-
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>parser</td>
- <td class='attr-desc'><p>
-Returns the <a href="JSON.html">JSON</a> parser class, that is used by <a
-href="JSON.html">JSON</a>. This might be either <a
-href="JSON/Ext/Parser.html">JSON::Ext::Parser</a> or <a
-href="JSON/Pure/Parser.html">JSON::Pure::Parser</a>.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>generator</td>
- <td class='attr-desc'><p>
-Returns the <a href="JSON.html">JSON</a> generator modul, that is used by
-<a href="JSON.html">JSON</a>. This might be either <a
-href="JSON/Ext/Generator.html">JSON::Ext::Generator</a> or <a
-href="JSON/Pure/Generator.html">JSON::Pure::Generator</a>.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>state</td>
- <td class='attr-desc'><p>
-Returns the <a href="JSON.html">JSON</a> generator state class, that is
-used by <a href="JSON.html">JSON</a>. This might be either <a
-href="JSON/Ext/Generator/State.html">JSON::Ext::Generator::State</a> or <a
-href="JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a>.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>create_id</td>
- <td class='attr-desc'><p>
-This is create identifier, that is used to decide, if the
-<em>json_create</em> hook of a class should be called. It defaults to
-&#8216;json_class&#8217;.
-</p></td>
- </tr>
-
- </table>
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-%5B%5D">
-
- <a name="method-c-%5B%5D"></a><b>[]</b>(object, opts = {})
-
- </div>
-
- <div class="description">
- <p>
-If <em>object</em> is string-like parse the string and return the parsed
-result as a Ruby data structure. Otherwise generate a <a
-href="JSON.html">JSON</a> text from the Ruby data structure object and
-return it.
-</p>
-<p>
-The <em>opts</em> argument is passed through to generate/parse
-respectively, see generate and parse for their documentation.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-%5B%5D_source')" id="l_method-c-%5B%5D_source">show</a>
-
- </p>
- <div id="method-c-%5B%5D_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 12</span>
-12: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">opts</span> = {})
-13: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_str</span>
-14: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">object</span>.<span class="ruby-identifier">to_str</span>, <span class="ruby-identifier">opts</span> =<span class="ruby-operator">&gt;</span> {})
-15: <span class="ruby-keyword kw">else</span>
-16: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">opts</span> =<span class="ruby-operator">&gt;</span> {})
-17: <span class="ruby-keyword kw">end</span>
-18: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-iconv">
-
- <a name="method-c-iconv"></a><b>iconv</b>(to, from, string)
-
- </div>
-
- <div class="description">
- <p>
-Shortuct for iconv.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-iconv_source')" id="l_method-c-iconv_source">show</a>
-
- </p>
- <div id="method-c-iconv_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 348</span>
-348: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-identifier">to</span>, <span class="ruby-identifier">from</span>, <span class="ruby-identifier">string</span>)
-349: <span class="ruby-constant">Iconv</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-identifier">to</span>, <span class="ruby-identifier">from</span>, <span class="ruby-identifier">string</span>).<span class="ruby-identifier">first</span>
-350: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-restore">
-
- <a name="method-c-restore"></a><b>restore</b>(source, proc = nil)
-
- </div>
-
-
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-dump">
-
- <a name="method-i-dump"></a><b>dump</b>(obj, anIO = nil, limit = nil)
-
- </div>
-
- <div class="description">
- <p>
-Dumps <em>obj</em> as a <a href="JSON.html">JSON</a> string, i.e. calls
-generate on the object and returns the result.
-</p>
-<p>
-If anIO (an IO like object or an object that responds to the write method)
-was given, the resulting <a href="JSON.html">JSON</a> is written to it.
-</p>
-<p>
-If the number of nested arrays or objects exceeds <em>limit</em> an
-ArgumentError exception is raised. This argument is similar (but not
-exactly the same!) to the <em>limit</em> argument in Marshal.dump.
-</p>
-<p>
-This method is part of the implementation of the load/dump interface of
-Marshal and YAML.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-dump_source')" id="l_method-i-dump_source">show</a>
-
- </p>
- <div id="method-i-dump_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 327</span>
-327: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dump</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">anIO</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">limit</span> = <span class="ruby-keyword kw">nil</span>)
-328: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">anIO</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">limit</span>.<span class="ruby-identifier">nil?</span>
-329: <span class="ruby-identifier">anIO</span> = <span class="ruby-identifier">anIO</span>.<span class="ruby-identifier">to_io</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">anIO</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:to_io</span>)
-330: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">anIO</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:write</span>)
-331: <span class="ruby-identifier">limit</span> = <span class="ruby-identifier">anIO</span>
-332: <span class="ruby-identifier">anIO</span> = <span class="ruby-keyword kw">nil</span>
-333: <span class="ruby-keyword kw">end</span>
-334: <span class="ruby-keyword kw">end</span>
-335: <span class="ruby-identifier">limit</span> <span class="ruby-operator">||=</span> <span class="ruby-value">0</span>
-336: <span class="ruby-identifier">result</span> = <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-value">:allow_nan</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-value">:max_nesting</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">limit</span>)
-337: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">anIO</span>
-338: <span class="ruby-identifier">anIO</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">result</span>
-339: <span class="ruby-identifier">anIO</span>
-340: <span class="ruby-keyword kw">else</span>
-341: <span class="ruby-identifier">result</span>
-342: <span class="ruby-keyword kw">end</span>
-343: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">NestingError</span>
-344: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;exceed depth limit&quot;</span>
-345: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-fast_generate">
-
- <a name="method-i-fast_generate"></a><b>fast_generate</b>(obj, opts = nil)
-
- </div>
-
- <div class="description">
- <p>
-Generate a <a href="JSON.html">JSON</a> document from the Ruby data
-structure <em>obj</em> and return it. This method disables the checks for
-circles in Ruby objects.
-</p>
-<p>
-<b>WARNING</b>: Be careful not to pass any Ruby data structures with
-circles as <em>obj</em> argument, because this will cause <a
-href="JSON.html">JSON</a> to go into an infinite loop.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-fast_generate_source')" id="l_method-i-fast_generate_source">show</a>
-
- </p>
- <div id="method-i-fast_generate_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 227</span>
-227: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fast_generate</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">opts</span> = <span class="ruby-keyword kw">nil</span>)
-228: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>
-229: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_hash</span>
-230: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span>
-231: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_h</span>
-232: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span>
-233: <span class="ruby-keyword kw">else</span>
-234: <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>
-235: <span class="ruby-keyword kw">end</span>
-236: <span class="ruby-identifier">state</span> = <span class="ruby-constant">FAST_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span>
-237: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>)
-238: <span class="ruby-keyword kw">else</span>
-239: <span class="ruby-identifier">state</span> = <span class="ruby-constant">FAST_STATE_PROTOTYPE</span>
-240: <span class="ruby-keyword kw">end</span>
-241: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)
-242: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-generate">
-
- <a name="method-i-generate"></a><b>generate</b>(obj, opts = nil)
-
- </div>
-
- <div class="description">
- <p>
-Generate a <a href="JSON.html">JSON</a> document from the Ruby data
-structure <em>obj</em> and return it. <em>state</em> is * a JSON::State
-object,
-</p>
-<ul>
-<li><p>
-or a Hash like object (responding to to_hash),
-</p>
-</li>
-<li><p>
-an object convertible into a hash by a to_h method,
-</p>
-</li>
-</ul>
-<p>
-that is used as or to configure a State object.
-</p>
-<p>
-It defaults to a state object, that creates the shortest possible <a
-href="JSON.html">JSON</a> text in one line, checks for circular data
-structures and doesn&#8217;t allow <a href="JSON.html#NaN">NaN</a>, <a
-href="JSON.html#Infinity">Infinity</a>, and -<a
-href="JSON.html#Infinity">Infinity</a>.
-</p>
-<p>
-A <em>state</em> hash can have the following keys:
-</p>
-<ul>
-<li><p>
-<b>indent</b>: a string used to indent levels (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>space</b>: a string that is put after, a : or , delimiter (default:
-&#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>space_before</b>: a string that is put before a : pair delimiter
-(default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>object_nl</b>: a string that is put at the end of a <a
-href="JSON.html">JSON</a> object (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>array_nl</b>: a string that is put at the end of a <a
-href="JSON.html">JSON</a> array (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>allow_nan</b>: true if <a href="JSON.html#NaN">NaN</a>, <a
-href="JSON.html#Infinity">Infinity</a>, and -<a
-href="JSON.html#Infinity">Infinity</a> should be generated, otherwise an
-exception is thrown, if these values are encountered. This options defaults
-to false.
-</p>
-</li>
-<li><p>
-<b>max_nesting</b>: The maximum depth of nesting allowed in the data
-structures from which <a href="JSON.html">JSON</a> is to be generated.
-Disable depth checking with :max_nesting => false, it defaults to 19.
-</p>
-</li>
-</ul>
-<p>
-See also the <a href="JSON.html#method-i-fast_generate">fast_generate</a>
-for the fastest creation method with the least amount of sanity checks, and
-the <a href="JSON.html#method-i-pretty_generate">pretty_generate</a> method
-for some defaults for a pretty output.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-generate_source')" id="l_method-i-generate_source">show</a>
-
- </p>
- <div id="method-i-generate_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 198</span>
-198: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">opts</span> = <span class="ruby-keyword kw">nil</span>)
-199: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>
-200: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_hash</span>
-201: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span>
-202: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_h</span>
-203: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span>
-204: <span class="ruby-keyword kw">else</span>
-205: <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>
-206: <span class="ruby-keyword kw">end</span>
-207: <span class="ruby-identifier">state</span> = <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span>
-208: <span class="ruby-identifier">state</span> = <span class="ruby-identifier">state</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>)
-209: <span class="ruby-keyword kw">else</span>
-210: <span class="ruby-identifier">state</span> = <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span>
-211: <span class="ruby-keyword kw">end</span>
-212: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)
-213: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-load">
-
- <a name="method-i-load"></a><b>load</b>(source, proc = nil)
-
- </div>
-
- <div class="description">
- <p>
-Load a ruby data structure from a <a href="JSON.html">JSON</a>
-<em>source</em> and return it. A source can either be a string-like object,
-an IO like object, or an object responding to the read method. If
-<em>proc</em> was given, it will be called with any nested Ruby object as
-an argument recursively in depth first order.
-</p>
-<p>
-This method is part of the implementation of the load/dump interface of
-Marshal and YAML.
-</p>
-
- </div>
-
-
- <div class="aka">
- This method is also aliased as
-
- <a href="JSON.html#method-i-restore">restore</a>
-
- </div>
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-load_source')" id="l_method-i-load_source">show</a>
-
- </p>
- <div id="method-i-load_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 286</span>
-286: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">proc</span> = <span class="ruby-keyword kw">nil</span>)
-287: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_str</span>
-288: <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">to_str</span>
-289: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_io</span>
-290: <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">to_io</span>.<span class="ruby-identifier">read</span>
-291: <span class="ruby-keyword kw">else</span>
-292: <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">read</span>
-293: <span class="ruby-keyword kw">end</span>
-294: <span class="ruby-identifier">result</span> = <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>, <span class="ruby-value">:max_nesting</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-value">:allow_nan</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>)
-295: <span class="ruby-identifier">recurse_proc</span>(<span class="ruby-identifier">result</span>, &amp;<span class="ruby-identifier">proc</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">proc</span>
-296: <span class="ruby-identifier">result</span>
-297: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-parse">
-
- <a name="method-i-parse"></a><b>parse</b>(source, opts = {})
-
- </div>
-
- <div class="description">
- <p>
-Parse the <a href="JSON.html">JSON</a> document <em>source</em> into a Ruby
-data structure and return it.
-</p>
-<p>
-<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 => false, it defaults
-to 19.
-</p>
-</li>
-<li><p>
-<b>allow_nan</b>: If set to true, allow <a href="JSON.html#NaN">NaN</a>, <a
-href="JSON.html#Infinity">Infinity</a> and -<a
-href="JSON.html#Infinity">Infinity</a> in defiance of RFC 4627 to be parsed
-by the Parser. 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 false, the Parser doesn&#8217;t create
-additions even if a matchin class and <a
-href="JSON.html#create_id">create_id</a> was found. This option defaults to
-true.
-</p>
-</li>
-<li><p>
-<b>object_class</b>: Defaults to Hash
-</p>
-</li>
-<li><p>
-<b>array_class</b>: Defaults to Array
-</p>
-</li>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-parse_source')" id="l_method-i-parse_source">show</a>
-
- </p>
- <div id="method-i-parse_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 145</span>
-145: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">opts</span> = {})
-146: <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">opts</span>).<span class="ruby-identifier">parse</span>
-147: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-parse%21">
-
- <a name="method-i-parse%21"></a><b>parse!</b>(source, opts = {})
-
- </div>
-
- <div class="description">
- <p>
-Parse the <a href="JSON.html">JSON</a> document <em>source</em> into a Ruby
-data structure and return it. The bang version of the parse method,
-defaults to the more dangerous values for the <em>opts</em> hash, so be
-sure only to parse trusted <em>source</em> documents.
-</p>
-<p>
-<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. Enable depth checking with :max_nesting => anInteger. The
-parse! methods defaults to not doing max depth checking: This can be
-dangerous, if someone wants to fill up your stack.
-</p>
-</li>
-<li><p>
-<b>allow_nan</b>: If set to true, allow <a href="JSON.html#NaN">NaN</a>, <a
-href="JSON.html#Infinity">Infinity</a>, and -<a
-href="JSON.html#Infinity">Infinity</a> in defiance of RFC 4627 to be parsed
-by the Parser. This option defaults to true.
-</p>
-</li>
-<li><p>
-<b>create_additions</b>: If set to false, the Parser doesn&#8217;t create
-additions even if a matchin class and <a
-href="JSON.html#create_id">create_id</a> was found. This option defaults to
-true.
-</p>
-</li>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-parse%21_source')" id="l_method-i-parse%21_source">show</a>
-
- </p>
- <div id="method-i-parse%21_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 164</span>
-164: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse!</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">opts</span> = {})
-165: <span class="ruby-identifier">opts</span> = {
-166: <span class="ruby-value">:max_nesting</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>,
-167: <span class="ruby-value">:allow_nan</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>
-168: }.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">opts</span>)
-169: <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">opts</span>).<span class="ruby-identifier">parse</span>
-170: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-pretty_generate">
-
- <a name="method-i-pretty_generate"></a><b>pretty_generate</b>(obj, opts = nil)
-
- </div>
-
- <div class="description">
- <p>
-Generate a <a href="JSON.html">JSON</a> document from the Ruby data
-structure <em>obj</em> and return it. The returned document is a prettier
-form of the document returned by #.
-</p>
-<p>
-The <em>opts</em> argument can be used to configure the generator, see the
-generate method for a more detailed explanation.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-pretty_generate_source')" id="l_method-i-pretty_generate_source">show</a>
-
- </p>
- <div id="method-i-pretty_generate_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 256</span>
-256: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">opts</span> = <span class="ruby-keyword kw">nil</span>)
-257: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>
-258: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_hash</span>
-259: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span>
-260: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:to_h</span>
-261: <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span>
-262: <span class="ruby-keyword kw">else</span>
-263: <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>
-264: <span class="ruby-keyword kw">end</span>
-265: <span class="ruby-identifier">state</span> = <span class="ruby-constant">PRETTY_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span>
-266: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>)
-267: <span class="ruby-keyword kw">else</span>
-268: <span class="ruby-identifier">state</span> = <span class="ruby-constant">PRETTY_STATE_PROTOTYPE</span>
-269: <span class="ruby-keyword kw">end</span>
-270: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)
-271: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-recurse_proc">
-
- <a name="method-i-recurse_proc"></a><b>recurse_proc</b>(result, &amp;proc)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-recurse_proc_source')" id="l_method-i-recurse_proc_source">show</a>
-
- </p>
- <div id="method-i-recurse_proc_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/common.rb, line 299</span>
-299: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recurse_proc</span>(<span class="ruby-identifier">result</span>, &amp;<span class="ruby-identifier">proc</span>)
-300: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">result</span>
-301: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
-302: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">recurse_proc</span> <span class="ruby-identifier">x</span>, &amp;<span class="ruby-identifier">proc</span> }
-303: <span class="ruby-identifier">proc</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span>
-304: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
-305: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span><span class="ruby-operator">|</span> <span class="ruby-identifier">recurse_proc</span> <span class="ruby-identifier">x</span>, &amp;<span class="ruby-identifier">proc</span>; <span class="ruby-identifier">recurse_proc</span> <span class="ruby-identifier">y</span>, &amp;<span class="ruby-identifier">proc</span> }
-306: <span class="ruby-identifier">proc</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span>
-307: <span class="ruby-keyword kw">else</span>
-308: <span class="ruby-identifier">proc</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span>
-309: <span class="ruby-keyword kw">end</span>
-310: <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/Editor.html b/doc/classes/JSON/Editor.html
deleted file mode 100644
index 284acc4..0000000
--- a/doc/classes/JSON/Editor.html
+++ /dev/null
@@ -1,572 +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::Editor</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::Editor
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>D</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-data2model">data2model</a></li>
-
- </ul>
- </dd>
-
- <dt>E</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-edit">edit</a>,</li>
-
- <li><a href="#method-c-error_dialog">error_dialog</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-fetch_icon">fetch_icon</a></li>
-
- </ul>
- </dd>
-
- <dt>M</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-model2data">model2data</a></li>
-
- </ul>
- </dd>
-
- <dt>Q</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-question_dialog">question_dialog</a></li>
-
- </ul>
- </dd>
-
- <dt>S</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-start">start</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>Gtk</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="Editor/Gtk.html">JSON::Editor::Gtk</a></li>
-
- <li><span class="type">MODULE</span> <a href="Editor/MenuExtension.html">JSON::Editor::MenuExtension</a></li>
-
- <li><span class="type">CLASS</span> <a href="Editor/EditMenu.html">JSON::Editor::EditMenu</a></li>
-
- <li><span class="type">CLASS</span> <a href="Editor/FileMenu.html">JSON::Editor::FileMenu</a></li>
-
- <li><span class="type">CLASS</span> <a href="Editor/JSONTreeView.html">JSON::Editor::JSONTreeView</a></li>
-
- <li><span class="type">CLASS</span> <a href="Editor/MainWindow.html">JSON::Editor::MainWindow</a></li>
-
- <li><span class="type">CLASS</span> <a href="Editor/OptionsMenu.html">JSON::Editor::OptionsMenu</a></li>
-
- <li><span class="type">CLASS</span> <a href="Editor/PopUpMenu.html">JSON::Editor::PopUpMenu</a></li>
-
- </ul>
-
-
-
- <div class="sectiontitle">Constants</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class="attr-name">TITLE</td>
- <td>=</td>
- <td class="attr-value">'JSON Editor'.freeze</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-Beginning of the editor window title
-</p>
-</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">CONTENT_COL</td>
- <td>=</td>
- <td class="attr-value">0, 1, 2</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">CONTAINER_TYPES</td>
- <td>=</td>
- <td class="attr-value">%w[Array Hash].sort</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-<a href="../JSON.html">JSON</a> primitive types (Containers)
-</p>
-</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">ALL_TYPES</td>
- <td>=</td>
- <td class="attr-value">(%w[TrueClass FalseClass Numeric String NilClass] + CONTAINER_TYPES).sort</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-All <a href="../JSON.html">JSON</a> primitive types
-</p>
-</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">ALL_NODES</td>
- <td>=</td>
- <td class="attr-value">(ALL_TYPES + %w[Key]).sort</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-The Nodes necessary for the tree representation of a <a
-href="../JSON.html">JSON</a> document
-</p>
-</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">DEFAULT_DIALOG_KEY_PRESS_HANDLER</td>
- <td>=</td>
- <td class="attr-value">lambda do |dialog, event| case event.keyval when Gdk::Keyval::GDK_Return dialog.response Dialog::RESPONSE_ACCEPT when Gdk::Keyval::GDK_Escape dialog.response Dialog::RESPONSE_REJECT end end</td>
- </tr>
-
-
- </table>
-
-
-
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>window</td>
- <td class='attr-desc'></td>
- </tr>
-
- </table>
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-data2model">
-
- <a name="method-c-data2model"></a><b>data2model</b>(data, model = nil, parent = nil)
-
- </div>
-
- <div class="description">
- <p>
-Convert the Ruby data structure <em>data</em> into tree model data for <a
-href="Editor/Gtk.html">Gtk</a> and returns the whole model. If the
-parameter <em>model</em> wasn&#8217;t given a new Gtk::TreeStore is created
-as the model. The <em>parent</em> parameter specifies the parent node
-(iter, Gtk:TreeIter instance) to which the data is appended, alternativeley
-the result of the yielded block is used as iter.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-data2model_source')" id="l_method-c-data2model_source">show</a>
-
- </p>
- <div id="method-c-data2model_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 121</span>
-121: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">model</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>)
-122: <span class="ruby-identifier">model</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">TreeStore</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Pixbuf</span>, <span class="ruby-constant">String</span>, <span class="ruby-constant">String</span>)
-123: <span class="ruby-identifier">iter</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
-124: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">model</span>
-125: <span class="ruby-keyword kw">else</span>
-126: <span class="ruby-identifier">model</span>.<span class="ruby-identifier">append</span>(<span class="ruby-identifier">parent</span>)
-127: <span class="ruby-keyword kw">end</span>
-128: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">data</span>
-129: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
-130: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Hash'</span>
-131: <span class="ruby-identifier">data</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
-132: <span class="ruby-identifier">pair_iter</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">append</span>(<span class="ruby-identifier">iter</span>)
-133: <span class="ruby-identifier">pair_iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Key'</span>
-134: <span class="ruby-identifier">pair_iter</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>
-135: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">pair_iter</span>)
-136: <span class="ruby-keyword kw">end</span>
-137: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span>
-138: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Array'</span>
-139: <span class="ruby-identifier">data</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
-140: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">iter</span>)
-141: <span class="ruby-keyword kw">end</span>
-142: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Numeric</span>
-143: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Numeric'</span>
-144: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_s</span>
-145: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">String</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">nil</span>
-146: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>
-147: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-value str">'null'</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_s</span>
-148: <span class="ruby-keyword kw">else</span>
-149: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'String'</span>
-150: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">to_s</span>
-151: <span class="ruby-keyword kw">end</span>
-152: <span class="ruby-identifier">model</span>
-153: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-edit">
-
- <a name="method-c-edit"></a><b>edit</b>(json, encoding = 'utf8')
-
- </div>
-
- <div class="description">
- <p>
-Edit the string <em>json</em> with encoding <em>encoding</em> in the
-editor.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-edit_source')" id="l_method-c-edit_source">show</a>
-
- </p>
- <div id="method-c-edit_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1362</span>
-1362: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">encoding</span> = <span class="ruby-value str">'utf8'</span>)
-1363: <span class="ruby-identifier">start</span>(<span class="ruby-identifier">encoding</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">window</span><span class="ruby-operator">|</span>
-1364: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">edit</span> <span class="ruby-identifier">json</span>
-1365: <span class="ruby-keyword kw">end</span>
-1366: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-error_dialog">
-
- <a name="method-c-error_dialog"></a><b>error_dialog</b>(window, text)
-
- </div>
-
- <div class="description">
- <p>
-Opens an error dialog on top of <em>window</em> showing the error message
-<em>text</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-error_dialog_source')" id="l_method-c-error_dialog_source">show</a>
-
- </p>
- <div id="method-c-error_dialog_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 50</span>
-50: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">text</span>)
-51: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">MessageDialog</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">window</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">MODAL</span>,
-52: <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">ERROR</span>,
-53: <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">BUTTONS_CLOSE</span>, <span class="ruby-identifier">text</span>)
-54: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-55: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span>
-56: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">TypeError</span>
-57: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">MessageDialog</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Editor</span>.<span class="ruby-identifier">window</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">MODAL</span>,
-58: <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">ERROR</span>,
-59: <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">BUTTONS_CLOSE</span>, <span class="ruby-identifier">text</span>)
-60: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-61: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span>
-62: <span class="ruby-keyword kw">ensure</span>
-63: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dialog</span>
-64: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-fetch_icon">
-
- <a name="method-c-fetch_icon"></a><b>fetch_icon</b>(name)
-
- </div>
-
- <div class="description">
- <p>
-Returns the Gdk::Pixbuf of the icon named <em>name</em> from the icon
-cache.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-fetch_icon_source')" id="l_method-c-fetch_icon_source">show</a>
-
- </p>
- <div id="method-c-fetch_icon_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 39</span>
-39: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">fetch_icon</span>(<span class="ruby-identifier">name</span>)
-40: <span class="ruby-ivar">@icon_cache</span> <span class="ruby-operator">||=</span> {}
-41: <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@icon_cache</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">name</span>)
-42: <span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>)
-43: <span class="ruby-ivar">@icon_cache</span>[<span class="ruby-identifier">name</span>] = <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Pixbuf</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.xpm'</span>))
-44: <span class="ruby-keyword kw">end</span>
-45: <span class="ruby-ivar">@icon_cache</span>[<span class="ruby-identifier">name</span>]
-46: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-model2data">
-
- <a name="method-c-model2data"></a><b>model2data</b>(iter)
-
- </div>
-
- <div class="description">
- <p>
-Convert the tree model starting from <a
-href="Editor/Gtk/TreeIter.html">Gtk::TreeIter</a> <em>iter</em> into a Ruby
-data structure and return it.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-model2data_source')" id="l_method-c-model2data_source">show</a>
-
- </p>
- <div id="method-c-model2data_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 83</span>
- 83: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">iter</span>)
- 84: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">nil?</span>
- 85: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span>
- 86: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Hash'</span>
- 87: <span class="ruby-identifier">hash</span> = {}
- 88: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">c</span>.<span class="ruby-identifier">content</span>] = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">c</span>.<span class="ruby-identifier">first_child</span>) }
- 89: <span class="ruby-identifier">hash</span>
- 90: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span>
- 91: <span class="ruby-identifier">array</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">iter</span>.<span class="ruby-identifier">n_children</span>)
- 92: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">each_with_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">array</span>[<span class="ruby-identifier">i</span>] = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">c</span>) }
- 93: <span class="ruby-identifier">array</span>
- 94: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Key'</span>
- 95: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span>
- 96: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'String'</span>
- 97: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span>
- 98: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Numeric'</span>
- 99: <span class="ruby-identifier">content</span> = <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span>
-100: <span class="ruby-keyword kw">if</span> <span class="ruby-regexp re">/\./</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">content</span>)
-101: <span class="ruby-identifier">content</span>.<span class="ruby-identifier">to_f</span>
-102: <span class="ruby-keyword kw">else</span>
-103: <span class="ruby-identifier">content</span>.<span class="ruby-identifier">to_i</span>
-104: <span class="ruby-keyword kw">end</span>
-105: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'TrueClass'</span>
-106: <span class="ruby-keyword kw">true</span>
-107: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FalseClass'</span>
-108: <span class="ruby-keyword kw">false</span>
-109: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'NilClass'</span>
-110: <span class="ruby-keyword kw">nil</span>
-111: <span class="ruby-keyword kw">else</span>
-112: <span class="ruby-identifier">fail</span> <span class="ruby-node">&quot;Unknown type found in model: #{iter.type}&quot;</span>
-113: <span class="ruby-keyword kw">end</span>
-114: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-question_dialog">
-
- <a name="method-c-question_dialog"></a><b>question_dialog</b>(window, text)
-
- </div>
-
- <div class="description">
- <p>
-Opens a yes/no question dialog on top of <em>window</em> showing the error
-message <em>text</em>. If yes was answered <em>true</em> is returned,
-otherwise <em>false</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-question_dialog_source')" id="l_method-c-question_dialog_source">show</a>
-
- </p>
- <div id="method-c-question_dialog_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 69</span>
-69: <span class="ruby-keyword kw">def</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">question_dialog</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">text</span>)
-70: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">MessageDialog</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">window</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">MODAL</span>,
-71: <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">QUESTION</span>,
-72: <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">BUTTONS_YES_NO</span>, <span class="ruby-identifier">text</span>)
-73: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-74: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
-75: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_YES</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">response</span>
-76: <span class="ruby-keyword kw">end</span>
-77: <span class="ruby-keyword kw">ensure</span>
-78: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dialog</span>
-79: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-start">
-
- <a name="method-c-start"></a><b>start</b>(encoding = 'utf8')
-
- </div>
-
- <div class="description">
- <p>
-Starts a <a href="../JSON.html">JSON</a> <a href="Editor.html">Editor</a>.
-If a block was given, it yields to the <a
-href="Editor/MainWindow.html">JSON::Editor::MainWindow</a> instance.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-start_source')" id="l_method-c-start_source">show</a>
-
- </p>
- <div id="method-c-start_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1352</span>
-1352: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">start</span>(<span class="ruby-identifier">encoding</span> = <span class="ruby-value str">'utf8'</span>) <span class="ruby-comment cmt"># :yield: window</span>
-1353: <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">init</span>
-1354: <span class="ruby-ivar">@window</span> = <span class="ruby-constant">Editor</span><span class="ruby-operator">::</span><span class="ruby-constant">MainWindow</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">encoding</span>)
-1355: <span class="ruby-ivar">@window</span>.<span class="ruby-identifier">icon_list</span> = [ <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">fetch_icon</span>(<span class="ruby-value str">'json'</span>) ]
-1356: <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@window</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
-1357: <span class="ruby-ivar">@window</span>.<span class="ruby-identifier">show_all</span>
-1358: <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main</span>
-1359: <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/Editor/EditMenu.html b/doc/classes/JSON/Editor/EditMenu.html
deleted file mode 100644
index 17ded15..0000000
--- a/doc/classes/JSON/Editor/EditMenu.html
+++ /dev/null
@@ -1,400 +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::Editor::EditMenu</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::Editor::EditMenu
-
- <span class="parent">&lt;
-
- <a href="../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This class creates the Edit pulldown menu.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-copy">copy</a>,</li>
-
- <li><a href="#method-i-create">create</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-find">find</a>,</li>
-
- <li><a href="#method-i-find_again">find_again</a></li>
-
- </ul>
- </dd>
-
- <dt>P</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-paste">paste</a></li>
-
- </ul>
- </dd>
-
- <dt>S</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-sort">sort</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>MenuExtension</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-copy">
-
- <a name="method-i-copy"></a><b>copy</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Copy data from model into primary clipboard.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-copy_source')" id="l_method-i-copy_source">show</a>
-
- </p>
- <div id="method-i-copy_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 548</span>
-548: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy</span>(<span class="ruby-identifier">item</span>)
-549: <span class="ruby-identifier">data</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">model</span>.<span class="ruby-identifier">iter_first</span>)
-550: <span class="ruby-identifier">json</span> = <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">data</span>, <span class="ruby-value">:max_nesting</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
-551: <span class="ruby-identifier">c</span> = <span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Clipboard</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Selection</span><span class="ruby-operator">::</span><span class="ruby-constant">PRIMARY</span>)
-552: <span class="ruby-identifier">c</span>.<span class="ruby-identifier">text</span> = <span class="ruby-identifier">json</span>
-553: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-create">
-
- <a name="method-i-create"></a><b>create</b>()
-
- </div>
-
- <div class="description">
- <p>
-Create the menu.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_source')" id="l_method-i-create_source">show</a>
-
- </p>
- <div id="method-i-create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 645</span>
-645: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
-646: <span class="ruby-identifier">title</span> = <span class="ruby-constant">MenuItem</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Edit'</span>)
-647: <span class="ruby-identifier">title</span>.<span class="ruby-identifier">submenu</span> = <span class="ruby-identifier">menu</span>
-648: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Copy'</span>, <span class="ruby-value">cc</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:copy</span>))
-649: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Paste'</span>, <span class="ruby-value">vv</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:paste</span>))
-650: <span class="ruby-identifier">add_separator</span>
-651: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Find'</span>, <span class="ruby-value">ff</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:find</span>))
-652: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Find Again'</span>, <span class="ruby-value">gg</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:find_again</span>))
-653: <span class="ruby-identifier">add_separator</span>
-654: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Sort'</span>, <span class="ruby-value">SS</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:sort</span>))
-655: <span class="ruby-identifier">title</span>
-656: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-find">
-
- <a name="method-i-find"></a><b>find</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Find a string in all nodes&#8217; contents and select the found node in the
-treeview.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-find_source')" id="l_method-i-find_source">show</a>
-
- </p>
- <div id="method-i-find_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 570</span>
-570: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">item</span>)
-571: <span class="ruby-ivar">@search</span> = <span class="ruby-identifier">ask_for_find_term</span>(<span class="ruby-ivar">@search</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-572: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">get_iter</span>(<span class="ruby-value str">'0'</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-573: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">recursive_each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-574: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span>
-575: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">i</span>
-576: <span class="ruby-keyword kw">next</span>
-577: <span class="ruby-keyword kw">else</span>
-578: <span class="ruby-ivar">@iter</span> = <span class="ruby-keyword kw">nil</span>
-579: <span class="ruby-keyword kw">next</span>
-580: <span class="ruby-keyword kw">end</span>
-581: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@search</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">i</span>[<span class="ruby-constant">CONTENT_COL</span>])
-582: <span class="ruby-identifier">set_cursor</span>(<span class="ruby-identifier">i</span>.<span class="ruby-identifier">path</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">false</span>)
-583: <span class="ruby-ivar">@iter</span> = <span class="ruby-identifier">i</span>
-584: <span class="ruby-keyword kw">break</span>
-585: <span class="ruby-keyword kw">end</span>
-586: <span class="ruby-keyword kw">end</span>
-587: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-find_again">
-
- <a name="method-i-find_again"></a><b>find_again</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Repeat the last search given by <a
-href="EditMenu.html#method-i-find">#</a>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-find_again_source')" id="l_method-i-find_again_source">show</a>
-
- </p>
- <div id="method-i-find_again_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 590</span>
-590: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_again</span>(<span class="ruby-identifier">item</span>)
-591: <span class="ruby-ivar">@search</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-592: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">get_iter</span>(<span class="ruby-value str">'0'</span>)
-593: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">recursive_each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-594: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span>
-595: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">i</span>
-596: <span class="ruby-keyword kw">next</span>
-597: <span class="ruby-keyword kw">else</span>
-598: <span class="ruby-ivar">@iter</span> = <span class="ruby-keyword kw">nil</span>
-599: <span class="ruby-keyword kw">next</span>
-600: <span class="ruby-keyword kw">end</span>
-601: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@search</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">i</span>[<span class="ruby-constant">CONTENT_COL</span>])
-602: <span class="ruby-identifier">set_cursor</span>(<span class="ruby-identifier">i</span>.<span class="ruby-identifier">path</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">false</span>)
-603: <span class="ruby-ivar">@iter</span> = <span class="ruby-identifier">i</span>
-604: <span class="ruby-keyword kw">break</span>
-605: <span class="ruby-keyword kw">end</span>
-606: <span class="ruby-keyword kw">end</span>
-607: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-paste">
-
- <a name="method-i-paste"></a><b>paste</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Copy json text from primary clipboard into model.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-paste_source')" id="l_method-i-paste_source">show</a>
-
- </p>
- <div id="method-i-paste_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 556</span>
-556: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paste</span>(<span class="ruby-identifier">item</span>)
-557: <span class="ruby-identifier">c</span> = <span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Clipboard</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Selection</span><span class="ruby-operator">::</span><span class="ruby-constant">PRIMARY</span>)
-558: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">json</span> = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">wait_for_text</span>
-559: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span>
-560: <span class="ruby-keyword kw">begin</span>
-561: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">edit</span> <span class="ruby-identifier">json</span>
-562: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">ParserError</span>
-563: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">clear</span>
-564: <span class="ruby-keyword kw">end</span>
-565: <span class="ruby-keyword kw">end</span>
-566: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-sort">
-
- <a name="method-i-sort"></a><b>sort</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Sort (Reverse sort) all elements of the selected array by the given
-expression. <em>x</em> is the element in question.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-sort_source')" id="l_method-i-sort_source">show</a>
-
- </p>
- <div id="method-i-sort_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 611</span>
-611: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sort</span>(<span class="ruby-identifier">item</span>)
-612: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-613: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'Array'</span>
-614: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span>
-615: <span class="ruby-identifier">ary</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>)
-616: <span class="ruby-identifier">order</span>, <span class="ruby-identifier">reverse</span> = <span class="ruby-identifier">ask_for_order</span>
-617: <span class="ruby-identifier">order</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-618: <span class="ruby-keyword kw">begin</span>
-619: <span class="ruby-identifier">block</span> = <span class="ruby-identifier">eval</span> <span class="ruby-node">&quot;lambda { |x| #{order} }&quot;</span>
-620: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">reverse</span>
-621: <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">block</span>[<span class="ruby-identifier">b</span>] <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">block</span>[<span class="ruby-identifier">a</span>] }
-622: <span class="ruby-keyword kw">else</span>
-623: <span class="ruby-identifier">ary</span>.<span class="ruby-identifier">sort!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span>,<span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">block</span>[<span class="ruby-identifier">a</span>] <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">block</span>[<span class="ruby-identifier">b</span>] }
-624: <span class="ruby-keyword kw">end</span>
-625: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
-626: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">&quot;Failed to sort Array with #{order}: #{e}!&quot;</span>)
-627: <span class="ruby-keyword kw">else</span>
-628: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">ary</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">parent</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
-629: <span class="ruby-identifier">m</span>.<span class="ruby-identifier">insert_before</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">current</span>)
-630: <span class="ruby-keyword kw">end</span>
-631: <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>)
-632: <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">parent</span>)
-633: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-634: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Array has been sorted.&quot;</span>)
-635: <span class="ruby-keyword kw">end</span>
-636: <span class="ruby-keyword kw">else</span>
-637: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Only Array nodes can be sorted!&quot;</span>)
-638: <span class="ruby-keyword kw">end</span>
-639: <span class="ruby-keyword kw">else</span>
-640: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Select an Array to sort first!&quot;</span>)
-641: <span class="ruby-keyword kw">end</span>
-642: <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/Editor/FileMenu.html b/doc/classes/JSON/Editor/FileMenu.html
deleted file mode 100644
index 1d7b930..0000000
--- a/doc/classes/JSON/Editor/FileMenu.html
+++ /dev/null
@@ -1,411 +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::Editor::FileMenu</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::Editor::FileMenu
-
- <span class="parent">&lt;
-
- <a href="../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This class creates the File pulldown menu.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-create">create</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-new">new</a></li>
-
- </ul>
- </dd>
-
- <dt>O</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-open">open</a>,</li>
-
- <li><a href="#method-i-open_location">open_location</a></li>
-
- </ul>
- </dd>
-
- <dt>Q</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-quit">quit</a></li>
-
- </ul>
- </dd>
-
- <dt>R</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-revert">revert</a></li>
-
- </ul>
- </dd>
-
- <dt>S</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-save">save</a>,</li>
-
- <li><a href="#method-i-save_as">save_as</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>MenuExtension</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-create">
-
- <a name="method-i-create"></a><b>create</b>()
-
- </div>
-
- <div class="description">
- <p>
-Create the menu.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_source')" id="l_method-i-create_source">show</a>
-
- </p>
- <div id="method-i-create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 527</span>
-527: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
-528: <span class="ruby-identifier">title</span> = <span class="ruby-constant">MenuItem</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'File'</span>)
-529: <span class="ruby-identifier">title</span>.<span class="ruby-identifier">submenu</span> = <span class="ruby-identifier">menu</span>
-530: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'New'</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:new</span>))
-531: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Open'</span>, <span class="ruby-value">oo</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:open</span>))
-532: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Open location'</span>, <span class="ruby-value">ll</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:open_location</span>))
-533: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Revert'</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:revert</span>))
-534: <span class="ruby-identifier">add_separator</span>
-535: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Save'</span>, <span class="ruby-value">ss</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:save</span>))
-536: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Save As'</span>, <span class="ruby-value">SS</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:save_as</span>))
-537: <span class="ruby-identifier">add_separator</span>
-538: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Quit'</span>, <span class="ruby-value">qq</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:quit</span>))
-539: <span class="ruby-identifier">title</span>
-540: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-new">
-
- <a name="method-i-new"></a><b>new</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Clear the model and filename, but ask to save the <a
-href="../../JSON.html">JSON</a> document, if unsaved changes have occured.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-new_source')" id="l_method-i-new_source">show</a>
-
- </p>
- <div id="method-i-new_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 490</span>
-490: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">item</span>)
-491: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">clear</span>
-492: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-open">
-
- <a name="method-i-open"></a><b>open</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Open a file and load it into the editor. Ask to save the <a
-href="../../JSON.html">JSON</a> document first, if unsaved changes have
-occured.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-open_source')" id="l_method-i-open_source">show</a>
-
- </p>
- <div id="method-i-open_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 496</span>
-496: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">item</span>)
-497: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">file_open</span>
-498: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-open_location">
-
- <a name="method-i-open_location"></a><b>open_location</b>(item)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-open_location_source')" id="l_method-i-open_location_source">show</a>
-
- </p>
- <div id="method-i-open_location_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 500</span>
-500: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open_location</span>(<span class="ruby-identifier">item</span>)
-501: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">location_open</span>
-502: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-quit">
-
- <a name="method-i-quit"></a><b>quit</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Quit the editor, after asking to save any unsaved changes first.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-quit_source')" id="l_method-i-quit_source">show</a>
-
- </p>
- <div id="method-i-quit_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 522</span>
-522: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quit</span>(<span class="ruby-identifier">item</span>)
-523: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">quit</span>
-524: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-revert">
-
- <a name="method-i-revert"></a><b>revert</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Revert the current <a href="../../JSON.html">JSON</a> document in the
-editor to the saved version.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-revert_source')" id="l_method-i-revert_source">show</a>
-
- </p>
- <div id="method-i-revert_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 505</span>
-505: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revert</span>(<span class="ruby-identifier">item</span>)
-506: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword kw">do</span>
-507: <span class="ruby-ivar">@filename</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">file_open</span>(<span class="ruby-ivar">@filename</span>)
-508: <span class="ruby-keyword kw">end</span>
-509: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-save">
-
- <a name="method-i-save"></a><b>save</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Save the current <a href="../../JSON.html">JSON</a> document.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-save_source')" id="l_method-i-save_source">show</a>
-
- </p>
- <div id="method-i-save_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 512</span>
-512: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">item</span>)
-513: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">file_save</span>
-514: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-save_as">
-
- <a name="method-i-save_as"></a><b>save_as</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Save the current <a href="../../JSON.html">JSON</a> document under the
-given filename.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-save_as_source')" id="l_method-i-save_as_source">show</a>
-
- </p>
- <div id="method-i-save_as_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 517</span>
-517: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save_as</span>(<span class="ruby-identifier">item</span>)
-518: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">file_save_as</span>
-519: <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/Editor/Gtk.html b/doc/classes/JSON/Editor/Gtk.html
deleted file mode 100644
index a700ee0..0000000
--- a/doc/classes/JSON/Editor/Gtk.html
+++ /dev/null
@@ -1,59 +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::Editor::Gtk</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::Editor::Gtk
-
- </h1>
- <ul class="files">
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">CLASS</span> <a href="Gtk/TreeIter.html">JSON::Editor::Gtk::TreeIter</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Editor/Gtk/TreeIter.html b/doc/classes/JSON/Editor/Gtk/TreeIter.html
deleted file mode 100644
index 58b312a..0000000
--- a/doc/classes/JSON/Editor/Gtk/TreeIter.html
+++ /dev/null
@@ -1,363 +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::Editor::Gtk::TreeIter</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::Editor::Gtk::TreeIter
-
- <span class="parent">&lt;
-
- <a href="../../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-The <a href="TreeIter.html">Gtk::TreeIter</a> class is reopened and some
-auxiliary methods are added.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-content">content</a>,</li>
-
- <li><a href="#method-i-content%3D">content=</a></li>
-
- </ul>
- </dd>
-
- <dt>E</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-each">each</a></li>
-
- </ul>
- </dd>
-
- <dt>R</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-recursive_each">recursive_each</a>,</li>
-
- <li><a href="#method-i-remove_subtree">remove_subtree</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-type">type</a>,</li>
-
- <li><a href="#method-i-type%3D">type=</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <a href="../../../Enumerable.html">Enumerable</a>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-content">
-
- <a name="method-i-content"></a><b>content</b>()
-
- </div>
-
- <div class="description">
- <p>
-Returns the content of this node.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-content_source')" id="l_method-i-content_source">show</a>
-
- </p>
- <div id="method-i-content_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 195</span>
-195: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span>
-196: <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">CONTENT_COL</span>]
-197: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-content%3D">
-
- <a name="method-i-content%3D"></a><b>content=</b>(value)
-
- </div>
-
- <div class="description">
- <p>
-Sets the content of this node to <em>value</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-content%3D_source')" id="l_method-i-content%3D_source">show</a>
-
- </p>
- <div id="method-i-content%3D_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 200</span>
-200: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content=</span>(<span class="ruby-identifier">value</span>)
-201: <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">CONTENT_COL</span>] = <span class="ruby-identifier">value</span>
-202: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-each">
-
- <a name="method-i-each"></a><b>each</b>()
-
- </div>
-
- <div class="description">
- <p>
-Traverse each of this <a href="TreeIter.html">Gtk::TreeIter</a>
-instance&#8217;s children and yield to them.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-each_source')" id="l_method-i-each_source">show</a>
-
- </p>
- <div id="method-i-each_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 161</span>
-161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
-162: <span class="ruby-identifier">n_children</span>.<span class="ruby-identifier">times</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">nth_child</span>(<span class="ruby-identifier">i</span>) }
-163: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-recursive_each">
-
- <a name="method-i-recursive_each"></a><b>recursive_each</b>(&amp;block)
-
- </div>
-
- <div class="description">
- <p>
-Recursively traverse all nodes of this Gtk::TreeIter&#8217;s subtree
-(including self) and yield to them.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-recursive_each_source')" id="l_method-i-recursive_each_source">show</a>
-
- </p>
- <div id="method-i-recursive_each_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 167</span>
-167: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_each</span>(&amp;<span class="ruby-identifier">block</span>)
-168: <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span>
-169: <span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-170: <span class="ruby-identifier">i</span>.<span class="ruby-identifier">recursive_each</span>(&amp;<span class="ruby-identifier">block</span>)
-171: <span class="ruby-keyword kw">end</span>
-172: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-remove_subtree">
-
- <a name="method-i-remove_subtree"></a><b>remove_subtree</b>(model)
-
- </div>
-
- <div class="description">
- <p>
-Remove the subtree of this <a href="TreeIter.html">Gtk::TreeIter</a>
-instance from the model <em>model</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-remove_subtree_source')" id="l_method-i-remove_subtree_source">show</a>
-
- </p>
- <div id="method-i-remove_subtree_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 176</span>
-176: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_subtree</span>(<span class="ruby-identifier">model</span>)
-177: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">first_child</span>
-178: <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>)
-179: <span class="ruby-keyword kw">end</span>
-180: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-type">
-
- <a name="method-i-type"></a><b>type</b>()
-
- </div>
-
- <div class="description">
- <p>
-Returns the type of this node.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-type_source')" id="l_method-i-type_source">show</a>
-
- </p>
- <div id="method-i-type_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 183</span>
-183: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span>
-184: <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">TYPE_COL</span>]
-185: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-type%3D">
-
- <a name="method-i-type%3D"></a><b>type=</b>(value)
-
- </div>
-
- <div class="description">
- <p>
-Sets the type of this node to <em>value</em>. This implies setting the
-respective icon accordingly.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-type%3D_source')" id="l_method-i-type%3D_source">show</a>
-
- </p>
- <div id="method-i-type%3D_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 189</span>
-189: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type=</span>(<span class="ruby-identifier">value</span>)
-190: <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">TYPE_COL</span>] = <span class="ruby-identifier">value</span>
-191: <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">ICON_COL</span>] = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">fetch_icon</span>(<span class="ruby-identifier">value</span>)
-192: <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/Editor/JSONTreeView.html b/doc/classes/JSON/Editor/JSONTreeView.html
deleted file mode 100644
index 95c13bb..0000000
--- a/doc/classes/JSON/Editor/JSONTreeView.html
+++ /dev/null
@@ -1,591 +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::Editor::JSONTreeView</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::Editor::JSONTreeView
-
- <span class="parent">&lt;
-
- Gtk::TreeView
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This class inherits from Gtk::TreeView, to configure it and to add a lot of
-behaviour to it.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-ask_for_element">ask_for_element</a>,</li>
-
- <li><a href="#method-i-ask_for_find_term">ask_for_find_term</a>,</li>
-
- <li><a href="#method-i-ask_for_hash_pair">ask_for_hash_pair</a>,</li>
-
- <li><a href="#method-i-ask_for_order">ask_for_order</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-create_node">create_node</a></li>
-
- </ul>
- </dd>
-
- <dt>E</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-expand_collapse">expand_collapse</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>Gtk</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>window</td>
- <td class='attr-desc'><p>
-Returns the <a href="MainWindow.html">MainWindow</a> instance of this <a
-href="JSONTreeView.html">JSONTreeView</a>.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [RW]
- </td>
- <td class='attr-name'>expanded</td>
- <td class='attr-desc'><p>
-Returns true, if nodes are autoexpanding, false otherwise.
-</p></td>
- </tr>
-
- </table>
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></a><b>new</b>(window)
-
- </div>
-
- <div class="description">
- <p>
-Creates a <a href="JSONTreeView.html">JSONTreeView</a> instance, the
-parameter <em>window</em> is a <a href="MainWindow.html">MainWindow</a>
-instance and used for self delegation.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 701</span>
-701: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>)
-702: <span class="ruby-ivar">@window</span> = <span class="ruby-identifier">window</span>
-703: <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">TreeStore</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Pixbuf</span>, <span class="ruby-constant">String</span>, <span class="ruby-constant">String</span>))
-704: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">selection</span>.<span class="ruby-identifier">mode</span> = <span class="ruby-constant">SELECTION_BROWSE</span>
-705:
-706: <span class="ruby-ivar">@expanded</span> = <span class="ruby-keyword kw">false</span>
-707: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">headers_visible</span> = <span class="ruby-keyword kw">false</span>
-708: <span class="ruby-identifier">add_columns</span>
-709: <span class="ruby-identifier">add_popup_menu</span>
-710: <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="method-i-ask_for_element">
-
- <a name="method-i-ask_for_element"></a><b>ask_for_element</b>(parent = nil, default_type = nil, value_text = @content)
-
- </div>
-
- <div class="description">
- <p>
-Ask for an element to be appended <em>parent</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ask_for_element_source')" id="l_method-i-ask_for_element_source">show</a>
-
- </p>
- <div id="method-i-ask_for_element_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 902</span>
-902: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_element</span>(<span class="ruby-identifier">parent</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">default_type</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value_text</span> = <span class="ruby-ivar">@content</span>)
-903: <span class="ruby-identifier">type_input</span> = <span class="ruby-identifier">value_input</span> = <span class="ruby-keyword kw">nil</span>
-904:
-905: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>(
-906: <span class="ruby-node">&quot;New element into #{parent ? parent.type : 'root'}&quot;</span>,
-907: <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>,
-908: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">OK</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span> ],
-909: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">CANCEL</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_REJECT</span> ]
-910: )
-911: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-912: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Type:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-913: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">type_input</span> = <span class="ruby-constant">ComboBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">true</span>))
-914: <span class="ruby-identifier">default_active</span> = <span class="ruby-value">0</span>
-915: <span class="ruby-identifier">types</span> = <span class="ruby-identifier">parent</span> <span class="ruby-operator">?</span> <span class="ruby-constant">ALL_TYPES</span> <span class="ruby-operator">:</span> <span class="ruby-constant">CONTAINER_TYPES</span>
-916: <span class="ruby-identifier">types</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">t</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-917: <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">append_text</span>(<span class="ruby-identifier">t</span>)
-918: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">t</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">default_type</span>
-919: <span class="ruby-identifier">default_active</span> = <span class="ruby-identifier">i</span>
-920: <span class="ruby-keyword kw">end</span>
-921: <span class="ruby-keyword kw">end</span>
-922: <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span> = <span class="ruby-identifier">default_active</span>
-923: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-924: <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:changed</span>) <span class="ruby-keyword kw">do</span>
-925: <span class="ruby-identifier">configure_value</span>(<span class="ruby-identifier">value_input</span>, <span class="ruby-identifier">types</span>[<span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span>])
-926: <span class="ruby-keyword kw">end</span>
-927:
-928: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-929: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Value:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-930: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">value_input</span> = <span class="ruby-constant">Entry</span>.<span class="ruby-identifier">new</span>)
-931: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span>
-932: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-identifier">value_text</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value_text</span>
-933: <span class="ruby-identifier">configure_value</span>(<span class="ruby-identifier">value_input</span>, <span class="ruby-identifier">types</span>[<span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span>])
-934:
-935: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-936:
-937: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'key-press-event'</span>, &amp;<span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>)
-938: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-939: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span>
-940: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
-941: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span>
-942: <span class="ruby-identifier">type</span> = <span class="ruby-identifier">types</span>[<span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span>]
-943: <span class="ruby-ivar">@content</span> = <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span>
-944: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Numeric'</span>
-945: <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">t</span> = <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'Infinity'</span>
-946: <span class="ruby-value">1</span> <span class="ruby-operator">/</span> <span class="ruby-value">0.0</span>
-947: <span class="ruby-keyword kw">else</span>
-948: <span class="ruby-constant">Integer</span>(<span class="ruby-identifier">t</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Float</span>(<span class="ruby-identifier">t</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-value">0</span>
-949: <span class="ruby-keyword kw">end</span>
-950: <span class="ruby-keyword kw">else</span>
-951: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span>
-952: <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">to_s</span>
-953: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">type</span>, <span class="ruby-ivar">@content</span>
-954: <span class="ruby-keyword kw">end</span>
-955: <span class="ruby-keyword kw">end</span>
-956: <span class="ruby-keyword kw">return</span>
-957: <span class="ruby-keyword kw">ensure</span>
-958: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dialog</span>
-959: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-ask_for_find_term">
-
- <a name="method-i-ask_for_find_term"></a><b>ask_for_find_term</b>(search = nil)
-
- </div>
-
- <div class="description">
- <p>
-Ask for a find term to search for in the tree. Returns the term as a
-string.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ask_for_find_term_source')" id="l_method-i-ask_for_find_term_source">show</a>
-
- </p>
- <div id="method-i-ask_for_find_term_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 997</span>
- 997: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_find_term</span>(<span class="ruby-identifier">search</span> = <span class="ruby-keyword kw">nil</span>)
- 998: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>(
- 999: <span class="ruby-value str">&quot;Find a node matching regex in tree.&quot;</span>,
-1000: <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>,
-1001: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">OK</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span> ],
-1002: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">CANCEL</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_REJECT</span> ]
-1003: )
-1004: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-1005:
-1006: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Regex:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-1007: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">regex_input</span> = <span class="ruby-constant">Entry</span>.<span class="ruby-identifier">new</span>)
-1008: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">icase_checkbox</span> = <span class="ruby-constant">CheckButton</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Icase'</span>), <span class="ruby-keyword kw">false</span>)
-1009: <span class="ruby-identifier">regex_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span>
-1010: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">search</span>
-1011: <span class="ruby-identifier">regex_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-identifier">search</span>.<span class="ruby-identifier">source</span>
-1012: <span class="ruby-identifier">icase_checkbox</span>.<span class="ruby-identifier">active</span> = <span class="ruby-identifier">search</span>.<span class="ruby-identifier">casefold?</span>
-1013: <span class="ruby-keyword kw">end</span>
-1014:
-1015: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-1016:
-1017: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'key-press-event'</span>, &amp;<span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>)
-1018: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-1019: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span>
-1020: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
-1021: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span>
-1022: <span class="ruby-keyword kw">begin</span>
-1023: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Regexp</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">regex_input</span>.<span class="ruby-identifier">text</span>, <span class="ruby-identifier">icase_checkbox</span>.<span class="ruby-identifier">active?</span> <span class="ruby-operator">?</span> <span class="ruby-constant">Regexp</span><span class="ruby-operator">::</span><span class="ruby-constant">IGNORECASE</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>)
-1024: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
-1025: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">&quot;Evaluation of regex /#{regex_input.text}/ failed: #{e}!&quot;</span>)
-1026: <span class="ruby-keyword kw">return</span>
-1027: <span class="ruby-keyword kw">end</span>
-1028: <span class="ruby-keyword kw">end</span>
-1029: <span class="ruby-keyword kw">end</span>
-1030: <span class="ruby-keyword kw">return</span>
-1031: <span class="ruby-keyword kw">ensure</span>
-1032: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dialog</span>
-1033: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-ask_for_hash_pair">
-
- <a name="method-i-ask_for_hash_pair"></a><b>ask_for_hash_pair</b>(parent)
-
- </div>
-
- <div class="description">
- <p>
-Ask for a hash key, value pair to be added to the Hash node
-<em>parent</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ask_for_hash_pair_source')" id="l_method-i-ask_for_hash_pair_source">show</a>
-
- </p>
- <div id="method-i-ask_for_hash_pair_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 831</span>
-831: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_hash_pair</span>(<span class="ruby-identifier">parent</span>)
-832: <span class="ruby-identifier">key_input</span> = <span class="ruby-identifier">type_input</span> = <span class="ruby-identifier">value_input</span> = <span class="ruby-keyword kw">nil</span>
-833:
-834: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;New (key, value) pair for Hash&quot;</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>,
-835: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">OK</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span> ],
-836: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">CANCEL</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_REJECT</span> ]
-837: )
-838: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">width_request</span> = <span class="ruby-value">640</span>
-839:
-840: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-841: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Key:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-842: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">key_input</span> = <span class="ruby-constant">Entry</span>.<span class="ruby-identifier">new</span>)
-843: <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-ivar">@key</span> <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>
-844: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-845: <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:activate</span>) <span class="ruby-keyword kw">do</span>
-846: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">content</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">text</span> }
-847: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">'Key already exists in Hash!'</span>)
-848: <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">''</span>
-849: <span class="ruby-keyword kw">else</span>
-850: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">'Key has been changed.'</span>)
-851: <span class="ruby-keyword kw">end</span>
-852: <span class="ruby-keyword kw">end</span>
-853:
-854: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-855: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Type:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-856: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">type_input</span> = <span class="ruby-constant">ComboBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">true</span>))
-857: <span class="ruby-constant">ALL_TYPES</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">t</span><span class="ruby-operator">|</span> <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">append_text</span>(<span class="ruby-identifier">t</span>) }
-858: <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span> = <span class="ruby-ivar">@type</span> <span class="ruby-operator">||</span> <span class="ruby-value">0</span>
-859: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-860:
-861: <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:changed</span>) <span class="ruby-keyword kw">do</span>
-862: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">editable</span> = <span class="ruby-keyword kw">false</span>
-863: <span class="ruby-keyword kw">case</span> <span class="ruby-constant">ALL_TYPES</span>[<span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span>]
-864: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span>, <span class="ruby-value str">'Hash'</span>
-865: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">''</span>
-866: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'TrueClass'</span>
-867: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">'true'</span>
-868: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FalseClass'</span>
-869: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">'false'</span>
-870: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'NilClass'</span>
-871: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">'null'</span>
-872: <span class="ruby-keyword kw">else</span>
-873: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">''</span>
-874: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">editable</span> = <span class="ruby-keyword kw">true</span>
-875: <span class="ruby-keyword kw">end</span>
-876: <span class="ruby-keyword kw">end</span>
-877:
-878: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-879: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Value:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-880: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">value_input</span> = <span class="ruby-constant">Entry</span>.<span class="ruby-identifier">new</span>)
-881: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span>
-882: <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-ivar">@value</span> <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>
-883: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-884:
-885: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'key-press-event'</span>, &amp;<span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>)
-886: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-887: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span>
-888: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
-889: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span>
-890: <span class="ruby-ivar">@key</span> = <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">text</span>
-891: <span class="ruby-identifier">type</span> = <span class="ruby-constant">ALL_TYPES</span>[<span class="ruby-ivar">@type</span> = <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span>]
-892: <span class="ruby-identifier">content</span> = <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span>
-893: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@key</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>
-894: <span class="ruby-keyword kw">end</span>
-895: <span class="ruby-keyword kw">end</span>
-896: <span class="ruby-keyword kw">return</span>
-897: <span class="ruby-keyword kw">ensure</span>
-898: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span>
-899: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-ask_for_order">
-
- <a name="method-i-ask_for_order"></a><b>ask_for_order</b>()
-
- </div>
-
- <div class="description">
- <p>
-Ask for an order criteria for sorting, using <em>x</em> for the element in
-question. Returns the order criterium, and true/false for reverse sorting.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ask_for_order_source')" id="l_method-i-ask_for_order_source">show</a>
-
- </p>
- <div id="method-i-ask_for_order_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 964</span>
-964: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_order</span>
-965: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>(
-966: <span class="ruby-value str">&quot;Give an order criterium for 'x'.&quot;</span>,
-967: <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>,
-968: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">OK</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span> ],
-969: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">CANCEL</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_REJECT</span> ]
-970: )
-971: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-972:
-973: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Order:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-974: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">order_input</span> = <span class="ruby-constant">Entry</span>.<span class="ruby-identifier">new</span>)
-975: <span class="ruby-identifier">order_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-ivar">@order</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'x'</span>
-976: <span class="ruby-identifier">order_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span>
-977:
-978: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">reverse_checkbox</span> = <span class="ruby-constant">CheckButton</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Reverse'</span>), <span class="ruby-keyword kw">false</span>)
-979:
-980: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-981:
-982: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'key-press-event'</span>, &amp;<span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>)
-983: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-984: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span>
-985: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
-986: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span>
-987: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@order</span> = <span class="ruby-identifier">order_input</span>.<span class="ruby-identifier">text</span>, <span class="ruby-identifier">reverse_checkbox</span>.<span class="ruby-identifier">active?</span>
-988: <span class="ruby-keyword kw">end</span>
-989: <span class="ruby-keyword kw">end</span>
-990: <span class="ruby-keyword kw">return</span>
-991: <span class="ruby-keyword kw">ensure</span>
-992: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dialog</span>
-993: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-create_node">
-
- <a name="method-i-create_node"></a><b>create_node</b>(parent, type, content)
-
- </div>
-
- <div class="description">
- <p>
-Create a <em>type</em> node with content <em>content</em>, and add it to
-<em>parent</em> in the model. If <em>parent</em> is nil, create a new model
-and put it into the editor treeview.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_node_source')" id="l_method-i-create_node_source">show</a>
-
- </p>
- <div id="method-i-create_node_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 817</span>
-817: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_node</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>)
-818: <span class="ruby-identifier">iter</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
-819: <span class="ruby-identifier">model</span>.<span class="ruby-identifier">append</span>(<span class="ruby-identifier">parent</span>)
-820: <span class="ruby-keyword kw">else</span>
-821: <span class="ruby-identifier">new_model</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-keyword kw">nil</span>)
-822: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">view_new_model</span>(<span class="ruby-identifier">new_model</span>)
-823: <span class="ruby-identifier">new_model</span>.<span class="ruby-identifier">iter_first</span>
-824: <span class="ruby-keyword kw">end</span>
-825: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span>, <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>
-826: <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">parent</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
-827: <span class="ruby-identifier">iter</span>
-828: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-expand_collapse">
-
- <a name="method-i-expand_collapse"></a><b>expand_collapse</b>(iter)
-
- </div>
-
- <div class="description">
- <p>
-Expand or collapse row pointed to by <em>iter</em> according to the #
-attribute.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-expand_collapse_source')" id="l_method-i-expand_collapse_source">show</a>
-
- </p>
- <div id="method-i-expand_collapse_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1037</span>
-1037: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">iter</span>)
-1038: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expanded</span>
-1039: <span class="ruby-identifier">expand_row</span>(<span class="ruby-identifier">iter</span>.<span class="ruby-identifier">path</span>, <span class="ruby-keyword kw">true</span>)
-1040: <span class="ruby-keyword kw">else</span>
-1041: <span class="ruby-identifier">collapse_row</span>(<span class="ruby-identifier">iter</span>.<span class="ruby-identifier">path</span>)
-1042: <span class="ruby-keyword kw">end</span>
-1043: <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/Editor/MainWindow.html b/doc/classes/JSON/Editor/MainWindow.html
deleted file mode 100644
index d459c9f..0000000
--- a/doc/classes/JSON/Editor/MainWindow.html
+++ /dev/null
@@ -1,1062 +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::Editor::MainWindow</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::Editor::MainWindow
-
- <span class="parent">&lt;
-
- Gtk::Window
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-The editor main window
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-ask_for_location">ask_for_location</a>,</li>
-
- <li><a href="#method-i-ask_save">ask_save</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-change">change</a>,</li>
-
- <li><a href="#method-i-clear">clear</a>,</li>
-
- <li><a href="#method-i-create_menu_bar">create_menu_bar</a></li>
-
- </ul>
- </dd>
-
- <dt>D</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-display_status">display_status</a>,</li>
-
- <li><a href="#method-i-display_title">display_title</a></li>
-
- </ul>
- </dd>
-
- <dt>E</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-edit">edit</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-file_open">file_open</a>,</li>
-
- <li><a href="#method-i-file_save">file_save</a>,</li>
-
- <li><a href="#method-i-file_save_as">file_save_as</a></li>
-
- </ul>
- </dd>
-
- <dt>L</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-load_file">load_file</a>,</li>
-
- <li><a href="#method-i-load_location">load_location</a>,</li>
-
- <li><a href="#method-i-location_open">location_open</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- <dt>Q</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-quit">quit</a></li>
-
- </ul>
- </dd>
-
- <dt>R</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-read_data">read_data</a></li>
-
- </ul>
- </dd>
-
- <dt>S</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-select_file">select_file</a>,</li>
-
- <li><a href="#method-i-store_file">store_file</a></li>
-
- </ul>
- </dd>
-
- <dt>U</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-unchange">unchange</a></li>
-
- </ul>
- </dd>
-
- <dt>V</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-view_new_model">view_new_model</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>Gtk</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></a><b>new</b>(encoding)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1050</span>
-1050: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">encoding</span>)
-1051: <span class="ruby-ivar">@changed</span> = <span class="ruby-keyword kw">false</span>
-1052: <span class="ruby-ivar">@encoding</span> = <span class="ruby-identifier">encoding</span>
-1053: <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">TOPLEVEL</span>)
-1054: <span class="ruby-identifier">display_title</span>
-1055: <span class="ruby-identifier">set_default_size</span>(<span class="ruby-value">800</span>, <span class="ruby-value">600</span>)
-1056: <span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:delete_event</span>) { <span class="ruby-identifier">quit</span> }
-1057:
-1058: <span class="ruby-identifier">vbox</span> = <span class="ruby-constant">VBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">0</span>)
-1059: <span class="ruby-identifier">add</span>(<span class="ruby-identifier">vbox</span>)
-1060: <span class="ruby-comment cmt">#vbox.border_width = 0</span>
-1061:
-1062: <span class="ruby-ivar">@treeview</span> = <span class="ruby-constant">JSONTreeView</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>)
-1063: <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'cursor-changed'</span>) <span class="ruby-keyword kw">do</span>
-1064: <span class="ruby-identifier">display_status</span>(<span class="ruby-value str">''</span>)
-1065: <span class="ruby-keyword kw">end</span>
-1066:
-1067: <span class="ruby-identifier">menu_bar</span> = <span class="ruby-identifier">create_menu_bar</span>
-1068: <span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">menu_bar</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-value">0</span>)
-1069:
-1070: <span class="ruby-identifier">sw</span> = <span class="ruby-constant">ScrolledWindow</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>)
-1071: <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">shadow_type</span> = <span class="ruby-constant">SHADOW_ETCHED_IN</span>
-1072: <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">set_policy</span>(<span class="ruby-constant">POLICY_AUTOMATIC</span>, <span class="ruby-constant">POLICY_AUTOMATIC</span>)
-1073: <span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">sw</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-keyword kw">true</span>, <span class="ruby-value">0</span>)
-1074: <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">add</span>(<span class="ruby-ivar">@treeview</span>)
-1075:
-1076: <span class="ruby-ivar">@status_bar</span> = <span class="ruby-constant">Statusbar</span>.<span class="ruby-identifier">new</span>
-1077: <span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-ivar">@status_bar</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-keyword kw">false</span>, <span class="ruby-value">0</span>)
-1078:
-1079: <span class="ruby-ivar">@filename</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">nil</span>
-1080: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span>
-1081: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">read_data</span>(<span class="ruby-ivar">@filename</span>)
-1082: <span class="ruby-identifier">view_new_model</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">data</span>)
-1083: <span class="ruby-keyword kw">end</span>
-1084:
-1085: <span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:button_release_event</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">_</span>,<span class="ruby-identifier">event</span><span class="ruby-operator">|</span>
-1086: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">event</span>.<span class="ruby-identifier">button</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>
-1087: <span class="ruby-identifier">c</span> = <span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Clipboard</span>.<span class="ruby-identifier">get</span>(<span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Selection</span><span class="ruby-operator">::</span><span class="ruby-constant">PRIMARY</span>)
-1088: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span> = <span class="ruby-identifier">c</span>.<span class="ruby-identifier">wait_for_text</span>
-1089: <span class="ruby-identifier">location_open</span> <span class="ruby-identifier">url</span>
-1090: <span class="ruby-keyword kw">end</span>
-1091: <span class="ruby-keyword kw">false</span>
-1092: <span class="ruby-keyword kw">else</span>
-1093: <span class="ruby-keyword kw">true</span>
-1094: <span class="ruby-keyword kw">end</span>
-1095: <span class="ruby-keyword kw">end</span>
-1096: <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="method-i-ask_for_location">
-
- <a name="method-i-ask_for_location"></a><b>ask_for_location</b>()
-
- </div>
-
- <div class="description">
- <p>
-Ask for location URI a to load data from. Returns the URI as a string.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ask_for_location_source')" id="l_method-i-ask_for_location_source">show</a>
-
- </p>
- <div id="method-i-ask_for_location_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1320</span>
-1320: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_location</span>
-1321: <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>(
-1322: <span class="ruby-value str">&quot;Load data from location...&quot;</span>,
-1323: <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>,
-1324: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">OK</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span> ],
-1325: [ <span class="ruby-constant">Stock</span><span class="ruby-operator">::</span><span class="ruby-constant">CANCEL</span>, <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_REJECT</span> ]
-1326: )
-1327: <span class="ruby-identifier">hbox</span> = <span class="ruby-constant">HBox</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">false</span>, <span class="ruby-value">5</span>)
-1328:
-1329: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-constant">Label</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;Location:&quot;</span>), <span class="ruby-keyword kw">false</span>)
-1330: <span class="ruby-identifier">hbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">location_input</span> = <span class="ruby-constant">Entry</span>.<span class="ruby-identifier">new</span>)
-1331: <span class="ruby-identifier">location_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span>
-1332: <span class="ruby-identifier">location_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-ivar">@location</span> <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>
-1333:
-1334: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">vbox</span>.<span class="ruby-identifier">pack_start</span>(<span class="ruby-identifier">hbox</span>, <span class="ruby-keyword kw">false</span>)
-1335:
-1336: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'key-press-event'</span>, &amp;<span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>)
-1337: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span>
-1338: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">response</span><span class="ruby-operator">|</span>
-1339: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Dialog</span><span class="ruby-operator">::</span><span class="ruby-constant">RESPONSE_ACCEPT</span>
-1340: <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@location</span> = <span class="ruby-identifier">location_input</span>.<span class="ruby-identifier">text</span>
-1341: <span class="ruby-keyword kw">end</span>
-1342: <span class="ruby-keyword kw">end</span>
-1343: <span class="ruby-keyword kw">return</span>
-1344: <span class="ruby-keyword kw">ensure</span>
-1345: <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">dialog</span>
-1346: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-ask_save">
-
- <a name="method-i-ask_save"></a><b>ask_save</b>()
-
- </div>
-
- <div class="description">
- <p>
-Opens a dialog, asking, if changes should be saved to a file.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ask_save_source')" id="l_method-i-ask_save_source">show</a>
-
- </p>
- <div id="method-i-ask_save_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1141</span>
-1141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_save</span>
-1142: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">question_dialog</span>(<span class="ruby-keyword kw">self</span>,
-1143: <span class="ruby-value str">&quot;Unsaved changes to JSON model. Save?&quot;</span>)
-1144: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span>
-1145: <span class="ruby-identifier">file_save</span>
-1146: <span class="ruby-keyword kw">else</span>
-1147: <span class="ruby-identifier">file_save_as</span>
-1148: <span class="ruby-keyword kw">end</span>
-1149: <span class="ruby-keyword kw">end</span>
-1150: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-change">
-
- <a name="method-i-change"></a><b>change</b>()
-
- </div>
-
- <div class="description">
- <p>
-Sets editor status to changed, to indicate that the edited data containts
-unsaved changes.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-change_source')" id="l_method-i-change_source">show</a>
-
- </p>
- <div id="method-i-change_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1112</span>
-1112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span>
-1113: <span class="ruby-ivar">@changed</span> = <span class="ruby-keyword kw">true</span>
-1114: <span class="ruby-identifier">display_title</span>
-1115: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-clear">
-
- <a name="method-i-clear"></a><b>clear</b>()
-
- </div>
-
- <div class="description">
- <p>
-Clear the current model, after asking to save all unsaved changes.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-clear_source')" id="l_method-i-clear_source">show</a>
-
- </p>
- <div id="method-i-clear_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1171</span>
-1171: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span>
-1172: <span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span>
-1173: <span class="ruby-ivar">@filename</span> = <span class="ruby-keyword kw">nil</span>
-1174: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">view_new_model</span> <span class="ruby-keyword kw">nil</span>
-1175: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-create_menu_bar">
-
- <a name="method-i-create_menu_bar"></a><b>create_menu_bar</b>()
-
- </div>
-
- <div class="description">
- <p>
-Creates the menu bar with the pulldown menus and returns it.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_menu_bar_source')" id="l_method-i-create_menu_bar_source">show</a>
-
- </p>
- <div id="method-i-create_menu_bar_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1099</span>
-1099: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_menu_bar</span>
-1100: <span class="ruby-identifier">menu_bar</span> = <span class="ruby-constant">MenuBar</span>.<span class="ruby-identifier">new</span>
-1101: <span class="ruby-ivar">@file_menu</span> = <span class="ruby-constant">FileMenu</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@treeview</span>)
-1102: <span class="ruby-identifier">menu_bar</span>.<span class="ruby-identifier">append</span> <span class="ruby-ivar">@file_menu</span>.<span class="ruby-identifier">create</span>
-1103: <span class="ruby-ivar">@edit_menu</span> = <span class="ruby-constant">EditMenu</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@treeview</span>)
-1104: <span class="ruby-identifier">menu_bar</span>.<span class="ruby-identifier">append</span> <span class="ruby-ivar">@edit_menu</span>.<span class="ruby-identifier">create</span>
-1105: <span class="ruby-ivar">@options_menu</span> = <span class="ruby-constant">OptionsMenu</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@treeview</span>)
-1106: <span class="ruby-identifier">menu_bar</span>.<span class="ruby-identifier">append</span> <span class="ruby-ivar">@options_menu</span>.<span class="ruby-identifier">create</span>
-1107: <span class="ruby-identifier">menu_bar</span>
-1108: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-display_status">
-
- <a name="method-i-display_status"></a><b>display_status</b>(text)
-
- </div>
-
- <div class="description">
- <p>
-Displays <em>text</em> in the status bar.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-display_status_source')" id="l_method-i-display_status_source">show</a>
-
- </p>
- <div id="method-i-display_status_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1133</span>
-1133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display_status</span>(<span class="ruby-identifier">text</span>)
-1134: <span class="ruby-ivar">@cid</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">nil</span>
-1135: <span class="ruby-ivar">@status_bar</span>.<span class="ruby-identifier">pop</span>(<span class="ruby-ivar">@cid</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@cid</span>
-1136: <span class="ruby-ivar">@cid</span> = <span class="ruby-ivar">@status_bar</span>.<span class="ruby-identifier">get_context_id</span>(<span class="ruby-value str">'dummy'</span>)
-1137: <span class="ruby-ivar">@status_bar</span>.<span class="ruby-identifier">push</span>(<span class="ruby-ivar">@cid</span>, <span class="ruby-identifier">text</span>)
-1138: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-display_title">
-
- <a name="method-i-display_title"></a><b>display_title</b>()
-
- </div>
-
- <div class="description">
- <p>
-Display the new title according to the editor&#8217;s current state.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-display_title_source')" id="l_method-i-display_title_source">show</a>
-
- </p>
- <div id="method-i-display_title_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1163</span>
-1163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display_title</span>
-1164: <span class="ruby-identifier">title</span> = <span class="ruby-constant">TITLE</span>.<span class="ruby-identifier">dup</span>
-1165: <span class="ruby-identifier">title</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;: #@filename&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span>
-1166: <span class="ruby-identifier">title</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; *&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span>
-1167: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span>
-1168: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-edit">
-
- <a name="method-i-edit"></a><b>edit</b>(json)
-
- </div>
-
- <div class="description">
- <p>
-Edit the string <em>json</em> in the editor.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-edit_source')" id="l_method-i-edit_source">show</a>
-
- </p>
- <div id="method-i-edit_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1202</span>
-1202: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>(<span class="ruby-identifier">json</span>)
-1203: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">json</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:read</span>
-1204: <span class="ruby-identifier">json</span> = <span class="ruby-identifier">json</span>.<span class="ruby-identifier">read</span>
-1205: <span class="ruby-keyword kw">end</span>
-1206: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">parse_json</span> <span class="ruby-identifier">json</span>
-1207: <span class="ruby-identifier">view_new_model</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">data</span>)
-1208: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-file_open">
-
- <a name="method-i-file_open"></a><b>file_open</b>(filename = nil)
-
- </div>
-
- <div class="description">
- <p>
-Open the file <em>filename</em> or call the <a
-href="MainWindow.html#method-i-select_file">#</a> method to ask for a
-filename.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-file_open_source')" id="l_method-i-file_open_source">show</a>
-
- </p>
- <div id="method-i-file_open_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1195</span>
-1195: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_open</span>(<span class="ruby-identifier">filename</span> = <span class="ruby-keyword kw">nil</span>)
-1196: <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">select_file</span>(<span class="ruby-value str">'Open as a JSON file'</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">filename</span>
-1197: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-1198: <span class="ruby-identifier">view_new_model</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">data</span>)
-1199: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-file_save">
-
- <a name="method-i-file_save"></a><b>file_save</b>()
-
- </div>
-
- <div class="description">
- <p>
-Save the current file.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-file_save_source')" id="l_method-i-file_save_source">show</a>
-
- </p>
- <div id="method-i-file_save_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1211</span>
-1211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_save</span>
-1212: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span>
-1213: <span class="ruby-identifier">store_file</span>(<span class="ruby-ivar">@filename</span>)
-1214: <span class="ruby-keyword kw">else</span>
-1215: <span class="ruby-identifier">file_save_as</span>
-1216: <span class="ruby-keyword kw">end</span>
-1217: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-file_save_as">
-
- <a name="method-i-file_save_as"></a><b>file_save_as</b>()
-
- </div>
-
- <div class="description">
- <p>
-Save the current file as the filename
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-file_save_as_source')" id="l_method-i-file_save_as_source">show</a>
-
- </p>
- <div id="method-i-file_save_as_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1220</span>
-1220: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_save_as</span>
-1221: <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">select_file</span>(<span class="ruby-value str">'Save as a JSON file'</span>)
-1222: <span class="ruby-identifier">store_file</span>(<span class="ruby-identifier">filename</span>)
-1223: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-load_file">
-
- <a name="method-i-load_file"></a><b>load_file</b>(filename)
-
- </div>
-
- <div class="description">
- <p>
-Load the file named <em>filename</em> into the editor as a <a
-href="../../JSON.html">JSON</a> document.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-load_file_source')" id="l_method-i-load_file_source">show</a>
-
- </p>
- <div id="method-i-load_file_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1247</span>
-1247: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">filename</span>)
-1248: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span>
-1249: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">filename</span>)
-1250: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-value str">&quot;Try to select a JSON file!&quot;</span>)
-1251: <span class="ruby-keyword kw">nil</span>
-1252: <span class="ruby-keyword kw">else</span>
-1253: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
-1254: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span> = <span class="ruby-identifier">read_data</span>(<span class="ruby-identifier">filename</span>)
-1255: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">&quot;Loaded data from '#@filename'.&quot;</span>)
-1256: <span class="ruby-keyword kw">end</span>
-1257: <span class="ruby-identifier">display_title</span>
-1258: <span class="ruby-identifier">data</span>
-1259: <span class="ruby-keyword kw">end</span>
-1260: <span class="ruby-keyword kw">end</span>
-1261: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-load_location">
-
- <a name="method-i-load_location"></a><b>load_location</b>(uri)
-
- </div>
-
- <div class="description">
- <p>
-Load the data at location <em>uri</em> into the editor as a <a
-href="../../JSON.html">JSON</a> document.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-load_location_source')" id="l_method-i-load_location_source">show</a>
-
- </p>
- <div id="method-i-load_location_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1264</span>
-1264: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_location</span>(<span class="ruby-identifier">uri</span>)
-1265: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">read_data</span>(<span class="ruby-identifier">uri</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-1266: <span class="ruby-ivar">@filename</span> = <span class="ruby-keyword kw">nil</span>
-1267: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">&quot;Loaded data from '#{uri}'.&quot;</span>)
-1268: <span class="ruby-identifier">display_title</span>
-1269: <span class="ruby-identifier">data</span>
-1270: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-location_open">
-
- <a name="method-i-location_open"></a><b>location_open</b>(uri = nil)
-
- </div>
-
- <div class="description">
- <p>
-Open the data at the location <em>uri</em>, if given. Otherwise open a
-dialog to ask for the <em>uri</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-location_open_source')" id="l_method-i-location_open_source">show</a>
-
- </p>
- <div id="method-i-location_open_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1185</span>
-1185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">location_open</span>(<span class="ruby-identifier">uri</span> = <span class="ruby-keyword kw">nil</span>)
-1186: <span class="ruby-identifier">uri</span> = <span class="ruby-identifier">ask_for_location</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">uri</span>
-1187: <span class="ruby-identifier">uri</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-1188: <span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span>
-1189: <span class="ruby-identifier">data</span> = <span class="ruby-identifier">load_location</span>(<span class="ruby-identifier">uri</span>) <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-1190: <span class="ruby-identifier">view_new_model</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">data</span>)
-1191: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-quit">
-
- <a name="method-i-quit"></a><b>quit</b>()
-
- </div>
-
- <div class="description">
- <p>
-Quit this editor, that is, leave this editor&#8217;s main loop.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-quit_source')" id="l_method-i-quit_source">show</a>
-
- </p>
- <div id="method-i-quit_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1153</span>
-1153: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quit</span>
-1154: <span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span>
-1155: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_level</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
-1156: <span class="ruby-identifier">destroy</span>
-1157: <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span>
-1158: <span class="ruby-keyword kw">end</span>
-1159: <span class="ruby-keyword kw">nil</span>
-1160: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-read_data">
-
- <a name="method-i-read_data"></a><b>read_data</b>(filename)
-
- </div>
-
- <div class="description">
- <p>
-Read a <a href="../../JSON.html">JSON</a> document from the file named
-<em>filename</em>, parse it into a ruby data structure, and return the
-data.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-read_data_source')" id="l_method-i-read_data_source">show</a>
-
- </p>
- <div id="method-i-read_data_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1284</span>
-1284: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_data</span>(<span class="ruby-identifier">filename</span>)
-1285: <span class="ruby-identifier">open</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
-1286: <span class="ruby-identifier">json</span> = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span>
-1287: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">parse_json</span>(<span class="ruby-identifier">json</span>)
-1288: <span class="ruby-keyword kw">end</span>
-1289: <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
-1290: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">&quot;Failed to parse JSON file: #{e}!&quot;</span>)
-1291: <span class="ruby-keyword kw">return</span>
-1292: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-select_file">
-
- <a name="method-i-select_file"></a><b>select_file</b>(message)
-
- </div>
-
- <div class="description">
- <p>
-Open a file selecton dialog, displaying <em>message</em>, and return the
-selected filename or nil, if no file was selected.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-select_file_source')" id="l_method-i-select_file_source">show</a>
-
- </p>
- <div id="method-i-select_file_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1296</span>
-1296: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_file</span>(<span class="ruby-identifier">message</span>)
-1297: <span class="ruby-identifier">filename</span> = <span class="ruby-keyword kw">nil</span>
-1298: <span class="ruby-identifier">fs</span> = <span class="ruby-constant">FileSelection</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">message</span>)
-1299: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">set_modal</span>(<span class="ruby-keyword kw">true</span>)
-1300: <span class="ruby-ivar">@default_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">pwd</span>, <span class="ruby-value str">''</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@default_dir</span>
-1301: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">set_filename</span>(<span class="ruby-ivar">@default_dir</span>)
-1302: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">set_transient_for</span>(<span class="ruby-keyword kw">self</span>)
-1303: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:destroy</span>) { <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span> }
-1304: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">ok_button</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:clicked</span>) <span class="ruby-keyword kw">do</span>
-1305: <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">filename</span>
-1306: <span class="ruby-ivar">@default_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">filename</span>), <span class="ruby-value str">''</span>)
-1307: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">destroy</span>
-1308: <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span>
-1309: <span class="ruby-keyword kw">end</span>
-1310: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">cancel_button</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:clicked</span>) <span class="ruby-keyword kw">do</span>
-1311: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">destroy</span>
-1312: <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span>
-1313: <span class="ruby-keyword kw">end</span>
-1314: <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">show_all</span>
-1315: <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main</span>
-1316: <span class="ruby-identifier">filename</span>
-1317: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-store_file">
-
- <a name="method-i-store_file"></a><b>store_file</b>(path)
-
- </div>
-
- <div class="description">
- <p>
-Store the current <a href="../../JSON.html">JSON</a> document to
-<em>path</em>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-store_file_source')" id="l_method-i-store_file_source">show</a>
-
- </p>
- <div id="method-i-store_file_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1226</span>
-1226: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_file</span>(<span class="ruby-identifier">path</span>)
-1227: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span>
-1228: <span class="ruby-identifier">data</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">iter_first</span>)
-1229: <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.tmp'</span>, <span class="ruby-value str">'wb'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">output</span><span class="ruby-operator">|</span>
-1230: <span class="ruby-identifier">data</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">break</span>
-1231: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@options_menu</span>.<span class="ruby-identifier">pretty_item</span>.<span class="ruby-identifier">active?</span>
-1232: <span class="ruby-identifier">output</span>.<span class="ruby-identifier">puts</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">data</span>, <span class="ruby-value">:max_nesting</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
-1233: <span class="ruby-keyword kw">else</span>
-1234: <span class="ruby-identifier">output</span>.<span class="ruby-identifier">write</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">data</span>, <span class="ruby-value">:max_nesting</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
-1235: <span class="ruby-keyword kw">end</span>
-1236: <span class="ruby-keyword kw">end</span>
-1237: <span class="ruby-constant">File</span>.<span class="ruby-identifier">rename</span> <span class="ruby-identifier">path</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'.tmp'</span>, <span class="ruby-identifier">path</span>
-1238: <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">path</span>
-1239: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">&quot;Saved data to '#@filename'.&quot;</span>)
-1240: <span class="ruby-identifier">unchange</span>
-1241: <span class="ruby-keyword kw">end</span>
-1242: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SystemCallError</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">e</span>
-1243: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">&quot;Failed to store JSON file: #{e}!&quot;</span>)
-1244: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-unchange">
-
- <a name="method-i-unchange"></a><b>unchange</b>()
-
- </div>
-
- <div class="description">
- <p>
-Sets editor status to unchanged, to indicate that the edited data
-doesn&#8217;t containt unsaved changes.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-unchange_source')" id="l_method-i-unchange_source">show</a>
-
- </p>
- <div id="method-i-unchange_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1119</span>
-1119: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unchange</span>
-1120: <span class="ruby-ivar">@changed</span> = <span class="ruby-keyword kw">false</span>
-1121: <span class="ruby-identifier">display_title</span>
-1122: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-view_new_model">
-
- <a name="method-i-view_new_model"></a><b>view_new_model</b>(model)
-
- </div>
-
- <div class="description">
- <p>
-Puts a new model <em>model</em> into the Gtk::TreeView to be edited.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-view_new_model_source')" id="l_method-i-view_new_model_source">show</a>
-
- </p>
- <div id="method-i-view_new_model_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 1125</span>
-1125: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">view_new_model</span>(<span class="ruby-identifier">model</span>)
-1126: <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">model</span> = <span class="ruby-identifier">model</span>
-1127: <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">expanded</span> = <span class="ruby-keyword kw">true</span>
-1128: <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">expand_all</span>
-1129: <span class="ruby-identifier">unchange</span>
-1130: <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/Editor/MenuExtension.html b/doc/classes/JSON/Editor/MenuExtension.html
deleted file mode 100644
index 1db00ea..0000000
--- a/doc/classes/JSON/Editor/MenuExtension.html
+++ /dev/null
@@ -1,318 +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::Editor::MenuExtension</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::Editor::MenuExtension
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This module bundles some method, that can be used to create a menu. It
-should be included into the class in question.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-add_item">add_item</a>,</li>
-
- <li><a href="#method-i-add_separator">add_separator</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-create">create</a></li>
-
- </ul>
- </dd>
-
- <dt>M</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-method_missing">method_missing</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>Gtk</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>treeview</td>
- <td class='attr-desc'><p>
-Returns the Gtk::TreeView of this menu.
-</p></td>
- </tr>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>menu</td>
- <td class='attr-desc'><p>
-Returns the menu.
-</p></td>
- </tr>
-
- </table>
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></a><b>new</b>(treeview)
-
- </div>
-
- <div class="description">
- <p>
-Creates a Menu, that includes <a
-href="MenuExtension.html">MenuExtension</a>. <em>treeview</em> is the
-Gtk::TreeView, on which it operates.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 212</span>
-212: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">treeview</span>)
-213: <span class="ruby-ivar">@treeview</span> = <span class="ruby-identifier">treeview</span>
-214: <span class="ruby-ivar">@menu</span> = <span class="ruby-constant">Menu</span>.<span class="ruby-identifier">new</span>
-215: <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="method-i-add_item">
-
- <a name="method-i-add_item"></a><b>add_item</b>(label, keyval = nil, klass = MenuItem, &amp;callback)
-
- </div>
-
- <div class="description">
- <p>
-Adds a Gtk::MenuItem to this instance&#8217;s #. <em>label</em> is the
-label string, <em>klass</em> is the item type, and <em>callback</em> is the
-procedure, that is called if the <em>item</em> is activated.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-add_item_source')" id="l_method-i-add_item_source">show</a>
-
- </p>
- <div id="method-i-add_item_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 231</span>
-231: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_item</span>(<span class="ruby-identifier">label</span>, <span class="ruby-identifier">keyval</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">klass</span> = <span class="ruby-constant">MenuItem</span>, &amp;<span class="ruby-identifier">callback</span>)
-232: <span class="ruby-identifier">label</span> = <span class="ruby-node">&quot;#{label} (C-#{keyval.chr})&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keyval</span>
-233: <span class="ruby-identifier">item</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">label</span>)
-234: <span class="ruby-identifier">item</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:activate</span>, &amp;<span class="ruby-identifier">callback</span>)
-235: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keyval</span>
-236: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:'key-press-event'</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">item</span>, <span class="ruby-identifier">event</span><span class="ruby-operator">|</span>
-237: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">event</span>.<span class="ruby-identifier">state</span> &amp; <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Window</span><span class="ruby-operator">::</span><span class="ruby-constant">ModifierType</span><span class="ruby-operator">::</span><span class="ruby-constant">CONTROL_MASK</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-keyword kw">and</span>
-238: <span class="ruby-identifier">event</span>.<span class="ruby-identifier">keyval</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">keyval</span>
-239: <span class="ruby-identifier">callback</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">item</span>
-240: <span class="ruby-keyword kw">end</span>
-241: <span class="ruby-keyword kw">end</span>
-242: <span class="ruby-keyword kw">end</span>
-243: <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">append</span> <span class="ruby-identifier">item</span>
-244: <span class="ruby-identifier">item</span>
-245: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-add_separator">
-
- <a name="method-i-add_separator"></a><b>add_separator</b>()
-
- </div>
-
- <div class="description">
- <p>
-Adds a Gtk::SeparatorMenuItem to this instance&#8217;s #.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-add_separator_source')" id="l_method-i-add_separator_source">show</a>
-
- </p>
- <div id="method-i-add_separator_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 224</span>
-224: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_separator</span>
-225: <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">append</span> <span class="ruby-constant">SeparatorMenuItem</span>.<span class="ruby-identifier">new</span>
-226: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-create">
-
- <a name="method-i-create"></a><b>create</b>()
-
- </div>
-
- <div class="description">
- <p>
-This method should be implemented in subclasses to create the # of this
-instance. It has to be called after an instance of this class is created,
-to build the menu.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_source')" id="l_method-i-create_source">show</a>
-
- </p>
- <div id="method-i-create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 250</span>
-250: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
-251: <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>
-252: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-method_missing">
-
- <a name="method-i-method_missing"></a><b>method_missing</b>(*a, &amp;b)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-method_missing_source')" id="l_method-i-method_missing_source">show</a>
-
- </p>
- <div id="method-i-method_missing_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 254</span>
-254: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(*<span class="ruby-identifier">a</span>, &amp;<span class="ruby-identifier">b</span>)
-255: <span class="ruby-identifier">treeview</span>.<span class="ruby-identifier">__send__</span>(*<span class="ruby-identifier">a</span>, &amp;<span class="ruby-identifier">b</span>)
-256: <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/Editor/OptionsMenu.html b/doc/classes/JSON/Editor/OptionsMenu.html
deleted file mode 100644
index 74e648f..0000000
--- a/doc/classes/JSON/Editor/OptionsMenu.html
+++ /dev/null
@@ -1,222 +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::Editor::OptionsMenu</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::Editor::OptionsMenu
-
- <span class="parent">&lt;
-
- <a href="../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-collapsed_nodes">collapsed_nodes</a>,</li>
-
- <li><a href="#method-i-create">create</a></li>
-
- </ul>
- </dd>
-
- <dt>P</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-pretty_saving">pretty_saving</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>MenuExtension</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Attributes</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class='attr-rw'>
- [R]
- </td>
- <td class='attr-name'>pretty_item</td>
- <td class='attr-desc'></td>
- </tr>
-
- </table>
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-collapsed_nodes">
-
- <a name="method-i-collapsed_nodes"></a><b>collapsed_nodes</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Collapse/Expand all nodes by default.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-collapsed_nodes_source')" id="l_method-i-collapsed_nodes_source">show</a>
-
- </p>
- <div id="method-i-collapsed_nodes_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 663</span>
-663: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collapsed_nodes</span>(<span class="ruby-identifier">item</span>)
-664: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expanded</span>
-665: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">expanded</span> = <span class="ruby-keyword kw">false</span>
-666: <span class="ruby-identifier">collapse_all</span>
-667: <span class="ruby-keyword kw">else</span>
-668: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">expanded</span> = <span class="ruby-keyword kw">true</span>
-669: <span class="ruby-identifier">expand_all</span>
-670: <span class="ruby-keyword kw">end</span>
-671: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-create">
-
- <a name="method-i-create"></a><b>create</b>()
-
- </div>
-
- <div class="description">
- <p>
-Create the menu.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_source')" id="l_method-i-create_source">show</a>
-
- </p>
- <div id="method-i-create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 682</span>
-682: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
-683: <span class="ruby-identifier">title</span> = <span class="ruby-constant">MenuItem</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">'Options'</span>)
-684: <span class="ruby-identifier">title</span>.<span class="ruby-identifier">submenu</span> = <span class="ruby-identifier">menu</span>
-685: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Collapsed nodes'</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-constant">CheckMenuItem</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:collapsed_nodes</span>))
-686: <span class="ruby-ivar">@pretty_item</span> = <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Pretty saving'</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-constant">CheckMenuItem</span>,
-687: &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:pretty_saving</span>))
-688: <span class="ruby-ivar">@pretty_item</span>.<span class="ruby-identifier">active</span> = <span class="ruby-keyword kw">true</span>
-689: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">unchange</span>
-690: <span class="ruby-identifier">title</span>
-691: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-pretty_saving">
-
- <a name="method-i-pretty_saving"></a><b>pretty_saving</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Toggle pretty saving mode on/off.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-pretty_saving_source')" id="l_method-i-pretty_saving_source">show</a>
-
- </p>
- <div id="method-i-pretty_saving_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 674</span>
-674: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty_saving</span>(<span class="ruby-identifier">item</span>)
-675: <span class="ruby-ivar">@pretty_item</span>.<span class="ruby-identifier">toggled</span>
-676: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-677: <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/Editor/PopUpMenu.html b/doc/classes/JSON/Editor/PopUpMenu.html
deleted file mode 100644
index 5435788..0000000
--- a/doc/classes/JSON/Editor/PopUpMenu.html
+++ /dev/null
@@ -1,593 +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::Editor::PopUpMenu</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::Editor::PopUpMenu
-
- <span class="parent">&lt;
-
- <a href="../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/editor_rb.html">lib/json/editor.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This class creates the popup menu, that opens when clicking onto the
-treeview.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-append_new_node">append_new_node</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-change_node">change_node</a>,</li>
-
- <li><a href="#method-i-collapse_expand">collapse_expand</a>,</li>
-
- <li><a href="#method-i-copy_node">copy_node</a>,</li>
-
- <li><a href="#method-i-create">create</a>,</li>
-
- <li><a href="#method-i-cut_node">cut_node</a></li>
-
- </ul>
- </dd>
-
- <dt>I</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-insert_new_node">insert_new_node</a></li>
-
- </ul>
- </dd>
-
- <dt>P</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-paste_node_appending">paste_node_appending</a>,</li>
-
- <li><a href="#method-i-paste_node_inserting_before">paste_node_inserting_before</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
- <div class="sectiontitle">Included Modules</div>
- <ul>
-
- <li>
-
- <span>MenuExtension</span>
-
- START:includes
- </li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-append_new_node">
-
- <a name="method-i-append_new_node"></a><b>append_new_node</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Append a new node to the selected Hash or Array.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-append_new_node_source')" id="l_method-i-append_new_node_source">show</a>
-
- </p>
- <div id="method-i-append_new_node_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 388</span>
-388: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_new_node</span>(<span class="ruby-identifier">item</span>)
-389: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-390: <span class="ruby-identifier">parent_type</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">type</span>
-391: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">parent_type</span>
-392: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Hash'</span>
-393: <span class="ruby-identifier">key</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> = <span class="ruby-identifier">ask_for_hash_pair</span>(<span class="ruby-identifier">parent</span>)
-394: <span class="ruby-identifier">key</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-395: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">create_node</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-value str">'Key'</span>, <span class="ruby-identifier">key</span>)
-396: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">create_node</span>(<span class="ruby-identifier">iter</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>)
-397: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(
-398: <span class="ruby-node">&quot;Added a (key, value)-pair to '#{parent_type}'.&quot;</span>)
-399: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-400: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span>
-401: <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> = <span class="ruby-identifier">ask_for_element</span>(<span class="ruby-identifier">parent</span>)
-402: <span class="ruby-identifier">type</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-403: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">create_node</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>)
-404: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-405: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">&quot;Appendend an element to '#{parent_type}'.&quot;</span>)
-406: <span class="ruby-keyword kw">else</span>
-407: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">&quot;Cannot append to '#{parent_type}'!&quot;</span>)
-408: <span class="ruby-keyword kw">end</span>
-409: <span class="ruby-keyword kw">else</span>
-410: <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> = <span class="ruby-identifier">ask_for_element</span>
-411: <span class="ruby-identifier">type</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-412: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">create_node</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>)
-413: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-414: <span class="ruby-keyword kw">end</span>
-415: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-change_node">
-
- <a name="method-i-change_node"></a><b>change_node</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Change the type or content of the selected node.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-change_node_source')" id="l_method-i-change_node_source">show</a>
-
- </p>
- <div id="method-i-change_node_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 265</span>
-265: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change_node</span>(<span class="ruby-identifier">item</span>)
-266: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-267: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span>
-268: <span class="ruby-identifier">old_type</span>, <span class="ruby-identifier">old_content</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span>, <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span>
-269: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">ALL_TYPES</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">old_type</span>)
-270: <span class="ruby-ivar">@clipboard_data</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>)
-271: <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> = <span class="ruby-identifier">ask_for_element</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span>,
-272: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span>)
-273: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span>
-274: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span>, <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>
-275: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">remove_subtree</span>(<span class="ruby-identifier">model</span>)
-276: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Changed a node in tree.&quot;</span>)
-277: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-278: <span class="ruby-keyword kw">end</span>
-279: <span class="ruby-keyword kw">else</span>
-280: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(
-281: <span class="ruby-node">&quot;Cannot change node of type #{old_type} in tree!&quot;</span>)
-282: <span class="ruby-keyword kw">end</span>
-283: <span class="ruby-keyword kw">end</span>
-284: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-collapse_expand">
-
- <a name="method-i-collapse_expand"></a><b>collapse_expand</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Recursively collapse/expand a subtree starting from the selected node.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-collapse_expand_source')" id="l_method-i-collapse_expand_source">show</a>
-
- </p>
- <div id="method-i-collapse_expand_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 444</span>
-444: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collapse_expand</span>(<span class="ruby-identifier">item</span>)
-445: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-446: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">row_expanded?</span>(<span class="ruby-identifier">current</span>.<span class="ruby-identifier">path</span>)
-447: <span class="ruby-identifier">collapse_row</span>(<span class="ruby-identifier">current</span>.<span class="ruby-identifier">path</span>)
-448: <span class="ruby-keyword kw">else</span>
-449: <span class="ruby-identifier">expand_row</span>(<span class="ruby-identifier">current</span>.<span class="ruby-identifier">path</span>, <span class="ruby-keyword kw">true</span>)
-450: <span class="ruby-keyword kw">end</span>
-451: <span class="ruby-keyword kw">else</span>
-452: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Append a node into the root first!&quot;</span>)
-453: <span class="ruby-keyword kw">end</span>
-454: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-copy_node">
-
- <a name="method-i-copy_node"></a><b>copy_node</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Copy the selected node and its subtree, and save it into the clipboard.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-copy_node_source')" id="l_method-i-copy_node_source">show</a>
-
- </p>
- <div id="method-i-copy_node_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 305</span>
-305: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy_node</span>(<span class="ruby-identifier">item</span>)
-306: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-307: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'Key'</span>
-308: <span class="ruby-ivar">@clipboard_data</span> = {
-309: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>.<span class="ruby-identifier">first_child</span>)
-310: }
-311: <span class="ruby-keyword kw">else</span>
-312: <span class="ruby-ivar">@clipboard_data</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>)
-313: <span class="ruby-keyword kw">end</span>
-314: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-315: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Copied a node from tree.&quot;</span>)
-316: <span class="ruby-keyword kw">end</span>
-317: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-create">
-
- <a name="method-i-create"></a><b>create</b>()
-
- </div>
-
- <div class="description">
- <p>
-Create the menu.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-create_source')" id="l_method-i-create_source">show</a>
-
- </p>
- <div id="method-i-create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 457</span>
-457: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>
-458: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Change node&quot;</span>, <span class="ruby-value">nn</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:change_node</span>))
-459: <span class="ruby-identifier">add_separator</span>
-460: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Cut node&quot;</span>, <span class="ruby-value">XX</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:cut_node</span>))
-461: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Copy node&quot;</span>, <span class="ruby-value">CC</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:copy_node</span>))
-462: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Paste node (appending)&quot;</span>, <span class="ruby-value">AA</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:paste_node_appending</span>))
-463: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Paste node (inserting before)&quot;</span>, <span class="ruby-value">II</span>,
-464: &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:paste_node_inserting_before</span>))
-465: <span class="ruby-identifier">add_separator</span>
-466: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Append new node&quot;</span>, <span class="ruby-value">aa</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:append_new_node</span>))
-467: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Insert new node before&quot;</span>, <span class="ruby-value">ii</span>, &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:insert_new_node</span>))
-468: <span class="ruby-identifier">add_separator</span>
-469: <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">&quot;Collapse/Expand node (recursively)&quot;</span>, <span class="ruby-value">ee</span>,
-470: &amp;<span class="ruby-identifier">method</span>(<span class="ruby-value">:collapse_expand</span>))
-471:
-472: <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">show_all</span>
-473: <span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:button_press_event</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">widget</span>, <span class="ruby-identifier">event</span><span class="ruby-operator">|</span>
-474: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">event</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">EventButton</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">event</span>.<span class="ruby-identifier">button</span> <span class="ruby-operator">==</span> <span class="ruby-value">3</span>
-475: <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">popup</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">event</span>.<span class="ruby-identifier">button</span>, <span class="ruby-identifier">event</span>.<span class="ruby-identifier">time</span>)
-476: <span class="ruby-keyword kw">end</span>
-477: <span class="ruby-keyword kw">end</span>
-478: <span class="ruby-identifier">signal_connect</span>(<span class="ruby-value">:popup_menu</span>) <span class="ruby-keyword kw">do</span>
-479: <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">popup</span>(<span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-value">0</span>, <span class="ruby-constant">Gdk</span><span class="ruby-operator">::</span><span class="ruby-constant">Event</span><span class="ruby-operator">::</span><span class="ruby-constant">CURRENT_TIME</span>)
-480: <span class="ruby-keyword kw">end</span>
-481: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-cut_node">
-
- <a name="method-i-cut_node"></a><b>cut_node</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Cut the selected node and its subtree, and save it into the clipboard.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-cut_node_source')" id="l_method-i-cut_node_source">show</a>
-
- </p>
- <div id="method-i-cut_node_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 288</span>
-288: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cut_node</span>(<span class="ruby-identifier">item</span>)
-289: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-290: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'Key'</span>
-291: <span class="ruby-ivar">@clipboard_data</span> = {
-292: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>.<span class="ruby-identifier">first_child</span>)
-293: }
-294: <span class="ruby-keyword kw">else</span>
-295: <span class="ruby-ivar">@clipboard_data</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>)
-296: <span class="ruby-keyword kw">end</span>
-297: <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>)
-298: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-299: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Cut a node from tree.&quot;</span>)
-300: <span class="ruby-keyword kw">end</span>
-301: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-insert_new_node">
-
- <a name="method-i-insert_new_node"></a><b>insert_new_node</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Insert a new node into an Array before the selected element.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-insert_new_node_source')" id="l_method-i-insert_new_node_source">show</a>
-
- </p>
- <div id="method-i-insert_new_node_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 418</span>
-418: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_new_node</span>(<span class="ruby-identifier">item</span>)
-419: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-420: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-421: <span class="ruby-identifier">parent_parent</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">parent</span>
-422: <span class="ruby-identifier">parent_type</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">type</span>
-423: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent_type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'Array'</span>
-424: <span class="ruby-identifier">selected_index</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-425: <span class="ruby-keyword kw">break</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">current</span>
-426: <span class="ruby-keyword kw">end</span>
-427: <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> = <span class="ruby-identifier">ask_for_element</span>(<span class="ruby-identifier">parent</span>)
-428: <span class="ruby-identifier">type</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-429: <span class="ruby-identifier">iter</span> = <span class="ruby-identifier">model</span>.<span class="ruby-identifier">insert_before</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">current</span>)
-430: <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span>, <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> = <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span>
-431: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Inserted an element to &quot;</span> <span class="ruby-operator">+</span>
-432: <span class="ruby-node">&quot;'#{parent_type}' before index #{selected_index}.&quot;</span>)
-433: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-434: <span class="ruby-keyword kw">else</span>
-435: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(
-436: <span class="ruby-node">&quot;Cannot insert node below '#{parent_type}'!&quot;</span>)
-437: <span class="ruby-keyword kw">end</span>
-438: <span class="ruby-keyword kw">else</span>
-439: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Append a node into the root first!&quot;</span>)
-440: <span class="ruby-keyword kw">end</span>
-441: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-paste_node_appending">
-
- <a name="method-i-paste_node_appending"></a><b>paste_node_appending</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Paste the data in the clipboard into the selected Array or Hash by
-appending it.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-paste_node_appending_source')" id="l_method-i-paste_node_appending_source">show</a>
-
- </p>
- <div id="method-i-paste_node_appending_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 321</span>
-321: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paste_node_appending</span>(<span class="ruby-identifier">item</span>)
-322: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-323: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@clipboard_data</span>
-324: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span>
-325: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span>
-326: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-ivar">@clipboard_data</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">current</span>)
-327: <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">current</span>)
-328: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Hash'</span>
-329: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@clipboard_data</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
-330: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span>
-331: <span class="ruby-identifier">hash</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>)
-332: <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>)
-333: <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">update</span>(<span class="ruby-ivar">@clipboard_data</span>)
-334: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-identifier">hash</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">parent</span>)
-335: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span>
-336: <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">parent</span>)
-337: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@expanded</span>
-338: <span class="ruby-identifier">expand_all</span>
-339: <span class="ruby-keyword kw">end</span>
-340: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-341: <span class="ruby-keyword kw">else</span>
-342: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(
-343: <span class="ruby-node">&quot;Cannot paste non-#{current.type} data into '#{current.type}'!&quot;</span>)
-344: <span class="ruby-keyword kw">end</span>
-345: <span class="ruby-keyword kw">else</span>
-346: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(
-347: <span class="ruby-node">&quot;Cannot paste node below '#{current.type}'!&quot;</span>)
-348: <span class="ruby-keyword kw">end</span>
-349: <span class="ruby-keyword kw">else</span>
-350: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Nothing to paste in clipboard!&quot;</span>)
-351: <span class="ruby-keyword kw">end</span>
-352: <span class="ruby-keyword kw">else</span>
-353: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Append a node into the root first!&quot;</span>)
-354: <span class="ruby-keyword kw">end</span>
-355: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-paste_node_inserting_before">
-
- <a name="method-i-paste_node_inserting_before"></a><b>paste_node_inserting_before</b>(item)
-
- </div>
-
- <div class="description">
- <p>
-Paste the data in the clipboard into the selected Array inserting it before
-the selected element.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-paste_node_inserting_before_source')" id="l_method-i-paste_node_inserting_before_source">show</a>
-
- </p>
- <div id="method-i-paste_node_inserting_before_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/editor.rb, line 359</span>
-359: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paste_node_inserting_before</span>(<span class="ruby-identifier">item</span>)
-360: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">selection</span>.<span class="ruby-identifier">selected</span>
-361: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@clipboard_data</span>
-362: <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span>
-363: <span class="ruby-identifier">parent_type</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">type</span>
-364: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent_type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'Array'</span>
-365: <span class="ruby-identifier">selected_index</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span>, <span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
-366: <span class="ruby-keyword kw">break</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">current</span>
-367: <span class="ruby-keyword kw">end</span>
-368: <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">data2model</span>(<span class="ruby-ivar">@clipboard_data</span>, <span class="ruby-identifier">model</span>, <span class="ruby-identifier">parent</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
-369: <span class="ruby-identifier">m</span>.<span class="ruby-identifier">insert_before</span>(<span class="ruby-identifier">parent</span>, <span class="ruby-identifier">current</span>)
-370: <span class="ruby-keyword kw">end</span>
-371: <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">current</span>)
-372: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Inserted an element to &quot;</span> <span class="ruby-operator">+</span>
-373: <span class="ruby-node">&quot;'#{parent_type}' before index #{selected_index}.&quot;</span>)
-374: <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span>
-375: <span class="ruby-keyword kw">else</span>
-376: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(
-377: <span class="ruby-node">&quot;Cannot insert node below '#{parent_type}'!&quot;</span>)
-378: <span class="ruby-keyword kw">end</span>
-379: <span class="ruby-keyword kw">else</span>
-380: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Nothing to paste in clipboard!&quot;</span>)
-381: <span class="ruby-keyword kw">end</span>
-382: <span class="ruby-keyword kw">else</span>
-383: <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">&quot;Append a node into the root first!&quot;</span>)
-384: <span class="ruby-keyword kw">end</span>
-385: <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/Ext.html b/doc/classes/JSON/Ext.html
deleted file mode 100644
index 24b0ee2..0000000
--- a/doc/classes/JSON/Ext.html
+++ /dev/null
@@ -1,73 +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::Ext</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::Ext
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/ext_rb.html">lib/json/ext.rb</a></li>
-
- <li><a href="../../files/ext/json/ext/parser/parser_c.html">ext/json/ext/parser/parser.c</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This module holds all the modules/classes that implement JSON&#8217;s
-functionality as C extensions.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="Ext/Generator.html">JSON::Ext::Generator</a></li>
-
- <li><span class="type">CLASS</span> <a href="Ext/Parser.html">JSON::Ext::Parser</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator.html b/doc/classes/JSON/Ext/Generator.html
deleted file mode 100644
index 6878b07..0000000
--- a/doc/classes/JSON/Ext/Generator.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::Ext::Generator</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::Ext::Generator
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/ext/json/ext/parser/parser_c.html">ext/json/ext/parser/parser.c</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This is the <a href="../../JSON.html">JSON</a> generator implemented as a C
-extension. It can be configured to be used by setting
-</p>
-<pre>
- JSON.generator = JSON::Ext::Generator
-</pre>
-<p>
-with the method generator= in <a href="../../JSON.html">JSON</a>.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="Generator/GeneratorMethods.html">JSON::Ext::Generator::GeneratorMethods</a></li>
-
- <li><span class="type">CLASS</span> <a href="Generator/State.html">JSON::Ext::Generator::State</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods.html
deleted file mode 100644
index 70449c9..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods.html
+++ /dev/null
@@ -1,79 +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::Ext::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::Ext::Generator::GeneratorMethods
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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::Ext::Generator::GeneratorMethods::Array</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/Bignum.html">JSON::Ext::Generator::GeneratorMethods::Bignum</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/FalseClass.html">JSON::Ext::Generator::GeneratorMethods::FalseClass</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/Fixnum.html">JSON::Ext::Generator::GeneratorMethods::Fixnum</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/Float.html">JSON::Ext::Generator::GeneratorMethods::Float</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/Hash.html">JSON::Ext::Generator::GeneratorMethods::Hash</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/NilClass.html">JSON::Ext::Generator::GeneratorMethods::NilClass</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/Object.html">JSON::Ext::Generator::GeneratorMethods::Object</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/String.html">JSON::Ext::Generator::GeneratorMethods::String</a></li>
-
- <li><span class="type">MODULE</span> <a href="GeneratorMethods/TrueClass.html">JSON::Ext::Generator::GeneratorMethods::TrueClass</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.html
deleted file mode 100644
index 8d5c2a0..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.html
+++ /dev/null
@@ -1,105 +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::Ext::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::Ext::Generator::GeneratorMethods::Array
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(state = nil, depth = 0)
-</b>
-
- </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 generated 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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) </pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html
deleted file mode 100644
index e98225b..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html
+++ /dev/null
@@ -1,104 +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::Ext::Generator::GeneratorMethods::Bignum</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::Ext::Generator::GeneratorMethods::Bignum
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(*)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string representation
-for this Integer number.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mBignum_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(bignum);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html
deleted file mode 100644
index 0102973..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html
+++ /dev/null
@@ -1,104 +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::Ext::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::Ext::Generator::GeneratorMethods::FalseClass
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(false);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html
deleted file mode 100644
index 77f4129..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html
+++ /dev/null
@@ -1,104 +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::Ext::Generator::GeneratorMethods::Fixnum</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::Ext::Generator::GeneratorMethods::Fixnum
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(*)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Returns a <a href="../../../../JSON.html">JSON</a> string representation
-for this Integer number.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mFixnum_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(fixnum);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.html
deleted file mode 100644
index 77ffdf3..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.html
+++ /dev/null
@@ -1,104 +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::Ext::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::Ext::Generator::GeneratorMethods::Float
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(*)
-</b>
-
- </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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(float);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html
deleted file mode 100644
index abf9eec..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html
+++ /dev/null
@@ -1,108 +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::Ext::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::Ext::Generator::GeneratorMethods::Hash
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(state = nil, depth = 0)
-</b>
-
- </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 generated 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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(object);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html
deleted file mode 100644
index a1732bd..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html
+++ /dev/null
@@ -1,96 +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::Ext::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::Ext::Generator::GeneratorMethods::NilClass
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(*)
-</b>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(null);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.html
deleted file mode 100644
index 3975276..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.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::Ext::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::Ext::Generator::GeneratorMethods::Object
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(*)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Converts this object to a string (calling #), 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">#</a> was defined for some object.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE state, depth;
- VALUE string = rb_funcall(self, i_to_s, 0);
- rb_scan_args(argc, argv, &quot;02&quot;, &amp;state, &amp;depth);
- Check_Type(string, T_STRING);
- state = cState_from_state_s(cState, state);
- return cState_partial_generate(state, string, depth);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.html
deleted file mode 100644
index 4ce5444..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.html
+++ /dev/null
@@ -1,238 +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::Ext::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::Ext::Generator::GeneratorMethods::String
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-c-included">included</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <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>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="String/Extend.html">JSON::Ext::Generator::GeneratorMethods::String::Extend</a></li>
-
- </ul>
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-included">
-
- <a name="method-c-included"></a><b> String.included(modul)
-</b>
-
- </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('method-c-included_source')" id="l_method-c-included_source">show</a>
-
- </p>
- <div id="method-c-included_source" class="dyn-source">
- <pre>static VALUE mString_included_s(VALUE self, VALUE modul) </pre>
- </div>
- </div>
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b> to_json(*)
-</b>
-
- </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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mString_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(string);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_json_raw">
-
- <a name="method-i-to_json_raw"></a><b> to_json_raw(*args)
-</b>
-
- </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#method-i-to_json_raw_object">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('method-i-to_json_raw_source')" id="l_method-i-to_json_raw_source">show</a>
-
- </p>
- <div id="method-i-to_json_raw_source" class="dyn-source">
- <pre>static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self)
-{
- VALUE obj = mString_to_json_raw_object(self);
- Check_Type(obj, T_HASH);
- return mHash_to_json(argc, argv, obj);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_json_raw_object">
-
- <a name="method-i-to_json_raw_object"></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 generated 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('method-i-to_json_raw_object_source')" id="l_method-i-to_json_raw_object_source">show</a>
-
- </p>
- <div id="method-i-to_json_raw_object_source" class="dyn-source">
- <pre>static VALUE mString_to_json_raw_object(VALUE self)
-{
- VALUE ary;
- VALUE result = rb_hash_new();
- rb_hash_aset(result, rb_funcall(mJSON, i_create_id, 0), rb_class_name(rb_obj_class(self)));
- ary = rb_funcall(self, i_unpack, 1, rb_str_new2(&quot;C*&quot;));
- rb_hash_aset(result, rb_str_new2(&quot;raw&quot;), ary);
- return result;
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html
deleted file mode 100644
index 7fe6ae4..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html
+++ /dev/null
@@ -1,108 +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::Ext::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::Ext::Generator::GeneratorMethods::String::Extend
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-json_create">
-
- <a name="method-i-json_create"></a><b> json_create(o)
-</b>
-
- </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('method-i-json_create_source')" id="l_method-i-json_create_source">show</a>
-
- </p>
- <div id="method-i-json_create_source" class="dyn-source">
- <pre>static VALUE mString_Extend_json_create(VALUE self, VALUE o)
-{
- VALUE ary;
- Check_Type(o, T_HASH);
- ary = rb_hash_aref(o, rb_str_new2(&quot;raw&quot;));
- return rb_funcall(ary, i_pack, 1, rb_str_new2(&quot;C*&quot;));
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html
deleted file mode 100644
index 5f98a87..0000000
--- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html
+++ /dev/null
@@ -1,104 +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::Ext::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::Ext::Generator::GeneratorMethods::TrueClass
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre>static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
-{
- GENERATE_JSON(true);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Generator/State.html b/doc/classes/JSON/Ext/Generator/State.html
deleted file mode 100644
index 2572fa4..0000000
--- a/doc/classes/JSON/Ext/Generator/State.html
+++ /dev/null
@@ -1,1164 +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::Ext::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::Ext::Generator::State
-
- <span class="parent">&lt;
-
- <a href="../../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../../files/ext/json/ext/generator/generator_c.html">ext/json/ext/generator/generator.c</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>#</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-%5B%5D">[]</a></li>
-
- </ul>
- </dd>
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-allow_nan%3F">allow_nan?</a>,</li>
-
- <li><a href="#method-i-array_nl">array_nl</a>,</li>
-
- <li><a href="#method-i-array_nl%3D">array_nl=</a>,</li>
-
- <li><a href="#method-i-ascii_only%3F">ascii_only?</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-check_circular%3F">check_circular?</a>,</li>
-
- <li><a href="#method-i-configure">configure</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-from_state">from_state</a></li>
-
- </ul>
- </dd>
-
- <dt>G</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-generate">generate</a></li>
-
- </ul>
- </dd>
-
- <dt>I</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-indent">indent</a>,</li>
-
- <li><a href="#method-i-indent%3D">indent=</a>,</li>
-
- <li><a href="#method-i-initialize_copy">initialize_copy</a></li>
-
- </ul>
- </dd>
-
- <dt>M</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-max_nesting">max_nesting</a>,</li>
-
- <li><a href="#method-i-max_nesting%3D">max_nesting=</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- <dt>O</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-object_nl">object_nl</a>,</li>
-
- <li><a href="#method-i-object_nl%3D">object_nl=</a></li>
-
- </ul>
- </dd>
-
- <dt>S</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-space">space</a>,</li>
-
- <li><a href="#method-i-space%3D">space=</a>,</li>
-
- <li><a href="#method-i-space_before">space_before</a>,</li>
-
- <li><a href="#method-i-space_before%3D">space_before=</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_h">to_h</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-from_state">
-
- <a name="method-c-from_state"></a><b> from_state(opts)
-</b>
-
- </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('method-c-from_state_source')" id="l_method-c-from_state_source">show</a>
-
- </p>
- <div id="method-c-from_state_source" class="dyn-source">
- <pre>static VALUE cState_from_state_s(VALUE self, VALUE opts)
-{
- if (rb_obj_is_kind_of(opts, self)) {
- return opts;
- } else if (rb_obj_is_kind_of(opts, rb_cHash)) {
- return rb_funcall(self, i_new, 1, opts);
- } else {
- if (NIL_P(CJSON_SAFE_STATE_PROTOTYPE)) {
- CJSON_SAFE_STATE_PROTOTYPE = rb_const_get(mJSON, i_SAFE_STATE_PROTOTYPE);
- }
- return CJSON_SAFE_STATE_PROTOTYPE;
- }
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></a><b> new(opts = {})
-</b>
-
- </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><p>
-<b>indent</b>: a string used to indent levels (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>space</b>: a string that is put after, a : or , delimiter (default:
-&#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b><a href="State.html#method-i-space_before">space_before</a></b>: a
-string that is put before a : pair delimiter (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b><a href="State.html#method-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: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b><a href="State.html#method-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: &#8217;&#8217;),
-</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>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre>static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
-{
- VALUE opts;
- GET_STATE(self);
- state-&gt;max_nesting = 19;
- rb_scan_args(argc, argv, &quot;01&quot;, &amp;opts);
- if (!NIL_P(opts)) cState_configure(self, opts);
- return self;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-%5B%5D">
-
- <a name="method-i-%5B%5D"></a><b> [](name)
-</b>
-
- </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('method-i-%5B%5D_source')" id="l_method-i-%5B%5D_source">show</a>
-
- </p>
- <div id="method-i-%5B%5D_source" class="dyn-source">
- <pre>static VALUE cState_aref(VALUE self, VALUE name)
-{
- GET_STATE(self);
- if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
- return rb_funcall(self, i_send, 1, name);
- } else {
- return Qnil;
- }
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-allow_nan%3F">
-
- <a name="method-i-allow_nan%3F"></a><b> allow_nan?
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Returns true, if NaN, Infinity, and -Infinity should be generated,
-otherwise returns false.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-allow_nan%3F_source')" id="l_method-i-allow_nan%3F_source">show</a>
-
- </p>
- <div id="method-i-allow_nan%3F_source" class="dyn-source">
- <pre>static VALUE cState_allow_nan_p(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;allow_nan ? Qtrue : Qfalse;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-array_nl">
-
- <a name="method-i-array_nl"></a><b> array_nl()
-</b>
-
- </div>
-
- <div class="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 class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-array_nl_source')" id="l_method-i-array_nl_source">show</a>
-
- </p>
- <div id="method-i-array_nl_source" class="dyn-source">
- <pre>static VALUE cState_array_nl(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;array_nl ? rb_str_new2(state-&gt;array_nl) : rb_str_new2(&quot;&quot;);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-array_nl%3D">
-
- <a name="method-i-array_nl%3D"></a><b> array_nl=(array_nl)
-</b>
-
- </div>
-
- <div class="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 class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-array_nl%3D_source')" id="l_method-i-array_nl%3D_source">show</a>
-
- </p>
- <div id="method-i-array_nl%3D_source" class="dyn-source">
- <pre>static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
-{
- GET_STATE(self);
- Check_Type(array_nl, T_STRING);
- if (RSTRING_LEN(array_nl) == 0) {
- if (state-&gt;array_nl) {
- ruby_xfree(state-&gt;array_nl);
- state-&gt;array_nl = NULL;
- }
- } else {
- if (state-&gt;array_nl) ruby_xfree(state-&gt;array_nl);
- state-&gt;array_nl = strdup(RSTRING_PTR(array_nl));
- }
- return Qnil;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-ascii_only%3F">
-
- <a name="method-i-ascii_only%3F"></a><b> ascii_only?
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Returns true, if NaN, Infinity, and -Infinity should be generated,
-otherwise returns false.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ascii_only%3F_source')" id="l_method-i-ascii_only%3F_source">show</a>
-
- </p>
- <div id="method-i-ascii_only%3F_source" class="dyn-source">
- <pre>static VALUE cState_ascii_only_p(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;ascii_only ? Qtrue : Qfalse;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-check_circular%3F">
-
- <a name="method-i-check_circular%3F"></a><b> check_circular?
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Returns true, if circular data structures should be checked, otherwise
-returns false.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-check_circular%3F_source')" id="l_method-i-check_circular%3F_source">show</a>
-
- </p>
- <div id="method-i-check_circular%3F_source" class="dyn-source">
- <pre>static VALUE cState_check_circular_p(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;max_nesting ? Qtrue : Qfalse;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-configure">
-
- <a name="method-i-configure"></a><b> configure(opts)
-</b>
-
- </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('method-i-configure_source')" id="l_method-i-configure_source">show</a>
-
- </p>
- <div id="method-i-configure_source" class="dyn-source">
- <pre>static VALUE cState_configure(VALUE self, VALUE opts)
-{
- VALUE tmp;
- GET_STATE(self);
- tmp = rb_convert_type(opts, T_HASH, &quot;Hash&quot;, &quot;to_hash&quot;);
- if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, &quot;Hash&quot;, &quot;to_h&quot;);
- if (NIL_P(tmp)) {
- rb_raise(rb_eArgError, &quot;opts has to be hash like or convertable into a hash&quot;);
- }
- opts = tmp;
- tmp = rb_hash_aref(opts, ID2SYM(i_indent));
- if (RTEST(tmp)) {
- int len;
- Check_Type(tmp, T_STRING);
- len = RSTRING_LEN(tmp);
- state-&gt;indent = fstrndup(RSTRING_PTR(tmp), len);
- state-&gt;indent_len = len;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_space));
- if (RTEST(tmp)) {
- int len;
- Check_Type(tmp, T_STRING);
- len = RSTRING_LEN(tmp);
- state-&gt;space = fstrndup(RSTRING_PTR(tmp), len);
- state-&gt;space_len = len;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_space_before));
- if (RTEST(tmp)) {
- int len;
- Check_Type(tmp, T_STRING);
- len = RSTRING_LEN(tmp);
- state-&gt;space_before = fstrndup(RSTRING_PTR(tmp), len);
- state-&gt;space_before_len = len;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_array_nl));
- if (RTEST(tmp)) {
- int len;
- Check_Type(tmp, T_STRING);
- len = RSTRING_LEN(tmp);
- state-&gt;array_nl = fstrndup(RSTRING_PTR(tmp), len);
- state-&gt;array_nl_len = len;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_object_nl));
- if (RTEST(tmp)) {
- int len;
- Check_Type(tmp, T_STRING);
- len = RSTRING_LEN(tmp);
- state-&gt;object_nl = fstrndup(RSTRING_PTR(tmp), len);
- state-&gt;object_nl_len = len;
- }
- tmp = ID2SYM(i_max_nesting);
- state-&gt;max_nesting = 19;
- if (option_given_p(opts, tmp)) {
- VALUE max_nesting = rb_hash_aref(opts, tmp);
- if (RTEST(max_nesting)) {
- Check_Type(max_nesting, T_FIXNUM);
- state-&gt;max_nesting = FIX2LONG(max_nesting);
- } else {
- state-&gt;max_nesting = 0;
- }
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan));
- state-&gt;allow_nan = RTEST(tmp);
- tmp = rb_hash_aref(opts, ID2SYM(i_ascii_only));
- state-&gt;ascii_only = RTEST(tmp);
- return self;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-generate">
-
- <a name="method-i-generate"></a><b> generate(obj)
-</b>
-
- </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('method-i-generate_source')" id="l_method-i-generate_source">show</a>
-
- </p>
- <div id="method-i-generate_source" class="dyn-source">
- <pre>static VALUE cState_generate(VALUE self, VALUE obj)
-{
- VALUE result = cState_partial_generate(self, obj, Qnil);
- VALUE re, args[2];
- args[0] = rb_str_new2(&quot;\\A\\s*(?:\\[.*\\]|\\{.*\\})\\s*\\Z&quot;);
- args[1] = CRegexp_MULTILINE;
- re = rb_class_new_instance(2, args, rb_cRegexp);
- if (NIL_P(rb_funcall(re, i_match, 1, result))) {
- rb_raise(eGeneratorError, &quot;only generation of JSON objects or arrays allowed&quot;);
- }
- return result;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-indent">
-
- <a name="method-i-indent"></a><b> indent()
-</b>
-
- </div>
-
- <div class="description">
- <p>
-This string is used to indent levels in the <a
-href="../../../JSON.html">JSON</a> text.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-indent_source')" id="l_method-i-indent_source">show</a>
-
- </p>
- <div id="method-i-indent_source" class="dyn-source">
- <pre>static VALUE cState_indent(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;indent ? rb_str_new2(state-&gt;indent) : rb_str_new2(&quot;&quot;);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-indent%3D">
-
- <a name="method-i-indent%3D"></a><b> indent=(indent)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-This string is used to indent levels in the <a
-href="../../../JSON.html">JSON</a> text.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-indent%3D_source')" id="l_method-i-indent%3D_source">show</a>
-
- </p>
- <div id="method-i-indent%3D_source" class="dyn-source">
- <pre>static VALUE cState_indent_set(VALUE self, VALUE indent)
-{
- GET_STATE(self);
- Check_Type(indent, T_STRING);
- if (RSTRING_LEN(indent) == 0) {
- if (state-&gt;indent) {
- ruby_xfree(state-&gt;indent);
- state-&gt;indent = NULL;
- }
- } else {
- if (state-&gt;indent) ruby_xfree(state-&gt;indent);
- state-&gt;indent = strdup(RSTRING_PTR(indent));
- }
- return Qnil;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-initialize_copy">
-
- <a name="method-i-initialize_copy"></a><b> initialize_copy(orig)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Initializes this object from orig if it to be duplicated/cloned and returns
-it.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-initialize_copy_source')" id="l_method-i-initialize_copy_source">show</a>
-
- </p>
- <div id="method-i-initialize_copy_source" class="dyn-source">
- <pre>static VALUE cState_init_copy(VALUE obj, VALUE orig)
-{
- JSON_Generator_State *objState, *origState;
-
- Data_Get_Struct(obj, JSON_Generator_State, objState);
- Data_Get_Struct(orig, JSON_Generator_State, origState);
- if (!objState) rb_raise(rb_eArgError, &quot;unallocated JSON::State&quot;);
-
- MEMCPY(objState, origState, JSON_Generator_State, 1);
- objState-&gt;indent = fstrndup(origState-&gt;indent, origState-&gt;indent_len);
- objState-&gt;space = fstrndup(origState-&gt;space, origState-&gt;space_len);
- objState-&gt;space_before = fstrndup(origState-&gt;space_before, origState-&gt;space_before_len);
- objState-&gt;object_nl = fstrndup(origState-&gt;object_nl, origState-&gt;object_nl_len);
- objState-&gt;array_nl = fstrndup(origState-&gt;array_nl, origState-&gt;array_nl_len);
- if (origState-&gt;array_delim) objState-&gt;array_delim = fbuffer_dup(origState-&gt;array_delim);
- if (origState-&gt;object_delim) objState-&gt;object_delim = fbuffer_dup(origState-&gt;object_delim);
- if (origState-&gt;object_delim2) objState-&gt;object_delim2 = fbuffer_dup(origState-&gt;object_delim2);
- return obj;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-max_nesting">
-
- <a name="method-i-max_nesting"></a><b> max_nesting
-</b>
-
- </div>
-
- <div class="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#method-i-max_nesting">max_nesting</a> = 0 if no maximum is
-checked.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-max_nesting_source')" id="l_method-i-max_nesting_source">show</a>
-
- </p>
- <div id="method-i-max_nesting_source" class="dyn-source">
- <pre>static VALUE cState_max_nesting(VALUE self)
-{
- GET_STATE(self);
- return LONG2FIX(state-&gt;max_nesting);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-max_nesting%3D">
-
- <a name="method-i-max_nesting%3D"></a><b> max_nesting=(depth)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-This sets the maximum level of data structure nesting in the generated <a
-href="../../../JSON.html">JSON</a> to the integer depth, <a
-href="State.html#method-i-max_nesting">max_nesting</a> = 0 if no maximum
-should be checked.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-max_nesting%3D_source')" id="l_method-i-max_nesting%3D_source">show</a>
-
- </p>
- <div id="method-i-max_nesting%3D_source" class="dyn-source">
- <pre>static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
-{
- GET_STATE(self);
- Check_Type(depth, T_FIXNUM);
- return state-&gt;max_nesting = FIX2LONG(depth);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-object_nl">
-
- <a name="method-i-object_nl"></a><b> object_nl()
-</b>
-
- </div>
-
- <div class="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 class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-object_nl_source')" id="l_method-i-object_nl_source">show</a>
-
- </p>
- <div id="method-i-object_nl_source" class="dyn-source">
- <pre>static VALUE cState_object_nl(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;object_nl ? rb_str_new2(state-&gt;object_nl) : rb_str_new2(&quot;&quot;);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-object_nl%3D">
-
- <a name="method-i-object_nl%3D"></a><b> object_nl=(object_nl)
-</b>
-
- </div>
-
- <div class="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 class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-object_nl%3D_source')" id="l_method-i-object_nl%3D_source">show</a>
-
- </p>
- <div id="method-i-object_nl%3D_source" class="dyn-source">
- <pre>static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
-{
- GET_STATE(self);
- Check_Type(object_nl, T_STRING);
- if (RSTRING_LEN(object_nl) == 0) {
- if (state-&gt;object_nl) {
- ruby_xfree(state-&gt;object_nl);
- state-&gt;object_nl = NULL;
- }
- } else {
- if (state-&gt;object_nl) ruby_xfree(state-&gt;object_nl);
- state-&gt;object_nl = strdup(RSTRING_PTR(object_nl));
- }
- return Qnil;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-space">
-
- <a name="method-i-space"></a><b> space()
-</b>
-
- </div>
-
- <div class="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 class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-space_source')" id="l_method-i-space_source">show</a>
-
- </p>
- <div id="method-i-space_source" class="dyn-source">
- <pre>static VALUE cState_space(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;space ? rb_str_new2(state-&gt;space) : rb_str_new2(&quot;&quot;);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-space%3D">
-
- <a name="method-i-space%3D"></a><b> space=(space)
-</b>
-
- </div>
-
- <div class="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 class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-space%3D_source')" id="l_method-i-space%3D_source">show</a>
-
- </p>
- <div id="method-i-space%3D_source" class="dyn-source">
- <pre>static VALUE cState_space_set(VALUE self, VALUE space)
-{
- GET_STATE(self);
- Check_Type(space, T_STRING);
- if (RSTRING_LEN(space) == 0) {
- if (state-&gt;space) {
- ruby_xfree(state-&gt;space);
- state-&gt;space = NULL;
- }
- } else {
- if (state-&gt;space) ruby_xfree(state-&gt;space);
- state-&gt;space = strdup(RSTRING_PTR(space));
- }
- return Qnil;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-space_before">
-
- <a name="method-i-space_before"></a><b> space_before()
-</b>
-
- </div>
-
- <div class="description">
- <p>
-This string is used to insert a space before the &#8217;:&#8217; in <a
-href="../../../JSON.html">JSON</a> objects.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-space_before_source')" id="l_method-i-space_before_source">show</a>
-
- </p>
- <div id="method-i-space_before_source" class="dyn-source">
- <pre>static VALUE cState_space_before(VALUE self)
-{
- GET_STATE(self);
- return state-&gt;space_before ? rb_str_new2(state-&gt;space_before) : rb_str_new2(&quot;&quot;);
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-space_before%3D">
-
- <a name="method-i-space_before%3D"></a><b> space_before=(space_before)
-</b>
-
- </div>
-
- <div class="description">
- <p>
-This string is used to insert a space before the &#8217;:&#8217; in <a
-href="../../../JSON.html">JSON</a> objects.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-space_before%3D_source')" id="l_method-i-space_before%3D_source">show</a>
-
- </p>
- <div id="method-i-space_before%3D_source" class="dyn-source">
- <pre>static VALUE cState_space_before_set(VALUE self, VALUE space_before)
-{
- GET_STATE(self);
- Check_Type(space_before, T_STRING);
- if (RSTRING_LEN(space_before) == 0) {
- if (state-&gt;space_before) {
- ruby_xfree(state-&gt;space_before);
- state-&gt;space_before = NULL;
- }
- } else {
- if (state-&gt;space_before) ruby_xfree(state-&gt;space_before);
- state-&gt;space_before = strdup(RSTRING_PTR(space_before));
- }
- return Qnil;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_h">
-
- <a name="method-i-to_h"></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('method-i-to_h_source')" id="l_method-i-to_h_source">show</a>
-
- </p>
- <div id="method-i-to_h_source" class="dyn-source">
- <pre>static VALUE cState_to_h(VALUE self)
-{
- VALUE result = rb_hash_new();
- GET_STATE(self);
- rb_hash_aset(result, ID2SYM(i_indent), rb_str_new(state-&gt;indent, state-&gt;indent_len));
- rb_hash_aset(result, ID2SYM(i_space), rb_str_new(state-&gt;space, state-&gt;space_len));
- rb_hash_aset(result, ID2SYM(i_space_before), rb_str_new(state-&gt;space_before, state-&gt;space_before_len));
- rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state-&gt;object_nl, state-&gt;object_nl_len));
- rb_hash_aset(result, ID2SYM(i_array_nl), rb_str_new(state-&gt;array_nl, state-&gt;array_nl_len));
- rb_hash_aset(result, ID2SYM(i_allow_nan), state-&gt;allow_nan ? Qtrue : Qfalse);
- rb_hash_aset(result, ID2SYM(i_ascii_only), state-&gt;ascii_only ? Qtrue : Qfalse);
- rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state-&gt;max_nesting));
- return result;
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Ext/Parser.html b/doc/classes/JSON/Ext/Parser.html
deleted file mode 100644
index 2c4512b..0000000
--- a/doc/classes/JSON/Ext/Parser.html
+++ /dev/null
@@ -1,488 +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::Ext::Parser</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::Ext::Parser
-
- <span class="parent">&lt;
-
- <a href="../../Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/ext/json/ext/parser/parser_c.html">ext/json/ext/parser/parser.c</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This is the <a href="../../JSON.html">JSON</a> parser implemented as a C
-extension. It can be configured to be used by setting
-</p>
-<pre>
- JSON.parser = JSON::Ext::Parser
-</pre>
-<p>
-with the method parser= in <a href="../../JSON.html">JSON</a>.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- <dt>P</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-parse">parse</a></li>
-
- </ul>
- </dd>
-
- <dt>S</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-source">source</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></a><b> new(source, opts => {})
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Creates a new <a href="Parser.html">JSON::Ext::Parser</a> instance for the
-string <em>source</em>.
-</p>
-<p>
-Creates a new <a href="Parser.html">JSON::Ext::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>
-<p>
-<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 => false|nil|0, it
-defaults to 19.
-</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 false, the <a
-href="Parser.html">Parser</a> doesn&#8217;t create additions even if a
-matchin class and create_id was found. This option defaults to true.
-</p>
-</li>
-<li><p>
-<b>object_class</b>: Defaults to Hash
-</p>
-</li>
-<li><p>
-<b>array_class</b>: Defaults to Array
-</p>
-</li>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre>static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
-{
- char *ptr;
- long len;
- VALUE source, opts;
- GET_PARSER;
- rb_scan_args(argc, argv, &quot;11&quot;, &amp;source, &amp;opts);
- source = convert_encoding(StringValue(source));
- ptr = RSTRING_PTR(source);
- len = RSTRING_LEN(source);
- if (!NIL_P(opts)) {
- opts = rb_convert_type(opts, T_HASH, &quot;Hash&quot;, &quot;to_hash&quot;);
- if (NIL_P(opts)) {
- rb_raise(rb_eArgError, &quot;opts needs to be like a hash&quot;);
- } else {
- VALUE tmp = ID2SYM(i_max_nesting);
- if (option_given_p(opts, tmp)) {
- VALUE max_nesting = rb_hash_aref(opts, tmp);
- if (RTEST(max_nesting)) {
- Check_Type(max_nesting, T_FIXNUM);
- json-&gt;max_nesting = FIX2INT(max_nesting);
- } else {
- json-&gt;max_nesting = 0;
- }
- } else {
- json-&gt;max_nesting = 19;
- }
- tmp = ID2SYM(i_allow_nan);
- if (option_given_p(opts, tmp)) {
- VALUE allow_nan = rb_hash_aref(opts, tmp);
- json-&gt;allow_nan = RTEST(allow_nan) ? 1 : 0;
- } else {
- json-&gt;allow_nan = 0;
- }
- tmp = ID2SYM(i_symbolize_names);
- if (option_given_p(opts, tmp)) {
- VALUE symbolize_names = rb_hash_aref(opts, tmp);
- json-&gt;symbolize_names = RTEST(symbolize_names) ? 1 : 0;
- } else {
- json-&gt;symbolize_names = 0;
- }
- tmp = ID2SYM(i_create_additions);
- if (option_given_p(opts, tmp)) {
- VALUE create_additions = rb_hash_aref(opts, tmp);
- if (RTEST(create_additions)) {
- json-&gt;create_id = rb_funcall(mJSON, i_create_id, 0);
- } else {
- json-&gt;create_id = Qnil;
- }
- } else {
- json-&gt;create_id = rb_funcall(mJSON, i_create_id, 0);
- }
- tmp = ID2SYM(i_object_class);
- if (option_given_p(opts, tmp)) {
- json-&gt;object_class = rb_hash_aref(opts, tmp);
- } else {
- json-&gt;object_class = Qnil;
- }
- tmp = ID2SYM(i_array_class);
- if (option_given_p(opts, tmp)) {
- json-&gt;array_class = rb_hash_aref(opts, tmp);
- } else {
- json-&gt;array_class = Qnil;
- }
- }
- } else {
- json-&gt;max_nesting = 19;
- json-&gt;allow_nan = 0;
- json-&gt;create_id = rb_funcall(mJSON, i_create_id, 0);
- json-&gt;object_class = Qnil;
- json-&gt;array_class = Qnil;
- }
- json-&gt;current_nesting = 0;
- json-&gt;len = len;
- json-&gt;source = ptr;
- json-&gt;Vsource = source;
- return self;
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-parse">
-
- <a name="method-i-parse"></a><b> parse()
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Parses the current <a href="../../JSON.html">JSON</a> text <em>source</em>
-and returns the complete data structure as a result.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-parse_source')" id="l_method-i-parse_source">show</a>
-
- </p>
- <div id="method-i-parse_source" class="dyn-source">
- <pre>static VALUE cParser_parse(VALUE self)
-{
- char *p, *pe;
- int cs = EVIL;
- VALUE result = Qnil;
- GET_PARSER;
-
-
-#line 1701 &quot;parser.c&quot;
- {
- cs = JSON_start;
- }
-
-#line 698 &quot;parser.rl&quot;
- p = json-&gt;source;
- pe = p + json-&gt;len;
-
-#line 1710 &quot;parser.c&quot;
- {
- if ( p == pe )
- goto _test_eof;
- switch ( cs )
- {
-st1:
- if ( ++p == pe )
- goto _test_eof1;
-case 1:
- switch( (*p) ) {
- case 13: goto st1;
- case 32: goto st1;
- case 47: goto st2;
- case 91: goto tr3;
- case 123: goto tr4;
- }
- if ( 9 &lt;= (*p) &amp;&amp; (*p) &lt;= 10 )
- goto st1;
- goto st0;
-st0:
-cs = 0;
- goto _out;
-st2:
- if ( ++p == pe )
- goto _test_eof2;
-case 2:
- switch( (*p) ) {
- case 42: goto st3;
- case 47: goto st5;
- }
- goto st0;
-st3:
- if ( ++p == pe )
- goto _test_eof3;
-case 3:
- if ( (*p) == 42 )
- goto st4;
- goto st3;
-st4:
- if ( ++p == pe )
- goto _test_eof4;
-case 4:
- switch( (*p) ) {
- case 42: goto st4;
- case 47: goto st1;
- }
- goto st3;
-st5:
- if ( ++p == pe )
- goto _test_eof5;
-case 5:
- if ( (*p) == 10 )
- goto st1;
- goto st5;
-tr3:
-#line 506 &quot;parser.rl&quot;
- {
- char *np;
- json-&gt;current_nesting = 1;
- np = JSON_parse_array(json, p, pe, &amp;result);
- if (np == NULL) { p--; {p++; cs = 10; goto _out;} } else {p = (( np))-1;}
- }
- goto st10;
-tr4:
-#line 499 &quot;parser.rl&quot;
- {
- char *np;
- json-&gt;current_nesting = 1;
- np = JSON_parse_object(json, p, pe, &amp;result);
- if (np == NULL) { p--; {p++; cs = 10; goto _out;} } else {p = (( np))-1;}
- }
- goto st10;
-st10:
- if ( ++p == pe )
- goto _test_eof10;
-case 10:
-#line 1787 &quot;parser.c&quot;
- switch( (*p) ) {
- case 13: goto st10;
- case 32: goto st10;
- case 47: goto st6;
- }
- if ( 9 &lt;= (*p) &amp;&amp; (*p) &lt;= 10 )
- goto st10;
- goto st0;
-st6:
- if ( ++p == pe )
- goto _test_eof6;
-case 6:
- switch( (*p) ) {
- case 42: goto st7;
- case 47: goto st9;
- }
- goto st0;
-st7:
- if ( ++p == pe )
- goto _test_eof7;
-case 7:
- if ( (*p) == 42 )
- goto st8;
- goto st7;
-st8:
- if ( ++p == pe )
- goto _test_eof8;
-case 8:
- switch( (*p) ) {
- case 42: goto st8;
- case 47: goto st10;
- }
- goto st7;
-st9:
- if ( ++p == pe )
- goto _test_eof9;
-case 9:
- if ( (*p) == 10 )
- goto st10;
- goto st9;
- }
- _test_eof1: cs = 1; goto _test_eof;
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof10: cs = 10; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof9: cs = 9; goto _test_eof;
-
- _test_eof: {}
- _out: {}
- }
-
-#line 701 &quot;parser.rl&quot;
-
- if (cs &gt;= JSON_first_final &amp;&amp; p == pe) {
- return result;
- } else {
- rb_raise(eParserError, &quot;%u: unexpected token at '%s'&quot;, __LINE__, p);
- return Qnil;
- }
-}</pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-source">
-
- <a name="method-i-source"></a><b> source()
-</b>
-
- </div>
-
- <div class="description">
- <p>
-Returns a copy of the current <em>source</em> string, that was used to
-construct this <a href="Parser.html">Parser</a>.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-source_source')" id="l_method-i-source_source">show</a>
-
- </p>
- <div id="method-i-source_source" class="dyn-source">
- <pre>static VALUE cParser_source(VALUE self)
-{
- GET_PARSER;
- return rb_str_dup(json-&gt;Vsource);
-}</pre>
- </div>
- </div>
-
- </div>
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/GeneratorError.html b/doc/classes/JSON/GeneratorError.html
deleted file mode 100644
index a9f5b5e..0000000
--- a/doc/classes/JSON/GeneratorError.html
+++ /dev/null
@@ -1,67 +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::GeneratorError</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::GeneratorError
-
- <span class="parent">&lt;
-
- <a href="JSONError.html">JSON::JSONError</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This exception is raised, if a generator or unparser error occurs.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/JSONError.html b/doc/classes/JSON/JSONError.html
deleted file mode 100644
index cbbda42..0000000
--- a/doc/classes/JSON/JSONError.html
+++ /dev/null
@@ -1,67 +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::JSONError</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::JSONError
-
- <span class="parent">&lt;
-
- StandardError
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-The base exception for <a href="../JSON.html">JSON</a> errors.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/MissingUnicodeSupport.html b/doc/classes/JSON/MissingUnicodeSupport.html
deleted file mode 100644
index 4efad57..0000000
--- a/doc/classes/JSON/MissingUnicodeSupport.html
+++ /dev/null
@@ -1,68 +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::MissingUnicodeSupport</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::MissingUnicodeSupport
-
- <span class="parent">&lt;
-
- <a href="JSONError.html">JSON::JSONError</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div 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>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/NestingError.html b/doc/classes/JSON/NestingError.html
deleted file mode 100644
index 076394b..0000000
--- a/doc/classes/JSON/NestingError.html
+++ /dev/null
@@ -1,68 +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::NestingError</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::NestingError
-
- <span class="parent">&lt;
-
- <a href="ParserError.html">JSON::ParserError</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This exception is raised, if the nesting of parsed datastructures is too
-deep.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/ParserError.html b/doc/classes/JSON/ParserError.html
deleted file mode 100644
index f4f4df8..0000000
--- a/doc/classes/JSON/ParserError.html
+++ /dev/null
@@ -1,67 +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::ParserError</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::ParserError
-
- <span class="parent">&lt;
-
- <a href="JSONError.html">JSON::JSONError</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This exception is raised, if a parser error occurs.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure.html b/doc/classes/JSON/Pure.html
deleted file mode 100644
index a88907c..0000000
--- a/doc/classes/JSON/Pure.html
+++ /dev/null
@@ -1,75 +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</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
-
- </h1>
- <ul class="files">
-
- <li><a href="../../files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a></li>
-
- <li><a href="../../files/lib/json/pure/parser_rb.html">lib/json/pure/parser.rb</a></li>
-
- <li><a href="../../files/lib/json/pure_rb.html">lib/json/pure.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This module holds all the modules/classes that implement JSON&#8217;s
-functionality in pure ruby.
-</p>
-
- </div>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <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>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/JSON/Pure/Generator.html b/doc/classes/JSON/Pure/Generator.html
deleted file mode 100644
index 496ed3c..0000000
--- a/doc/classes/JSON/Pure/Generator.html
+++ /dev/null
@@ -1,63 +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</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
-
- </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="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>
- </body>
-</html> \ No newline at end of file
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 833aa08..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 305</span>
-305: <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>, *)
-306: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>
-307: <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>)
-308: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">check_max_nesting</span>(<span class="ruby-identifier">depth</span>)
-309: <span class="ruby-keyword kw">end</span>
-310: <span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>, <span class="ruby-identifier">depth</span>)
-311: <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 1cff241..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 442</span>
-442: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</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 4976211..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 347</span>
-347: <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>, *)
-348: <span class="ruby-keyword kw">case</span>
-349: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">infinite?</span>
-350: <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>
-351: <span class="ruby-identifier">to_s</span>
-352: <span class="ruby-keyword kw">else</span>
-353: <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-node">&quot;#{self} not allowed in JSON&quot;</span>
-354: <span class="ruby-keyword kw">end</span>
-355: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">nan?</span>
-356: <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>
-357: <span class="ruby-identifier">to_s</span>
-358: <span class="ruby-keyword kw">else</span>
-359: <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-node">&quot;#{self} not allowed in JSON&quot;</span>
-360: <span class="ruby-keyword kw">end</span>
-361: <span class="ruby-keyword kw">else</span>
-362: <span class="ruby-identifier">to_s</span>
-363: <span class="ruby-keyword kw">end</span>
-364: <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 b011da0..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 250</span>
-250: <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>, *)
-251: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>
-252: <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>)
-253: <span class="ruby-identifier">state</span>.<span class="ruby-identifier">check_max_nesting</span>(<span class="ruby-identifier">depth</span>)
-254: <span class="ruby-keyword kw">end</span>
-255: <span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>, <span class="ruby-identifier">depth</span>)
-256: <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 49bcace..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 342</span>
-342: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</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 8f6f2cd..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 447</span>
-447: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</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 e103ba6..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*)
-
- </div>
-
- <div class="description">
- <p>
-Converts this object to a string (calling #), 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">#</a> was defined for some object.
-</p>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 241</span>
-241: <span class="ruby-keyword kw">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 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 94da5f0..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="#method-c-included">included</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</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>
- </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="method-c-included">
-
- <a name="method-c-included"></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('method-c-included_source')" id="l_method-c-included_source">show</a>
-
- </p>
- <div id="method-c-included_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 413</span>
-413: <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>)
-414: <span class="ruby-identifier">modul</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Extend</span>
-415: <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="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 372</span>
-372: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-373: <span class="ruby-identifier">state</span>, = *<span class="ruby-identifier">args</span>
-374: <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>)
-375: <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>
-376: <span class="ruby-identifier">string</span> = <span class="ruby-keyword kw">self</span>
-377: <span class="ruby-keyword kw">else</span>
-378: <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>)
-379: <span class="ruby-keyword kw">end</span>
-380: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span>
-381: <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>
-382: <span class="ruby-keyword kw">else</span>
-383: <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>
-384: <span class="ruby-keyword kw">end</span>
-385: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 390</span>
-390: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-391: <span class="ruby-identifier">state</span>, = *<span class="ruby-identifier">args</span>
-392: <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>)
-393: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span>
-394: <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>
-395: <span class="ruby-keyword kw">else</span>
-396: <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>
-397: <span class="ruby-keyword kw">end</span>
-398: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_json_raw">
-
- <a name="method-i-to_json_raw"></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#method-i-to_json_raw_object">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('method-i-to_json_raw_source')" id="l_method-i-to_json_raw_source">show</a>
-
- </p>
- <div id="method-i-to_json_raw_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 430</span>
-430: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json_raw</span>(*<span class="ruby-identifier">args</span>)
-431: <span class="ruby-identifier">to_json_raw_object</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-432: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_json_raw_object">
-
- <a name="method-i-to_json_raw_object"></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('method-i-to_json_raw_object_source')" id="l_method-i-to_json_raw_object_source">show</a>
-
- </p>
- <div id="method-i-to_json_raw_object_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 421</span>
-421: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json_raw_object</span>
-422: {
-423: <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>,
-424: <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>),
-425: }
-426: <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 ba80233..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="#method-i-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-json_create">
-
- <a name="method-i-json_create"></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('method-i-json_create_source')" id="l_method-i-json_create_source">show</a>
-
- </p>
- <div id="method-i-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 407</span>
-407: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">o</span>)
-408: <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>)
-409: <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 b1d09b1..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="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Instance Public methods</div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></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('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 437</span>
-437: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</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 b1c434c..0000000
--- a/doc/classes/JSON/Pure/Generator/State.html
+++ /dev/null
@@ -1,596 +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="#method-i-%5B%5D">[]</a></li>
-
- </ul>
- </dd>
-
- <dt>A</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-allow_nan%3F">allow_nan?</a>,</li>
-
- <li><a href="#method-i-ascii_only%3F">ascii_only?</a></li>
-
- </ul>
- </dd>
-
- <dt>C</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-check_circular%3F">check_circular?</a>,</li>
-
- <li><a href="#method-i-configure">configure</a></li>
-
- </ul>
- </dd>
-
- <dt>F</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-from_state">from_state</a></li>
-
- </ul>
- </dd>
-
- <dt>G</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-generate">generate</a></li>
-
- </ul>
- </dd>
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_h">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="method-c-from_state">
-
- <a name="method-c-from_state"></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('method-c-from_state_source')" id="l_method-c-from_state_source">show</a>
-
- </p>
- <div id="method-c-from_state_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 108</span>
-108: <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>)
-109: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">opts</span>
-110: <span class="ruby-keyword kw">when</span> <span class="ruby-keyword kw">self</span>
-111: <span class="ruby-identifier">opts</span>
-112: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span>
-113: <span class="ruby-identifier">new</span>(<span class="ruby-identifier">opts</span>)
-114: <span class="ruby-keyword kw">else</span>
-115: <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span>
-116: <span class="ruby-keyword kw">end</span>
-117: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></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><p>
-<b>indent</b>: a string used to indent levels (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b>space</b>: a string that is put after, a : or , delimiter (default:
-&#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<b><a href="State.html#space_before">space_before</a></b>: a string that is
-put before a : pair delimiter (default: &#8217;&#8217;),
-</p>
-</li>
-<li><p>
-<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;),
-</p>
-</li>
-<li><p>
-<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;),
-</p>
-</li>
-<li><p>
-<b>check_circular</b>: is deprecated now, use the :<a
-href="State.html#max_nesting">max_nesting</a> option instead,
-</p>
-</li>
-<li><p>
-<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.
-</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>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 134</span>
-134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">opts</span> = {})
-135: <span class="ruby-ivar">@indent</span> = <span class="ruby-value str">''</span>
-136: <span class="ruby-ivar">@space</span> = <span class="ruby-value str">''</span>
-137: <span class="ruby-ivar">@space_before</span> = <span class="ruby-value str">''</span>
-138: <span class="ruby-ivar">@object_nl</span> = <span class="ruby-value str">''</span>
-139: <span class="ruby-ivar">@array_nl</span> = <span class="ruby-value str">''</span>
-140: <span class="ruby-ivar">@allow_nan</span> = <span class="ruby-keyword kw">false</span>
-141: <span class="ruby-ivar">@ascii_only</span> = <span class="ruby-keyword kw">false</span>
-142: <span class="ruby-identifier">configure</span> <span class="ruby-identifier">opts</span>
-143: <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="method-i-%5B%5D">
-
- <a name="method-i-%5B%5D"></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('method-i-%5B%5D_source')" id="l_method-i-%5B%5D_source">show</a>
-
- </p>
- <div id="method-i-%5B%5D_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 231</span>
-231: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">name</span>)
-232: <span class="ruby-identifier">__send__</span> <span class="ruby-identifier">name</span>
-233: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-allow_nan%3F">
-
- <a name="method-i-allow_nan%3F"></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('method-i-allow_nan%3F_source')" id="l_method-i-allow_nan%3F_source">show</a>
-
- </p>
- <div id="method-i-allow_nan%3F_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 181</span>
-181: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">allow_nan?</span>
-182: <span class="ruby-ivar">@allow_nan</span>
-183: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-ascii_only%3F">
-
- <a name="method-i-ascii_only%3F"></a><b>ascii_only?</b>()
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-ascii_only%3F_source')" id="l_method-i-ascii_only%3F_source">show</a>
-
- </p>
- <div id="method-i-ascii_only%3F_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 185</span>
-185: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ascii_only?</span>
-186: <span class="ruby-ivar">@ascii_only</span>
-187: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-check_circular%3F">
-
- <a name="method-i-check_circular%3F"></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('method-i-check_circular%3F_source')" id="l_method-i-check_circular%3F_source">show</a>
-
- </p>
- <div id="method-i-check_circular%3F_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 175</span>
-175: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_circular?</span>
-176: <span class="ruby-operator">!</span><span class="ruby-ivar">@max_nesting</span>.<span class="ruby-identifier">zero?</span>
-177: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-configure">
-
- <a name="method-i-configure"></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('method-i-configure_source')" id="l_method-i-configure_source">show</a>
-
- </p>
- <div id="method-i-configure_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 191</span>
-191: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>)
-192: <span class="ruby-ivar">@indent</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:indent</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:indent</span>)
-193: <span class="ruby-ivar">@space</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:space</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:space</span>)
-194: <span class="ruby-ivar">@space_before</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">: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-value">:space_before</span>)
-195: <span class="ruby-ivar">@object_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">: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-value">:object_nl</span>)
-196: <span class="ruby-ivar">@array_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">: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-value">:array_nl</span>)
-197: <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 kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:allow_nan</span>)
-198: <span class="ruby-ivar">@ascii_only</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">: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-value">:ascii_only</span>)
-199: <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-value">:max_nesting</span>) <span class="ruby-comment cmt"># defaults to 19</span>
-200: <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">19</span>
-201: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
-202: <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
-203: <span class="ruby-keyword kw">else</span>
-204: <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span>
-205: <span class="ruby-keyword kw">end</span>
-206: <span class="ruby-keyword kw">self</span>
-207: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-generate">
-
- <a name="method-i-generate"></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('method-i-generate_source')" id="l_method-i-generate_source">show</a>
-
- </p>
- <div id="method-i-generate_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 222</span>
-222: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)
-223: <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>)
-224: <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>
-225: <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>
-226: <span class="ruby-keyword kw">end</span>
-227: <span class="ruby-identifier">result</span>
-228: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_h">
-
- <a name="method-i-to_h"></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('method-i-to_h_source')" id="l_method-i-to_h_source">show</a>
-
- </p>
- <div id="method-i-to_h_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 211</span>
-211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
-212: <span class="ruby-identifier">result</span> = {}
-213: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">iv</span> <span class="ruby-keyword kw">in</span> <span class="ruby-node">]indent space space_before object_nl array_nl allow_nan max_nesting]</span>
-214: <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>)
-215: <span class="ruby-keyword kw">end</span>
-216: <span class="ruby-identifier">result</span>
-217: <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/Parser.html b/doc/classes/JSON/Pure/Parser.html
deleted file mode 100644
index 6efa138..0000000
--- a/doc/classes/JSON/Pure/Parser.html
+++ /dev/null
@@ -1,407 +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::Parser</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::Parser
-
- <span class="parent">&lt;
-
- StringScanner
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../../../files/lib/json/pure/parser_rb.html">lib/json/pure/parser.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
- <div 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>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>N</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-new">new</a></li>
-
- </ul>
- </dd>
-
- <dt>P</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-parse">parse</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Constants</div>
- <table border='0' cellpadding='5'>
-
- <tr valign='top'>
- <td class="attr-name">STRING</td>
- <td>=</td>
- <td class="attr-value">/&quot; ((?:[^\x0-\x1f&quot;\\] | # escaped special characters: \\[&quot;\\\/bfnrt] | \\u[0-9a-fA-F]{4} | # match all but escaped special characters: \\[\x20-\x21\x23-\x2e\x30-\x5b\x5d-\x61\x63-\x65\x67-\x6d\x6f-\x71\x73\x75-\xff])*) &quot;/nx</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">INTEGER</td>
- <td>=</td>
- <td class="attr-value">/(-?0|-?[1-9]\d*)/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">FLOAT</td>
- <td>=</td>
- <td class="attr-value">/(-? (?:0|[1-9]\d*) (?: \.\d+(?i:e[+-]?\d+) | \.\d+ | (?i:e[+-]?\d+) ) )/x</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">NAN</td>
- <td>=</td>
- <td class="attr-value">/NaN/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">INFINITY</td>
- <td>=</td>
- <td class="attr-value">/Infinity/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">MINUS_INFINITY</td>
- <td>=</td>
- <td class="attr-value">/-Infinity/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">OBJECT_OPEN</td>
- <td>=</td>
- <td class="attr-value">/\{/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">OBJECT_CLOSE</td>
- <td>=</td>
- <td class="attr-value">/\}/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">ARRAY_OPEN</td>
- <td>=</td>
- <td class="attr-value">/\[/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">ARRAY_CLOSE</td>
- <td>=</td>
- <td class="attr-value">/\]/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">PAIR_DELIMITER</td>
- <td>=</td>
- <td class="attr-value">/:/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">COLLECTION_DELIMITER</td>
- <td>=</td>
- <td class="attr-value">/,/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">TRUE</td>
- <td>=</td>
- <td class="attr-value">/true/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">FALSE</td>
- <td>=</td>
- <td class="attr-value">/false/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">NULL</td>
- <td>=</td>
- <td class="attr-value">/null/</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">IGNORE</td>
- <td>=</td>
- <td class="attr-value">%r( (?: //[^\n\r]*[\n\r]| # line comments /\* # c-style comments (?: [^*/]| # normal chars /[^*]| # slashes that do not start a nested comment \*[^/]| # asterisks that do not end this comment /(?=\*/) # single slash before this comment's end )* \*/ # the End of this comment |[ \t\r\n]+ # whitespaces: space, horicontal tab, lf, cr )+ )mx</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">UNPARSED</td>
- <td>=</td>
- <td class="attr-value">Object.new</td>
- </tr>
-
-
- <tr valign='top'>
- <td class="attr-name">UNESCAPE_MAP</td>
- <td>=</td>
- <td class="attr-value">Hash.new { |h, k| h[k] = k.chr }</td>
- </tr>
-
- <tr valign='top'>
- <td>&nbsp;</td>
- <td colspan="2" class="attr-desc"><p>
-Unescape characters in strings.
-</p>
-</td>
- </tr>
-
-
- </table>
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-new">
-
- <a name="method-c-new"></a><b>new</b>(source, opts = {})
-
- </div>
-
- <div class="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 => false|nil|0, it
-defaults to 19.
-</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 false, the <a
-href="Parser.html">Parser</a> doesn&#8217;t create additions even if a
-matchin class and create_id was found. This option defaults to true.
-</p>
-</li>
-<li><p>
-<b>object_class</b>: Defaults to Hash
-</p>
-</li>
-<li><p>
-<b>array_class</b>: Defaults to Array
-</p>
-</li>
-</ul>
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
-
- </p>
- <div id="method-c-new_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/parser.rb, line 71</span>
- 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">opts</span> = {})
- 72: <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span>)
- 73: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</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">ASCII_8BIT</span>
- 74: <span class="ruby-identifier">b</span> = <span class="ruby-identifier">source</span>[<span class="ruby-value">0</span>, <span class="ruby-value">4</span>].<span class="ruby-identifier">bytes</span>.<span class="ruby-identifier">to_a</span>
- 75: <span class="ruby-identifier">source</span> = <span class="ruby-keyword kw">case</span>
- 76: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
- 77: <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_32BE</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>)
- 78: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
- 79: <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_16BE</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>)
- 80: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
- 81: <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_32LE</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>)
- 82:
- 83: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
- 84: <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_16LE</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>)
- 85: <span class="ruby-keyword kw">else</span>
- 86: <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>
- 87: <span class="ruby-keyword kw">end</span>
- 88: <span class="ruby-keyword kw">else</span>
- 89: <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</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>)
- 90: <span class="ruby-keyword kw">end</span>
- 91: <span class="ruby-identifier">source</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">ASCII_8BIT</span>)
- 92: <span class="ruby-keyword kw">else</span>
- 93: <span class="ruby-identifier">b</span> = <span class="ruby-identifier">source</span>
- 94: <span class="ruby-identifier">source</span> = <span class="ruby-keyword kw">case</span>
- 95: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
- 96: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-value str">'utf-8'</span>, <span class="ruby-value str">'utf-32be'</span>, <span class="ruby-identifier">b</span>)
- 97: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
- 98: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-value str">'utf-8'</span>, <span class="ruby-value str">'utf-16be'</span>, <span class="ruby-identifier">b</span>)
- 99: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
-100: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-value str">'utf-8'</span>, <span class="ruby-value str">'utf-32le'</span>, <span class="ruby-identifier">b</span>)
-101: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
-102: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-value str">'utf-8'</span>, <span class="ruby-value str">'utf-16le'</span>, <span class="ruby-identifier">b</span>)
-103: <span class="ruby-keyword kw">else</span>
-104: <span class="ruby-identifier">b</span>
-105: <span class="ruby-keyword kw">end</span>
-106: <span class="ruby-keyword kw">end</span>
-107: <span class="ruby-keyword kw">super</span> <span class="ruby-identifier">source</span>
-108: <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-value">:max_nesting</span>) <span class="ruby-comment cmt"># defaults to 19</span>
-109: <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">19</span>
-110: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
-111: <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:max_nesting</span>]
-112: <span class="ruby-keyword kw">else</span>
-113: <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span>
-114: <span class="ruby-keyword kw">end</span>
-115: <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>]
-116: <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>]
-117: <span class="ruby-identifier">ca</span> = <span class="ruby-keyword kw">true</span>
-118: <span class="ruby-identifier">ca</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-value">:create_additions</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-value">:create_additions</span>)
-119: <span class="ruby-ivar">@create_id</span> = <span class="ruby-identifier">ca</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 kw">nil</span>
-120: <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>
-121: <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>
-122: <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="method-i-parse">
-
- <a name="method-i-parse"></a><b>parse</b>()
-
- </div>
-
- <div class="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>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-parse_source')" id="l_method-i-parse_source">show</a>
-
- </p>
- <div id="method-i-parse_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/pure/parser.rb, line 128</span>
-128: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span>
-129: <span class="ruby-identifier">reset</span>
-130: <span class="ruby-identifier">obj</span> = <span class="ruby-keyword kw">nil</span>
-131: <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">eos?</span>
-132: <span class="ruby-keyword kw">case</span>
-133: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">scan</span>(<span class="ruby-constant">OBJECT_OPEN</span>)
-134: <span class="ruby-identifier">obj</span> <span class="ruby-keyword kw">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>
-135: <span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">1</span>
-136: <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_object</span>
-137: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">scan</span>(<span class="ruby-constant">ARRAY_OPEN</span>)
-138: <span class="ruby-identifier">obj</span> <span class="ruby-keyword kw">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>
-139: <span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">1</span>
-140: <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_array</span>
-141: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">skip</span>(<span class="ruby-constant">IGNORE</span>)
-142: ;
-143: <span class="ruby-keyword kw">else</span>
-144: <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>
-145: <span class="ruby-keyword kw">end</span>
-146: <span class="ruby-keyword kw">end</span>
-147: <span class="ruby-identifier">obj</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-value str">&quot;source did not contain any JSON!&quot;</span>
-148: <span class="ruby-identifier">obj</span>
-149: <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/Kernel.html b/doc/classes/Kernel.html
deleted file mode 100644
index 5365af3..0000000
--- a/doc/classes/Kernel.html
+++ /dev/null
@@ -1,54 +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>Kernel</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>
- Kernel
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/common_rb.html">lib/json/common.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/classes/Object.html b/doc/classes/Object.html
deleted file mode 100644
index 49bba04..0000000
--- a/doc/classes/Object.html
+++ /dev/null
@@ -1,149 +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>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">Class</span>
- Object
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/rails_rb.html">lib/json/add/rails.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 10</span>
-10: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-11: <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">new</span>
-12: <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span> <span class="ruby-keyword kw">in</span> <span class="ruby-identifier">object</span>
-13: <span class="ruby-keyword kw">next</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span>
-14: <span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">&quot;@#{key}&quot;</span>, <span class="ruby-identifier">value</span>
-15: <span class="ruby-keyword kw">end</span>
-16: <span class="ruby-identifier">obj</span>
-17: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*a)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 19</span>
-19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-20: <span class="ruby-identifier">result</span> = {
-21: <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>
-22: }
-23: <span class="ruby-identifier">instance_variables</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-identifier">result</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">r</span>, <span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
-24: <span class="ruby-identifier">r</span>[<span class="ruby-identifier">name</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">1</span>]] = <span class="ruby-identifier">instance_variable_get</span> <span class="ruby-identifier">name</span>
-25: <span class="ruby-identifier">r</span>
-26: <span class="ruby-keyword kw">end</span>
-27: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-28: <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/Range.html b/doc/classes/Range.html
deleted file mode 100644
index e612b14..0000000
--- a/doc/classes/Range.html
+++ /dev/null
@@ -1,140 +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>Range</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>
- Range
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 93</span>
-93: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-94: <span class="ruby-identifier">new</span>(*<span class="ruby-identifier">object</span>[<span class="ruby-value str">'a'</span>])
-95: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*args)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 97</span>
- 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
- 98: {
- 99: <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>,
-100: <span class="ruby-value str">'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> ]
-101: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-102: <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/Regexp.html b/doc/classes/Regexp.html
deleted file mode 100644
index 896a5a2..0000000
--- a/doc/classes/Regexp.html
+++ /dev/null
@@ -1,141 +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>Regexp</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>
- Regexp
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 137</span>
-137: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-138: <span class="ruby-identifier">new</span>(<span class="ruby-identifier">object</span>[<span class="ruby-value str">'s'</span>], <span class="ruby-identifier">object</span>[<span class="ruby-value str">'o'</span>])
-139: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 141</span>
-141: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*)
-142: {
-143: <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>,
-144: <span class="ruby-value str">'o'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>,
-145: <span class="ruby-value str">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">source</span>,
-146: }.<span class="ruby-identifier">to_json</span>
-147: <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/Struct.html b/doc/classes/Struct.html
deleted file mode 100644
index a885a59..0000000
--- a/doc/classes/Struct.html
+++ /dev/null
@@ -1,142 +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>Struct</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>
- Struct
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 106</span>
-106: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-107: <span class="ruby-identifier">new</span>(*<span class="ruby-identifier">object</span>[<span class="ruby-value str">'v'</span>])
-108: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*args)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 110</span>
-110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-111: <span class="ruby-identifier">klass</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>
-112: <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">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-value str">&quot;Only named structs are supported!&quot;</span>
-113: {
-114: <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>,
-115: <span class="ruby-value str">'v'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">values</span>,
-116: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-117: <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/Symbol.html b/doc/classes/Symbol.html
deleted file mode 100644
index bb19f24..0000000
--- a/doc/classes/Symbol.html
+++ /dev/null
@@ -1,169 +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>Symbol</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>
- Symbol
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/rails_rb.html">lib/json/add/rails.rb</a></li>
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a>,</li>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(o)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 18</span>
-18: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">o</span>)
-19: <span class="ruby-identifier">o</span>[<span class="ruby-value str">'s'</span>].<span class="ruby-identifier">to_sym</span>
-20: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*a)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 11</span>
-11: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-12: {
-13: <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>,
-14: <span class="ruby-value str">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">to_s</span>,
-15: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-16: <span class="ruby-keyword kw">end</span></pre>
- </div>
- </div>
-
- </div>
-
- <div class="method">
- <div class="title" id="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*a)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 32</span>
-32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-33: <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">a</span>)
-34: <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/Time.html b/doc/classes/Time.html
deleted file mode 100644
index 1794e3d..0000000
--- a/doc/classes/Time.html
+++ /dev/null
@@ -1,148 +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>Time</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>
- Time
-
- <span class="parent">&lt;
-
- <a href="Object.html">Object</a>
-
- </span>
-
- </h1>
- <ul class="files">
-
- <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
-
- </ul>
- </div>
- <div id="bodyContent">
- <div id="content">
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Methods</div>
- <dl class="methods">
-
- <dt>J</dt>
- <dd>
- <ul>
-
- <li><a href="#method-c-json_create">json_create</a></li>
-
- </ul>
- </dd>
-
- <dt>T</dt>
- <dd>
- <ul>
-
- <li><a href="#method-i-to_json">to_json</a></li>
-
- </ul>
- </dd>
-
- </dl>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Class Public methods</div>
-
- <div class="method">
- <div class="title" id="method-c-json_create">
-
- <a name="method-c-json_create"></a><b>json_create</b>(object)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
-
- </p>
- <div id="method-c-json_create_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 24</span>
-24: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
-25: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">usec</span> = <span class="ruby-identifier">object</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'u'</span>) <span class="ruby-comment cmt"># used to be tv_usec -&gt; tv_nsec</span>
-26: <span class="ruby-identifier">object</span>[<span class="ruby-value str">'n'</span>] = <span class="ruby-identifier">usec</span> * <span class="ruby-value">1000</span>
-27: <span class="ruby-keyword kw">end</span>
-28: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:tv_nsec</span>)
-29: <span class="ruby-identifier">at</span>(*<span class="ruby-identifier">object</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-value str">'s'</span>, <span class="ruby-value str">'n'</span>))
-30: <span class="ruby-keyword kw">else</span>
-31: <span class="ruby-identifier">at</span>(<span class="ruby-identifier">object</span>[<span class="ruby-value str">'s'</span>], <span class="ruby-identifier">object</span>[<span class="ruby-value str">'n'</span>] <span class="ruby-operator">/</span> <span class="ruby-value">1000</span>)
-32: <span class="ruby-keyword kw">end</span>
-33: <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="method-i-to_json">
-
- <a name="method-i-to_json"></a><b>to_json</b>(*args)
-
- </div>
-
-
-
-
- <div class="sourcecode">
- <p class="source-link">
- Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
-
- </p>
- <div id="method-i-to_json_source" class="dyn-source">
- <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 35</span>
-35: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-36: {
-37: <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>,
-38: <span class="ruby-value str">'s'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">tv_sec</span>,
-39: <span class="ruby-value str">'n'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-value">:tv_nsec</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">tv_nsec</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">tv_usec</span> * <span class="ruby-value">1000</span>
-40: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
-41: <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/created.rid b/doc/created.rid
deleted file mode 100644
index 3ce18a6..0000000
--- a/doc/created.rid
+++ /dev/null
@@ -1,14 +0,0 @@
-Fri, 06 Aug 2010 13:59:06 +0200
-ext/json/ext/parser/parser.c Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/add/core.rb Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/pure.rb Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/common.rb Fri, 06 Aug 2010 13:59:05 +0200
-ext/json/ext/generator/generator.c Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/version.rb Fri, 06 Aug 2010 13:59:06 +0200
-lib/json/pure/parser.rb Fri, 06 Aug 2010 13:59:05 +0200
-lib/json.rb Fri, 06 Aug 2010 13:59:05 +0200
-README Fri, 06 Aug 2010 13:59:04 +0200
-lib/json/ext.rb Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/pure/generator.rb Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/editor.rb Fri, 06 Aug 2010 13:59:05 +0200
-lib/json/add/rails.rb Fri, 06 Aug 2010 13:59:05 +0200
diff --git a/doc/css/main.css b/doc/css/main.css
deleted file mode 100755
index 4b403ad..0000000
--- a/doc/css/main.css
+++ /dev/null
@@ -1,278 +0,0 @@
-body {
- font-family: "Helvetica Neue", Arial, sans-serif;
- background: #FFF;
- color: #000;
- margin: 0px;
- font-size: 0.82em;
- line-height: 1.25em;
-}
-
-a {
- color: #00F;
- text-decoration: none;
-}
-
-a:hover {
- color: #333;
- background: #FE8;
-}
-
-p {
- margin-bottom: 1em;
-}
-
-h1 {
- font-size: 2.1em;
- font-weight: normal;
- line-height: 1.2em;
- margin: 1.4em 0 0.7em 0;
-}
-
-h2 {
- font-size: 1.6em;
- margin: 1.8em 0 0.8em 0;
- font-weight: normal;
- line-height: 1.2em;
-}
-
-h3 {
- font-size: 1.4em;
- color:#555;
- margin: 1.4em 0 0.7em 0;
- font-weight: normal;
-}
-
-h4 {
- margin: 1.4em 0 0.5em 0;
- font-size: 1em;
-}
-
-table
-{
- margin-bottom: 1em;
-}
-
-td, th
-{
- padding: 0 0.7em 0.3em 0;
-}
-
-th
-{
- font-weight: bold;
-}
-
-.clear
-{
- clear: both;
- width: 0; height: 0;
-}
-
-dt
-{
- margin-bottom: 0.3em;
- font-weight: bold;
-}
-
-dd
-{
- margin-left: 2em;
- margin-bottom: 1em;
-}
-
-dd p
-{
- margin-top: 0.6em;
-}
-
-li
-{
- margin: 0 0 0.5em 2em;
-}
-
-ul li
-{
- list-style: disc;
-}
-
-ol li
-{
- list-style: decimal;
-}
-
-.banner
-{
- background: #EDF3FE;
- border-bottom: 1px solid #ccc;
- padding: 1em 2em 0.5em 2em;
-}
-.banner h1
-{
- font-size: 1.2em;
- margin: 0;
-}
-
-.banner h1 .type
-{
- font-size: 0.833em;
- display:block;
-}
-
-.banner h1 .type,
-.banner h1 .parent
-{
- color: #666;
-}
-
-.banner ul
-{
- margin-top: 0.3em;
- margin-bottom: 0;
- font-size: 0.85em;
-}
-
-.banner li
-{
- list-style: none;
- margin-left: 0;
- margin-bottom: 0;
-}
-
-pre
-{
- margin-bottom: 1em;
-}
-
-.methods dt
-{
- width: 1em;
- font-size: 1.5em;
- color:#AAA;
- position: absolute;
- font-weight: normal;
- margin: 0;
-}
-
-.methods dd
-{
- margin-left: 2.5em;
- min-height: 1.8em;
- -height: 1.8em;
- padding-bottom: 0.8em;
-}
-
-
-.methods ul li
-{
- margin-right: 0.7em;
- margin-left: 0;
- list-style: none;
- display: inline;
-}
-
-#content {
- margin: 2em;
- margin-left: 3.5em;
- margin-right: 3.5em;
-}
-
-
-.sectiontitle {
- margin-top: 2em;
- margin-bottom: 1.3em;
- margin-left: -1.2em;
- font-size: 1.2em;
- padding: 0 0 0.25em 0;
- font-weight: bold;
- border-bottom: 1px solid #000;
-}
-
-.attr-rw {
- padding-right: 1em;
- text-align: center;
- color: #055;
-}
-
-.attr-name {
- font-weight: bold;
- padding-right: 1em;
-}
-
-.attr-desc {
-}
-
-tt {
- font-size: 1.15em;
-}
-
-.attr-value {
- font-family: monospace;
- padding-left: 1em;
- font-size: 1.15em;
-}
-
-.dyn-source {
- display: none;
- background: #fffde8;
- color: #000;
- border: #ffe0bb dotted 1px;
- margin: 0.5em 2em 0.5em 0;
- padding: 0.5em;
-}
-
-.dyn-source .cmt {
- color: #00F;
- font-style: italic;
-}
-
-.dyn-source .kw {
- color: #070;
- font-weight: bold;
-}
-
-.description pre {
- padding: 0.5em;
- border: #ffe0bb dotted 1px;
- background: #fffde8;
-}
-
-.method {
- margin-bottom: 2em;
-}
-.method .description,
-.method .sourcecode
-{
- margin-left: 1.2em;
-}
-.method h4
-{
- border-bottom: 1px dotted #999;
- padding: 0 0 0.2em 0;
- margin-bottom: 0.8em;
- font-size: 1.1em;
- color:#333;
-}
-.method .title {
- border-bottom: 1px dotted #666;
- padding: 0 0 0.15em 0;
- margin: 0 0 0.5em 0;
- font-size: 1.2em;
- line-height: 1.25em;
-}
-
-.method .sourcecode p.source-link {
- text-indent: 0em;
- margin-top: 0.5em;
-}
-
-.method .aka {
- margin-top: 0.3em;
- margin-left: 1em;
- font-style: italic;
- text-indent: 2em;
-}
-
-.method .source-link
-{
- font-size: 0.85em;
-} \ No newline at end of file
diff --git a/doc/css/panel.css b/doc/css/panel.css
deleted file mode 100755
index 5390c92..0000000
--- a/doc/css/panel.css
+++ /dev/null
@@ -1,383 +0,0 @@
-/* Panel (begin) */
- .panel
- {
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- background: #FFF;
- z-index: 2;
- font-family: "Helvetica Neue", "Arial", sans-serif;
- //zoom: 1;
- }
-
- .panel_tree .results,
- .panel_results .tree
- {
- display: none;
- }
-
- /* Header with search box (begin) */
- .panel .header
- {
- width: 100%;
- height: 29px;
- border-bottom: 1px solid #666;
- position: relative;
- left: 0; top: 0;
- background: #e8e8e8;
- }
-
- .panel .header div
- {
- margin: 0 7px;
- }
- .panel .header table
- {
- height: 29px;
- width: 100%;
- }
-
- .panel .header table td
- {
- vertical-align: middle;
- text-align: middle;
- }
-
- .panel .header label
- {
- position: absolute;
- font-size: 12px;
- line-height: 29px;
- margin-left: 3px;
- color: #999;
- cursor: text;
- }
-
- .panel .header table input
- {
- width: 100%;
- box-sizing: border-box;
- -moz-box-sizing: border-box;
- -webkit-box-sizing: border-box;
- display: inline-block;
- -webkit-appearance: searchfield;
- height: 22px;
- //height: auto;
- }
-
- /* Header with search box (end) */
-
-
- /* Results (begin) */
- .panel .result
- {
- position: absolute;
- top: 30px;
- bottom: 0;
- left: 0;
- width: 100%;
- //height: expression((this.parentNode.offsetHeight - 31));
- overflow-y: scroll;
- overflow-x: hidden;
- -overflow-y: hidden;
- background: #EDF3FE url(../i/results_bg.png);
- z-index: 2;
- //zoom:1;
- }
-
- .panel .result ul
- {
- font-size: 0.8em;
- width: 100%;
- background: #EDF3FE url(../i/results_bg.png);
- //zoom:1;
- }
-
- .panel .result ul li
- {
- height: 46px;
- -height: 50px;
- //display: inline;
- //width: 100%;
- //zoom: 1;
- overflow: hidden;
- padding: 4px 10px 0 10px;
- cursor: pointer;
- }
-
- .panel .result ul li h1
- {
- font-size: 13px;
- font-weight: normal;
- color: #333;
- margin-bottom: 2px;
- white-space: nowrap;
- }
-
- .panel .result ul li p
- {
- font-size: 11px;
- color: #333;
- margin-bottom: 2px;
- white-space: nowrap;
- }
-
- .panel .result ul li h1 i,
- .panel .result ul li p.snippet
- {
- color: #999;
- }
-
- .panel .result ul li b
- {
- color: #000;
- }
-
- .panel .result ul li.current
- {
- background: #3875D7;
- }
-
- .panel .result ul li.current h1,
- .panel .result ul li.current p
- {
- color: #DDD;
- }
-
- .panel .result ul li.current h1 i,
- .panel .result ul li.current p.snippet
- {
- color: #AAA;
- }
-
- .panel .result ul li.current b
- {
- color: #FFF;
- }
-
-
- .panel .result ul li:hover,
- .panel .result ul li.selected
- {
- background: #d0d0d0;
- }
-
- .panel .result ul li.current:hover
- {
- background: #2965C0;
- }
-
- .panel .result ul li .badge
- {
- margin-right: 0.4em;
- margin-left: -0.2em;
- padding: 0 0.2em;
- color: #000;
- }
-
- .panel .result ul li .badge_1
- {
- background: #ACDBF4;
- }
-
- .panel .result ul li.current .badge_1
- {
- background: #97BFD7;
- }
-
- .panel .result ul li .badge_2
- {
- background: #ACF3C3;
- }
-
- .panel .result ul li.current .badge_2
- {
- background: #98D7AC;
- }
-
- .panel .result ul li .badge_3
- {
- background: #E0F3AC;
- }
-
- .panel .result ul li.current .badge_3
- {
- background: #C4D798;
- }
-
- .panel .result ul li .badge_4
- {
- background: #D7CA98;
- }
-
- .panel .result ul li.current .badge_4
- {
- background: #A6B0AC;
- }
-
- .panel .result ul li .badge_5
- {
- background: #F3C8AC;
- }
-
- .panel .result ul li.current .badge_5
- {
- background: #D7B198;
- }
-
- .panel .result ul li .badge_6
- {
- background: #F3ACC3;
- }
-
- .panel .result ul li.current .badge_6
- {
- background: #D798AB;
- }
-
- /* Results (end) */
-
- /* Tree (begin) */ /**/
- .panel .tree
- {
- position: absolute;
- top: 30px;
- bottom: 0;
- left: 0;
- width: 100%;
- //zoom: 1;
- //height: expression((this.parentNode.offsetHeight - 31));
- overflow-y: scroll;
- overflow-x: hidden;
- -overflow-y: hidden;
- background: #EDF3FE url(../i/tree_bg.png);
- z-index: 30;
- }
-
- .panel .tree ul
- {
- background: #EDF3FE url(../i/tree_bg.png);
- }
-
- .panel .tree li
- {
- cursor: pointer;
- overflow: hidden;
- //height: 23px;
- //display: inline;
- //zoom: 1;
- //width: 100%;
- }
-
-
- .panel .tree li .content
- {
- padding-left: 18px;
- padding-top: 5px;
- height: 18px;
- overflow: hidden;
- position: relative;
- }
-
- .panel .tree li .icon
- {
- width: 10px;
- height: 9px;
- background: url(../i/arrows.png);
- background-position: 0 -9px;
- position: absolute;
- left: 1px;
- top: 8px;
- cursor: default;
- }
-
- .panel .tree li.closed .icon
- {
- background-position: 0 0;
- }
-
- .panel .tree ul li h1
- {
- font-size: 13px;
- font-weight: normal;
- color: #000;
- margin-bottom: 2px;
- white-space: nowrap;
- }
-
- .panel .tree ul li p
- {
- font-size: 11px;
- color: #666;
- margin-bottom: 2px;
- white-space: nowrap;
- }
-
- .panel .tree ul li h1 i
- {
- color: #999;
- font-style: normal;
- }
-
- .panel .tree ul li.empty
- {
- cursor: text;
- }
-
- .panel .tree ul li.empty h1,
- .panel .tree ul li.empty p
- {
- color: #666;
- font-style: italic;
- }
-
- .panel .tree ul li.current
- {
- background: #3875D7;
- }
-
- .panel .tree ul li.current .icon
- {
- background-position: -10px -9px;
- }
-
- .panel .tree ul li.current.closed .icon
- {
- background-position: -10px 0;
- }
-
- .panel .tree ul li.current h1
- {
- color: #FFF;
- }
-
- .panel .tree ul li.current p
- {
- color: #CCC;
- }
-
- .panel .tree ul li.current.empty h1,
- .panel .tree ul li.current.empty p
- {
- color: #999;
- }
-
- .panel .tree ul li:hover
- {
- background: #d0d0d0;
- }
-
- .panel .tree ul li.current:hover
- {
- background: #2965C0;
- }
-
- .panel .tree .stopper
- {
- display: none;
- }
- /* Tree (end) */ /**/
-
-/* Panel (end) */ \ No newline at end of file
diff --git a/doc/css/reset.css b/doc/css/reset.css
deleted file mode 100755
index 13f8e0a..0000000
--- a/doc/css/reset.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* http://meyerweb.com/eric/tools/css/reset/ */
-/* v1.0 | 20080212 */
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, font, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-size: 100%;
- vertical-align: baseline;
- background: transparent;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-
-/* remember to define focus styles! */
-:focus {
- outline: 0;
-}
-
-/* remember to highlight inserts somehow! */
-ins {
- text-decoration: none;
-}
-del {
- text-decoration: line-through;
-}
-
-/* tables still need 'cellspacing="0"' in the markup */
-table {
- border-collapse: collapse;
- border-spacing: 0;
-} \ No newline at end of file
diff --git a/doc/favicon.ico b/doc/favicon.ico
deleted file mode 100644
index e0e80cf..0000000
--- a/doc/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/doc/files/README.html b/doc/files/README.html
deleted file mode 100644
index c07cc5f..0000000
--- a/doc/files/README.html
+++ /dev/null
@@ -1,544 +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>README</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>
- README
- </h1>
- <ul class="files">
- <li>README</li>
- <li>Last modified: Fri Aug 06 13:59:04 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <h2>Description</h2>
-<p>
-This is a implementation of the <a href="../classes/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="../classes/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="../classes/JSON.html">JSON</a> strings, should be UTF-8 byte
-sequences on the Ruby side. To encode raw binary strings, that aren&#8217;t
-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="../classes/JSON.html">JSON</a> parsers can parse UTF-8,
-UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE <a
-href="../classes/JSON.html">JSON</a> documents under Ruby 1.8. Under Ruby
-1.9 they take advantage of Ruby&#8217;s 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>
-It&#8217;s recommended to use the extension variant of <a
-href="../classes/JSON.html">JSON</a>, because it&#8217;s 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="../classes/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="../classes/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="../classes/JSON.html">JSON</a> you can
-</p>
-<pre>
- require 'json'
-</pre>
-<p>
-to load the installed variant (either the extension &#8216;json&#8217; or
-the pure variant &#8216;json_pure&#8217;). 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="../classes/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="../classes/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 doesn&#8217;t do any of the
-security checks generate performs, e. g. nesting deepness checks).
-</p>
-<p>
-To create a valid <a href="../classes/JSON.html">JSON</a> document you have
-to make sure, that the output is embedded in either a <a
-href="../classes/JSON.html">JSON</a> array [] or a <a
-href="../classes/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="../classes/JSON.html">JSON</a> and JSON[]
-methods which use parse on a String or generate a <a
-href="../classes/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 core&#8217;s
-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="../classes/JSON.html">JSON</a> support to
-other or your own classes, read the section &#8220;More Examples&#8221;
-below.
-</p>
-<p>
-To get the best compatibility to rails&#8217; <a
-href="../classes/JSON.html">JSON</a> implementation, you can
-</p>
-<pre>
- require 'json/add/rails'
-</pre>
-<p>
-Both of the additions attempt to require &#8216;json&#8217; (like above)
-first, if it has not been required yet.
-</p>
-<h2>More Examples</h2>
-<p>
-To create a <a href="../classes/JSON.html">JSON</a> document from a ruby
-data structure, you can call <a
-href="../classes/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="../classes/JSON.html">JSON</a> document, you have to call <a
-href="../classes/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="../classes/JSON.html">JSON</a>
-doesn&#8217;t support ranges or arbitrary classes. In this case the json
-library falls back to call <a
-href="../classes/Object.html#method-i-to_json">Object#to_json</a>, which is
-the same as #.to_json.
-</p>
-<p>
-It&#8217;s possible to add <a href="../classes/JSON.html">JSON</a> support
-serialization to arbitrary classes by simply implementing a more
-specialized version of the # method, that should return a <a
-href="../classes/JSON.html">JSON</a> object (a hash converted to <a
-href="../classes/JSON.html">JSON</a> with #) like this (don&#8217;t 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 &#8216;json_class&#8217; is the class, that will be asked to
-deserialise the <a href="../classes/JSON.html">JSON</a> representation
-later. In this case it&#8217;s &#8216;Range&#8217;, but any namespace of
-the form &#8216;A::B&#8217; or &#8217;::A::B&#8217; 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 &#8216;json_class&#8217; is found in a <a
-href="../classes/JSON.html">JSON</a> object, the <a
-href="../classes/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="../classes/JSON.html">JSON</a> object converted to a Ruby hash. So a
-range can be deserialised by implementing Range.json_create 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="../classes/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&#8217;s also <a
-href="../classes/JSON.html#method-i-pretty_generate">JSON.pretty_generate</a>
-(or <a
-href="../classes/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 <a
-href="../classes/Kernel.html#method-i-j">Kernel#j</a> for generate, and <a
-href="../classes/Kernel.html#method-i-jj">Kernel#jj</a> for pretty_generate
-output to the console, that work analogous to Core Ruby&#8217;s p and the
-pp library&#8217;s pp methods.
-</p>
-<p>
-The script tools/server.rb contains a small example if you want to test,
-how receiving a <a href="../classes/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 <a
-href="../classes/JSON/Ext/Parser.html">JSON::Ext::Parser</a>, 2 is
-YAML.load with YAML compatbile <a href="../classes/JSON.html">JSON</a>
-document, 3 is is <a
-href="../classes/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="../classes/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="../classes/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 <a
-href="../classes/JSON/Ext/Generator.html">JSON::Ext::Generator</a> methods.
-4, 6, and 7 are <a
-href="../classes/JSON/Pure/Generator.html">JSON::Pure::Generator</a>
-methods and 5 is the Rails <a href="../classes/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="../classes/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="../classes/JSON.html">JSON</a> to go into an infinite loop.
-</p>
-<p>
-Here are the median comparisons for completeness&#8217; 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 <<a href="mailto:flori@ping.de">flori@ping.de</a>>
-</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>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/ext/json/ext/generator/generator_c.html b/doc/files/ext/json/ext/generator/generator_c.html
deleted file mode 100644
index e861740..0000000
--- a/doc/files/ext/json/ext/generator/generator_c.html
+++ /dev/null
@@ -1,59 +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>generator.c</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>
- generator.c
- </h1>
- <ul class="files">
- <li>ext/json/ext/generator/generator.c</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</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="../../../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/ext/json/ext/parser/parser_c.html b/doc/files/ext/json/ext/parser/parser_c.html
deleted file mode 100644
index 3f2784c..0000000
--- a/doc/files/ext/json/ext/parser/parser_c.html
+++ /dev/null
@@ -1,59 +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>parser.c</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>
- parser.c
- </h1>
- <ul class="files">
- <li>ext/json/ext/parser/parser.c</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</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="../../../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/add/core_rb.html b/doc/files/lib/json/add/core_rb.html
deleted file mode 100644
index 64482f3..0000000
--- a/doc/files/lib/json/add/core_rb.html
+++ /dev/null
@@ -1,90 +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>core.rb</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>
- core.rb
- </h1>
- <ul class="files">
- <li>lib/json/add/core.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This file contains implementations of ruby core&#8217;s custom objects for
-serialisation/deserialisation.
-</p>
-
- </div>
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>json</li>
-
- <li>date</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Date.html">Date</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/DateTime.html">DateTime</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Exception.html">Exception</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Range.html">Range</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Regexp.html">Regexp</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Struct.html">Struct</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Symbol.html">Symbol</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Time.html">Time</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/add/rails_rb.html b/doc/files/lib/json/add/rails_rb.html
deleted file mode 100644
index 90be0d1..0000000
--- a/doc/files/lib/json/add/rails_rb.html
+++ /dev/null
@@ -1,78 +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>rails.rb</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>
- rails.rb
- </h1>
- <ul class="files">
- <li>lib/json/add/rails.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-This file contains implementations of rails custom objects for
-serialisation/deserialisation.
-</p>
-
- </div>
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>json</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../../../classes/Enumerable.html">Enumerable</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Object.html">Object</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../../classes/Symbol.html">Symbol</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/common_rb.html b/doc/files/lib/json/common_rb.html
deleted file mode 100644
index bf02585..0000000
--- a/doc/files/lib/json/common_rb.html
+++ /dev/null
@@ -1,72 +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>common.rb</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>
- common.rb
- </h1>
- <ul class="files">
- <li>lib/json/common.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>json/version</li>
-
- <li>iconv</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../../classes/JSON.html">JSON</a></li>
-
- <li><span class="type">MODULE</span> <a href="../../../classes/Kernel.html">Kernel</a></li>
-
- <li><span class="type">CLASS</span> <a href="../../../classes/Class.html">Class</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/editor_rb.html b/doc/files/lib/json/editor_rb.html
deleted file mode 100644
index 332f555..0000000
--- a/doc/files/lib/json/editor_rb.html
+++ /dev/null
@@ -1,82 +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>editor.rb</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>
- editor.rb
- </h1>
- <ul class="files">
- <li>lib/json/editor.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
- <div class="description">
- <p>
-To use the GUI <a href="../../../classes/JSON.html">JSON</a> editor, start
-the edit_json.rb executable script. It requires ruby-gtk to be installed.
-</p>
-
- </div>
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>gtk2</li>
-
- <li>iconv</li>
-
- <li>json</li>
-
- <li>rbconfig</li>
-
- <li>open-uri</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/ext_rb.html b/doc/files/lib/json/ext_rb.html
deleted file mode 100644
index c20e6da..0000000
--- a/doc/files/lib/json/ext_rb.html
+++ /dev/null
@@ -1,70 +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>ext.rb</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>
- ext.rb
- </h1>
- <ul class="files">
- <li>lib/json/ext.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>json/common</li>
-
- <li>json/ext/parser</li>
-
- <li>json/ext/generator</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/pure/generator_rb.html b/doc/files/lib/json/pure/generator_rb.html
deleted file mode 100644
index b529ad8..0000000
--- a/doc/files/lib/json/pure/generator_rb.html
+++ /dev/null
@@ -1,59 +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>generator.rb</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>
- generator.rb
- </h1>
- <ul class="files">
- <li>lib/json/pure/generator.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</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="../../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/pure/parser_rb.html b/doc/files/lib/json/pure/parser_rb.html
deleted file mode 100644
index ab34be3..0000000
--- a/doc/files/lib/json/pure/parser_rb.html
+++ /dev/null
@@ -1,66 +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>parser.rb</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>
- parser.rb
- </h1>
- <ul class="files">
- <li>lib/json/pure/parser.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>strscan</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/pure_rb.html b/doc/files/lib/json/pure_rb.html
deleted file mode 100644
index a1038d2..0000000
--- a/doc/files/lib/json/pure_rb.html
+++ /dev/null
@@ -1,72 +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>pure.rb</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>
- pure.rb
- </h1>
- <ul class="files">
- <li>lib/json/pure.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>json/common</li>
-
- <li>json/pure/parser</li>
-
- <li>json/pure/generator</li>
-
- <li>iconv</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json/version_rb.html b/doc/files/lib/json/version_rb.html
deleted file mode 100644
index 2d1b82c..0000000
--- a/doc/files/lib/json/version_rb.html
+++ /dev/null
@@ -1,59 +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>version.rb</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>
- version.rb
- </h1>
- <ul class="files">
- <li>lib/json/version.rb</li>
- <li>Last modified: Fri Aug 06 13:59:06 +0200 2010</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="../../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/files/lib/json_rb.html b/doc/files/lib/json_rb.html
deleted file mode 100644
index d0c045e..0000000
--- a/doc/files/lib/json_rb.html
+++ /dev/null
@@ -1,72 +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.rb</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>
- json.rb
- </h1>
- <ul class="files">
- <li>lib/json.rb</li>
- <li>Last modified: Fri Aug 06 13:59:05 +0200 2010</li>
- </ul>
- </div>
-
- <div id="bodyContent">
- <div id="content">
-
-
-
- <div class="sectiontitle">Required Files</div>
- <ul>
-
- <li>json/common</li>
-
- <li>json/version</li>
-
- <li>json/ext</li>
-
- <li>json/pure</li>
-
- </ul>
-
-
-
-
-
-
-
-
-
-
-
-
-
- <div class="sectiontitle">Classes and Modules</div>
- <ul>
-
- <li><span class="type">MODULE</span> <a href="../../classes/JSON.html">JSON</a></li>
-
- </ul>
-
-
-
-
-
-
-
-</div>
- </div>
- </body>
-</html> \ No newline at end of file
diff --git a/doc/i/arrows.png b/doc/i/arrows.png
deleted file mode 100755
index e54060f..0000000
--- a/doc/i/arrows.png
+++ /dev/null
Binary files differ
diff --git a/doc/i/results_bg.png b/doc/i/results_bg.png
deleted file mode 100755
index 199ba69..0000000
--- a/doc/i/results_bg.png
+++ /dev/null
Binary files differ
diff --git a/doc/i/tree_bg.png b/doc/i/tree_bg.png
deleted file mode 100755
index 7d23663..0000000
--- a/doc/i/tree_bg.png
+++ /dev/null
Binary files differ
diff --git a/doc/index.html b/doc/index.html
deleted file mode 100644
index 7b849cd..0000000
--- a/doc/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
- <title>JSON Implementation for Ruby</title>
-</head>
-<frameset cols="300,*" frameborder="1" border="1" bordercolor="#666666" framespacing="1">
- <frame src="panel/index.html" title="Search" name="panel" />
- <frame src="files/README.html" name="docwin" />
-</frameset>
-</html>
diff --git a/doc/js/jquery-1.3.2.min.js b/doc/js/jquery-1.3.2.min.js
deleted file mode 100755
index b1ae21d..0000000
--- a/doc/js/jquery-1.3.2.min.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * jQuery JavaScript Library v1.3.2
- * http://jquery.com/
- *
- * Copyright (c) 2009 John Resig
- * Dual licensed under the MIT and GPL licenses.
- * http://docs.jquery.com/License
- *
- * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
- * Revision: 6246
- */
-(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
-/*
- * Sizzle CSS Selector Engine - v0.9.3
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file
diff --git a/doc/js/jquery-effect.js b/doc/js/jquery-effect.js
deleted file mode 100644
index 5b25307..0000000
--- a/doc/js/jquery-effect.js
+++ /dev/null
@@ -1,593 +0,0 @@
-/*
- * jQuery UI Effects 1.6rc6
- *
- * Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/
- */
-;(function($) {
-
-$.effects = $.effects || {}; //Add the 'effects' scope
-
-$.extend($.effects, {
- version: "1.6rc6",
-
- // Saves a set of properties in a data storage
- save: function(element, set) {
- for(var i=0; i < set.length; i++) {
- if(set[i] !== null) element.data("ec.storage."+set[i], element[0].style[set[i]]);
- }
- },
-
- // Restores a set of previously saved properties from a data storage
- restore: function(element, set) {
- for(var i=0; i < set.length; i++) {
- if(set[i] !== null) element.css(set[i], element.data("ec.storage."+set[i]));
- }
- },
-
- setMode: function(el, mode) {
- if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle
- return mode;
- },
-
- getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value
- // this should be a little more flexible in the future to handle a string & hash
- var y, x;
- switch (origin[0]) {
- case 'top': y = 0; break;
- case 'middle': y = 0.5; break;
- case 'bottom': y = 1; break;
- default: y = origin[0] / original.height;
- };
- switch (origin[1]) {
- case 'left': x = 0; break;
- case 'center': x = 0.5; break;
- case 'right': x = 1; break;
- default: x = origin[1] / original.width;
- };
- return {x: x, y: y};
- },
-
- // Wraps the element around a wrapper that copies position properties
- createWrapper: function(element) {
-
- //if the element is already wrapped, return it
- if (element.parent().is('.ui-effects-wrapper'))
- return element.parent();
-
- //Cache width,height and float properties of the element, and create a wrapper around it
- var props = { width: element.outerWidth(true), height: element.outerHeight(true), 'float': element.css('float') };
- element.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
- var wrapper = element.parent();
-
- //Transfer the positioning of the element to the wrapper
- if (element.css('position') == 'static') {
- wrapper.css({ position: 'relative' });
- element.css({ position: 'relative'} );
- } else {
- var top = element.css('top'); if(isNaN(parseInt(top,10))) top = 'auto';
- var left = element.css('left'); if(isNaN(parseInt(left,10))) left = 'auto';
- wrapper.css({ position: element.css('position'), top: top, left: left, zIndex: element.css('z-index') }).show();
- element.css({position: 'relative', top: 0, left: 0 });
- }
-
- wrapper.css(props);
- return wrapper;
- },
-
- removeWrapper: function(element) {
- if (element.parent().is('.ui-effects-wrapper'))
- return element.parent().replaceWith(element);
- return element;
- },
-
- setTransition: function(element, list, factor, value) {
- value = value || {};
- $.each(list, function(i, x){
- unit = element.cssUnit(x);
- if (unit[0] > 0) value[x] = unit[0] * factor + unit[1];
- });
- return value;
- },
-
- //Base function to animate from one class to another in a seamless transition
- animateClass: function(value, duration, easing, callback) {
-
- var cb = (typeof easing == "function" ? easing : (callback ? callback : null));
- var ea = (typeof easing == "string" ? easing : null);
-
- return this.each(function() {
-
- var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || '';
- if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */
- if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; }
-
- //Let's get a style offset
- var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
- if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove);
- var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
- if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove);
-
- // The main function to form the object for animation
- for(var n in newStyle) {
- if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
- && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
- && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
- && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
- && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
- ) offset[n] = newStyle[n];
- }
-
- that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object
- // Change style attribute back to original. For stupid IE, we need to clear the damn object.
- if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr);
- if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove);
- if(cb) cb.apply(this, arguments);
- });
-
- });
- }
-});
-
-
-function _normalizeArguments(a, m) {
-
- var o = a[1] && a[1].constructor == Object ? a[1] : {}; if(m) o.mode = m;
- var speed = a[1] && a[1].constructor != Object ? a[1] : o.duration; //either comes from options.duration or the second argument
- speed = $.fx.off ? 0 : typeof speed === "number" ? speed : $.fx.speeds[speed] || $.fx.speeds._default;
- var callback = o.callback || ( $.isFunction(a[2]) && a[2] ) || ( $.isFunction(a[3]) && a[3] );
-
- return [a[0], o, speed, callback];
-
-}
-
-//Extend the methods of jQuery
-$.fn.extend({
-
- //Save old methods
- _show: $.fn.show,
- _hide: $.fn.hide,
- __toggle: $.fn.toggle,
- _addClass: $.fn.addClass,
- _removeClass: $.fn.removeClass,
- _toggleClass: $.fn.toggleClass,
-
- // New effect methods
- effect: function(fx, options, speed, callback) {
- return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: options || {}, duration: speed, callback: callback }) : null;
- },
-
- show: function() {
- if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])))
- return this._show.apply(this, arguments);
- else {
- return this.effect.apply(this, _normalizeArguments(arguments, 'show'));
- }
- },
-
- hide: function() {
- if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])))
- return this._hide.apply(this, arguments);
- else {
- return this.effect.apply(this, _normalizeArguments(arguments, 'hide'));
- }
- },
-
- toggle: function(){
- if(!arguments[0] || (arguments[0].constructor == Number || (/(slow|normal|fast)/).test(arguments[0])) || (arguments[0].constructor == Function))
- return this.__toggle.apply(this, arguments);
- else {
- return this.effect.apply(this, _normalizeArguments(arguments, 'toggle'));
- }
- },
-
- addClass: function(classNames, speed, easing, callback) {
- return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames);
- },
- removeClass: function(classNames,speed,easing,callback) {
- return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames);
- },
- toggleClass: function(classNames,speed,easing,callback) {
- return ( (typeof speed !== "boolean") && speed ) ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames, speed);
- },
- morph: function(remove,add,speed,easing,callback) {
- return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
- },
- switchClass: function() {
- return this.morph.apply(this, arguments);
- },
-
- // helper functions
- cssUnit: function(key) {
- var style = this.css(key), val = [];
- $.each( ['em','px','%','pt'], function(i, unit){
- if(style.indexOf(unit) > 0)
- val = [parseFloat(style), unit];
- });
- return val;
- }
-});
-
-/*
- * jQuery Color Animations
- * Copyright 2007 John Resig
- * Released under the MIT and GPL licenses.
- */
-
-// We override the animation for all of these color styles
-$.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
- $.fx.step[attr] = function(fx) {
- if ( fx.state == 0 ) {
- fx.start = getColor( fx.elem, attr );
- fx.end = getRGB( fx.end );
- }
-
- fx.elem.style[attr] = "rgb(" + [
- Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0],10), 255), 0),
- Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1],10), 255), 0),
- Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2],10), 255), 0)
- ].join(",") + ")";
- };
-});
-
-// Color Conversion functions from highlightFade
-// By Blair Mitchelmore
-// http://jquery.offput.ca/highlightFade/
-
-// Parse strings looking for color tuples [255,255,255]
-function getRGB(color) {
- var result;
-
- // Check if we're already dealing with an array of colors
- if ( color && color.constructor == Array && color.length == 3 )
- return color;
-
- // Look for rgb(num,num,num)
- if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
- return [parseInt(result[1],10), parseInt(result[2],10), parseInt(result[3],10)];
-
- // Look for rgb(num%,num%,num%)
- if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
- return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
-
- // Look for #a0b1c2
- if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
- return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
-
- // Look for #fff
- if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
- return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
-
- // Look for rgba(0, 0, 0, 0) == transparent in Safari 3
- if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
- return colors['transparent'];
-
- // Otherwise, we're most likely dealing with a named color
- return colors[$.trim(color).toLowerCase()];
-}
-
-function getColor(elem, attr) {
- var color;
-
- do {
- color = $.curCSS(elem, attr);
-
- // Keep going until we find an element that has color, or we hit the body
- if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") )
- break;
-
- attr = "backgroundColor";
- } while ( elem = elem.parentNode );
-
- return getRGB(color);
-};
-
-// Some named colors to work with
-// From Interface by Stefan Petre
-// http://interface.eyecon.ro/
-
-var colors = {
- aqua:[0,255,255],
- azure:[240,255,255],
- beige:[245,245,220],
- black:[0,0,0],
- blue:[0,0,255],
- brown:[165,42,42],
- cyan:[0,255,255],
- darkblue:[0,0,139],
- darkcyan:[0,139,139],
- darkgrey:[169,169,169],
- darkgreen:[0,100,0],
- darkkhaki:[189,183,107],
- darkmagenta:[139,0,139],
- darkolivegreen:[85,107,47],
- darkorange:[255,140,0],
- darkorchid:[153,50,204],
- darkred:[139,0,0],
- darksalmon:[233,150,122],
- darkviolet:[148,0,211],
- fuchsia:[255,0,255],
- gold:[255,215,0],
- green:[0,128,0],
- indigo:[75,0,130],
- khaki:[240,230,140],
- lightblue:[173,216,230],
- lightcyan:[224,255,255],
- lightgreen:[144,238,144],
- lightgrey:[211,211,211],
- lightpink:[255,182,193],
- lightyellow:[255,255,224],
- lime:[0,255,0],
- magenta:[255,0,255],
- maroon:[128,0,0],
- navy:[0,0,128],
- olive:[128,128,0],
- orange:[255,165,0],
- pink:[255,192,203],
- purple:[128,0,128],
- violet:[128,0,128],
- red:[255,0,0],
- silver:[192,192,192],
- white:[255,255,255],
- yellow:[255,255,0],
- transparent: [255,255,255]
-};
-
-/*
- * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
- *
- * Uses the built in easing capabilities added In jQuery 1.1
- * to offer multiple easing options
- *
- * TERMS OF USE - jQuery Easing
- *
- * Open source under the BSD License.
- *
- * Copyright 2008 George McGinley Smith
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * Neither the name of the author nor the names of contributors may be used to endorse
- * or promote products derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
-*/
-
-// t: current time, b: begInnIng value, c: change In value, d: duration
-$.easing.jswing = $.easing.swing;
-
-$.extend($.easing,
-{
- def: 'easeOutQuad',
- swing: function (x, t, b, c, d) {
- //alert($.easing.default);
- return $.easing[$.easing.def](x, t, b, c, d);
- },
- easeInQuad: function (x, t, b, c, d) {
- return c*(t/=d)*t + b;
- },
- easeOutQuad: function (x, t, b, c, d) {
- return -c *(t/=d)*(t-2) + b;
- },
- easeInOutQuad: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t + b;
- return -c/2 * ((--t)*(t-2) - 1) + b;
- },
- easeInCubic: function (x, t, b, c, d) {
- return c*(t/=d)*t*t + b;
- },
- easeOutCubic: function (x, t, b, c, d) {
- return c*((t=t/d-1)*t*t + 1) + b;
- },
- easeInOutCubic: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t*t + b;
- return c/2*((t-=2)*t*t + 2) + b;
- },
- easeInQuart: function (x, t, b, c, d) {
- return c*(t/=d)*t*t*t + b;
- },
- easeOutQuart: function (x, t, b, c, d) {
- return -c * ((t=t/d-1)*t*t*t - 1) + b;
- },
- easeInOutQuart: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
- return -c/2 * ((t-=2)*t*t*t - 2) + b;
- },
- easeInQuint: function (x, t, b, c, d) {
- return c*(t/=d)*t*t*t*t + b;
- },
- easeOutQuint: function (x, t, b, c, d) {
- return c*((t=t/d-1)*t*t*t*t + 1) + b;
- },
- easeInOutQuint: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
- return c/2*((t-=2)*t*t*t*t + 2) + b;
- },
- easeInSine: function (x, t, b, c, d) {
- return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
- },
- easeOutSine: function (x, t, b, c, d) {
- return c * Math.sin(t/d * (Math.PI/2)) + b;
- },
- easeInOutSine: function (x, t, b, c, d) {
- return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
- },
- easeInExpo: function (x, t, b, c, d) {
- return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
- },
- easeOutExpo: function (x, t, b, c, d) {
- return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
- },
- easeInOutExpo: function (x, t, b, c, d) {
- if (t==0) return b;
- if (t==d) return b+c;
- if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
- return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
- },
- easeInCirc: function (x, t, b, c, d) {
- return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
- },
- easeOutCirc: function (x, t, b, c, d) {
- return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
- },
- easeInOutCirc: function (x, t, b, c, d) {
- if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
- return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
- },
- easeInElastic: function (x, t, b, c, d) {
- var s=1.70158;var p=0;var a=c;
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
- if (a < Math.abs(c)) { a=c; var s=p/4; }
- else var s = p/(2*Math.PI) * Math.asin (c/a);
- return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- },
- easeOutElastic: function (x, t, b, c, d) {
- var s=1.70158;var p=0;var a=c;
- if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
- if (a < Math.abs(c)) { a=c; var s=p/4; }
- else var s = p/(2*Math.PI) * Math.asin (c/a);
- return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
- },
- easeInOutElastic: function (x, t, b, c, d) {
- var s=1.70158;var p=0;var a=c;
- if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
- if (a < Math.abs(c)) { a=c; var s=p/4; }
- else var s = p/(2*Math.PI) * Math.asin (c/a);
- if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
- return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
- },
- easeInBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
- return c*(t/=d)*t*((s+1)*t - s) + b;
- },
- easeOutBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
- return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
- },
- easeInOutBack: function (x, t, b, c, d, s) {
- if (s == undefined) s = 1.70158;
- if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
- return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
- },
- easeInBounce: function (x, t, b, c, d) {
- return c - $.easing.easeOutBounce (x, d-t, 0, c, d) + b;
- },
- easeOutBounce: function (x, t, b, c, d) {
- if ((t/=d) < (1/2.75)) {
- return c*(7.5625*t*t) + b;
- } else if (t < (2/2.75)) {
- return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
- } else if (t < (2.5/2.75)) {
- return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
- } else {
- return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
- }
- },
- easeInOutBounce: function (x, t, b, c, d) {
- if (t < d/2) return $.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
- return $.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
- }
-});
-/*
- *
- * TERMS OF USE - EASING EQUATIONS
- *
- * Open source under the BSD License.
- *
- * Copyright 2001 Robert Penner
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without modification,
- * are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice, this list of
- * conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list
- * of conditions and the following disclaimer in the documentation and/or other materials
- * provided with the distribution.
- *
- * Neither the name of the author nor the names of contributors may be used to endorse
- * or promote products derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-})(jQuery);
-
-/*
- * jQuery UI Effects Highlight 1.6rc6
- *
- * Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * http://docs.jquery.com/UI/Effects/Highlight
- *
- * Depends:
- * effects.core.js
- */
-(function($) {
-
-$.effects.highlight = function(o) {
-
- return this.queue(function() {
-
- // Create element
- var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
-
- // Set options
- var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
- var color = o.options.color || "#ffff99"; // Default highlight color
- var oldColor = el.css("backgroundColor");
-
- // Adjust
- $.effects.save(el, props); el.show(); // Save & Show
- el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
-
- // Animation
- var animation = {backgroundColor: oldColor };
- if (mode == "hide") animation['opacity'] = 0;
-
- // Animate
- el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
- if(mode == "hide") el.hide();
- $.effects.restore(el, props);
- if (mode == "show" && $.browser.msie) this.style.removeAttribute('filter');
- if(o.callback) o.callback.apply(this, arguments);
- el.dequeue();
- }});
-
- });
-
-};
-
-})(jQuery); \ No newline at end of file
diff --git a/doc/js/main.js b/doc/js/main.js
deleted file mode 100755
index 31e96c3..0000000
--- a/doc/js/main.js
+++ /dev/null
@@ -1,22 +0,0 @@
-function toggleSource( id )
-{
- var $src = $('#' + id).toggle();
- $('#l_' + id).html($src.css('display') == 'none' ? 'show' : 'hide');
-}
-
-function openCode( url )
-{
- window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
-}
-
-
-window.highlight = function(url) {
- var hash = url.match(/#([^#]+)$/)
- if(hash) {
- $('a[name=' + hash[1] + ']').parent().effect('highlight', {}, 'slow')
- }
-}
-
-$(function() {
- highlight('#' + location.hash);
-});
diff --git a/doc/js/searchdoc.js b/doc/js/searchdoc.js
deleted file mode 100755
index 06b278e..0000000
--- a/doc/js/searchdoc.js
+++ /dev/null
@@ -1,628 +0,0 @@
-Searchdoc = {};
-
-// navigation.js ------------------------------------------
-
-Searchdoc.Navigation = new function() {
- this.initNavigation = function() {
- var _this = this;
-
- $(document).keydown(function(e) {
- _this.onkeydown(e);
- }).keyup(function(e) {
- _this.onkeyup(e);
- });
-
- this.navigationActive = true;
- }
-
- this.setNavigationActive = function(state) {
- this.navigationActive = state;
- this.clearMoveTimeout();
- }
-
-
- this.onkeyup = function(e) {
- if (!this.navigationActive) return;
- switch(e.keyCode) {
- case 37: //Event.KEY_LEFT:
- case 38: //Event.KEY_UP:
- case 39: //Event.KEY_RIGHT:
- case 40: //Event.KEY_DOWN:
- case 73: // i - qwerty
- case 74: // j
- case 75: // k
- case 76: // l
- case 67: // c - dvorak
- case 72: // h
- case 84: // t
- case 78: // n
- this.clearMoveTimeout();
- break;
- }
- }
-
- this.onkeydown = function(e) {
- if (!this.navigationActive) return;
- switch(e.keyCode) {
- case 37: //Event.KEY_LEFT:
- case 74: // j (qwerty)
- case 72: // h (dvorak)
- if (this.moveLeft()) e.preventDefault();
- break;
- case 38: //Event.KEY_UP:
- case 73: // i (qwerty)
- case 67: // c (dvorak)
- if (e.keyCode == 38 || e.ctrlKey) {
- if (this.moveUp()) e.preventDefault();
- this.startMoveTimeout(false);
- }
- break;
- case 39: //Event.KEY_RIGHT:
- case 76: // l (qwerty)
- case 78: // n (dvorak)
- if (this.moveRight()) e.preventDefault();
- break;
- case 40: //Event.KEY_DOWN:
- case 75: // k (qwerty)
- case 84: // t (dvorak)
- if (e.keyCode == 40 || e.ctrlKey) {
- if (this.moveDown()) e.preventDefault();
- this.startMoveTimeout(true);
- }
- break;
- case 9: //Event.KEY_TAB:
- case 13: //Event.KEY_RETURN:
- if (this.$current) this.select(this.$current);
- break;
- }
- if (e.ctrlKey && e.shiftKey) this.select(this.$current);
- }
-
- this.clearMoveTimeout = function() {
- clearTimeout(this.moveTimeout);
- this.moveTimeout = null;
- }
-
- this.startMoveTimeout = function(isDown) {
- if (!$.browser.mozilla && !$.browser.opera) return;
- if (this.moveTimeout) this.clearMoveTimeout();
- var _this = this;
-
- var go = function() {
- if (!_this.moveTimeout) return;
- _this[isDown ? 'moveDown' : 'moveUp']();
- _this.moveTimout = setTimeout(go, 100);
- }
- this.moveTimeout = setTimeout(go, 200);
- }
-
- this.moveRight = function() {
- }
-
- this.moveLeft = function() {
- }
-
- this.move = function(isDown) {
- }
-
- this.moveUp = function() {
- return this.move(false);
- }
-
- this.moveDown = function() {
- return this.move(true);
- }
-}
-
-
-// scrollIntoView.js --------------------------------------
-
-function scrollIntoView(element, view) {
- var offset, viewHeight, viewScroll, height;
- offset = element.offsetTop;
- height = element.offsetHeight;
- viewHeight = view.offsetHeight;
- viewScroll = view.scrollTop;
- if (offset - viewScroll + height > viewHeight) {
- view.scrollTop = offset - viewHeight + height;
- }
- if (offset < viewScroll) {
- view.scrollTop = offset;
- }
-}
-
-
-// searcher.js --------------------------------------------
-
-Searchdoc.Searcher = function(data) {
- this.data = data;
- this.handlers = [];
-}
-
-Searchdoc.Searcher.prototype = new function() {
- var CHUNK_SIZE = 1000, // search is performed in chunks of 1000 for non-bloking user input
- MAX_RESULTS = 100, // do not try to find more than 100 results
- huid = 1, suid = 1,
- runs = 0;
-
-
- this.find = function(query) {
- var queries = splitQuery(query),
- regexps = buildRegexps(queries),
- highlighters = buildHilighters(queries),
- state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++},
- _this = this;
- this.currentSuid = state.n;
-
- if (!query) return;
-
- var run = function() {
- // stop current search thread if new search started
- if (state.n != _this.currentSuid) return;
-
- var results = performSearch(_this.data, regexps, queries, highlighters, state),
- hasMore = (state.limit > 0 && state.pass < 3);
-
- triggerResults.call(_this, results, !hasMore);
- if (hasMore) {
- setTimeout(run, 2);
- }
- runs++;
- };
- runs = 0;
-
- // start search thread
- run();
- }
-
- /* ----- Events ------ */
- this.ready = function(fn) {
- fn.huid = huid;
- this.handlers.push(fn);
- }
-
- /* ----- Utilities ------ */
- function splitQuery(query) {
- return jQuery.grep(query.split(/(\s+|\(\)?)/), function(string) { return string.match(/\S/) });
- }
-
- function buildRegexps(queries) {
- return jQuery.map(queries, function(query) { return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i') });
- }
-
- function buildHilighters(queries) {
- return jQuery.map(queries, function(query) {
- return jQuery.map( query.split(''), function(l, i){ return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2) } ).join('')
- });
- }
-
- // function longMatchRegexp(index, longIndex, regexps) {
- // for (var i = regexps.length - 1; i >= 0; i--){
- // if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
- // };
- // return true;
- // }
-
-
- /* ----- Mathchers ------ */
- function matchPass1(index, longIndex, queries, regexps) {
- if (index.indexOf(queries[0]) != 0) return false;
- for (var i=1, l = regexps.length; i < l; i++) {
- if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
- };
- return true;
- }
-
- function matchPass2(index, longIndex, queries, regexps) {
- if (index.indexOf(queries[0]) == -1) return false;
- for (var i=1, l = regexps.length; i < l; i++) {
- if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
- };
- return true;
- }
-
- function matchPassRegexp(index, longIndex, queries, regexps) {
- if (!index.match(regexps[0])) return false;
- for (var i=1, l = regexps.length; i < l; i++) {
- if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
- };
- return true;
- }
-
-
- /* ----- Highlighters ------ */
- function highlightRegexp(info, queries, regexps, highlighters) {
- var result = createResult(info);
- for (var i=0, l = regexps.length; i < l; i++) {
- result.title = result.title.replace(regexps[i], highlighters[i]);
- if (i > 0)
- result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
- };
- return result;
- }
-
- function hltSubstring(string, pos, length) {
- return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length);
- }
-
- function highlightQuery(info, queries, regexps, highlighters) {
- var result = createResult(info), pos = 0, lcTitle = result.title.toLowerCase();
- pos = lcTitle.indexOf(queries[0]);
- if (pos != -1) {
- result.title = hltSubstring(result.title, pos, queries[0].length);
- }
- for (var i=1, l = regexps.length; i < l; i++) {
- result.title = result.title.replace(regexps[i], highlighters[i]);
- result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
- };
- return result;
- }
-
- function createResult(info) {
- var result = {};
- result.title = info[0];
- result.namespace = info[1];
- result.path = info[2];
- result.params = info[3];
- result.snippet = info[4];
- result.badge = info[6];
- return result;
- }
-
- /* ----- Searching ------ */
- function performSearch(data, regexps, queries, highlighters, state) {
- var searchIndex = data.searchIndex, // search by title first and then by source
- longSearchIndex = data.longSearchIndex,
- info = data.info,
- result = [],
- i = state.from,
- l = searchIndex.length,
- togo = CHUNK_SIZE,
- matchFunc, hltFunc;
-
- while (state.pass < 3 && state.limit > 0 && togo > 0) {
- if (state.pass == 0) {
- matchFunc = matchPass1;
- hltFunc = highlightQuery;
- } else if (state.pass == 1) {
- matchFunc = matchPass2;
- hltFunc = highlightQuery;
- } else if (state.pass == 2) {
- matchFunc = matchPassRegexp;
- hltFunc = highlightRegexp;
- }
-
- for (; togo > 0 && i < l && state.limit > 0; i++, togo--) {
- if (info[i].n == state.n) continue;
- if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) {
- info[i].n = state.n;
- result.push(hltFunc(info[i], queries, regexps, highlighters));
- state.limit--;
- }
- };
- if (searchIndex.length <= i) {
- state.pass++;
- i = state.from = 0;
- } else {
- state.from = i;
- }
- }
- return result;
- }
-
- function triggerResults(results, isLast) {
- jQuery.each(this.handlers, function(i, fn) { fn.call(this, results, isLast) })
- }
-}
-
-
-
-
-// panel.js -----------------------------------------------
-
-Searchdoc.Panel = function(element, data, tree, frame) {
- this.$element = $(element);
- this.$input = $('input', element).eq(0);
- this.$result = $('.result ul', element).eq(0);
- this.frame = frame;
- this.$current = null;
- this.$view = this.$result.parent();
- this.data = data;
- this.searcher = new Searchdoc.Searcher(data.index);
- this.tree = new Searchdoc.Tree($('.tree', element), tree, this);
- this.init();
-}
-
-Searchdoc.Panel.prototype = $.extend({}, Searchdoc.Navigation, new function() {
- var suid = 1;
-
- this.init = function() {
- var _this = this;
- var observer = function() {
- _this.search(_this.$input[0].value);
- };
- this.$input.keyup(observer);
- this.$input.click(observer); // mac's clear field
-
- this.searcher.ready(function(results, isLast) {
- _this.addResults(results, isLast);
- })
-
- this.$result.click(function(e) {
- _this.$current.removeClass('current');
- _this.$current = $(e.target).closest('li').addClass('current');
- _this.select();
- _this.$input.focus();
- });
-
- this.initNavigation();
- this.setNavigationActive(false);
- }
-
- this.search = function(value, selectFirstMatch) {
- value = jQuery.trim(value).toLowerCase();
- this.selectFirstMatch = selectFirstMatch;
- if (value) {
- this.$element.removeClass('panel_tree').addClass('panel_results');
- this.tree.setNavigationActive(false);
- this.setNavigationActive(true);
- } else {
- this.$element.addClass('panel_tree').removeClass('panel_results');
- this.tree.setNavigationActive(true);
- this.setNavigationActive(false);
- }
- if (value != this.lastQuery) {
- this.lastQuery = value;
- this.firstRun = true;
- this.searcher.find(value);
- }
- }
-
- this.addResults = function(results, isLast) {
- var target = this.$result.get(0);
- if (this.firstRun && (results.length > 0 || isLast)) {
- this.$current = null;
- this.$result.empty();
- }
- for (var i=0, l = results.length; i < l; i++) {
- target.appendChild(renderItem.call(this, results[i]));
- };
- if (this.firstRun && results.length > 0) {
- this.firstRun = false;
- this.$current = $(target.firstChild);
- this.$current.addClass('current');
- if (this.selectFirstMatch) this.select();
- scrollIntoView(this.$current[0], this.$view[0])
- }
- if (jQuery.browser.msie) this.$element[0].className += '';
- }
-
- this.open = function(src) {
- this.frame.location.href = '../' + src;
- if (this.frame.highlight) this.frame.highlight(src);
- }
-
- this.select = function() {
- this.open(this.$current.data('path'));
- }
-
- this.move = function(isDown) {
- if (!this.$current) return;
- var $next = this.$current[isDown ? 'next' : 'prev']();
- if ($next.length) {
- this.$current.removeClass('current');
- $next.addClass('current');
- scrollIntoView($next[0], this.$view[0]);
- this.$current = $next;
- }
- return true;
- }
-
- function renderItem(result) {
- var li = document.createElement('li'),
- html = '', badge = result.badge;
- html += '<h1>' + hlt(result.title);
- if (result.params) html += '<i>' + result.params + '</i>';
- html += '</h1>';
- html += '<p>';
- if (typeof badge != 'undefined') {
- html += '<span class="badge badge_' + (badge % 6 + 1) + '">' + escapeHTML(this.data.badges[badge] || 'unknown') + '</span>';
- }
- html += hlt(result.namespace) + '</p>';
- if (result.snippet) html += '<p class="snippet">' + escapeHTML(result.snippet) + '</p>';
- li.innerHTML = html;
- jQuery.data(li, 'path', result.path);
- return li;
- }
-
- function hlt(html) {
- return escapeHTML(html).replace(/\u0001/g, '<b>').replace(/\u0002/g, '</b>')
- }
-
- function escapeHTML(html) {
- return html.replace(/[&<>]/g, function(c) {
- return '&#' + c.charCodeAt(0) + ';';
- });
- }
-
-});
-
-// tree.js ------------------------------------------------
-
-Searchdoc.Tree = function(element, tree, panel) {
- this.$element = $(element);
- this.$list = $('ul', element);
- this.tree = tree;
- this.panel = panel;
- this.init();
-}
-
-Searchdoc.Tree.prototype = $.extend({}, Searchdoc.Navigation, new function() {
- this.init = function() {
- var stopper = document.createElement('li');
- stopper.className = 'stopper';
- this.$list[0].appendChild(stopper);
- for (var i=0, l = this.tree.length; i < l; i++) {
- buildAndAppendItem.call(this, this.tree[i], 0, stopper);
- };
- var _this = this;
- this.$list.click(function(e) {
- var $target = $(e.target),
- $li = $target.closest('li');
- if ($target.hasClass('icon')) {
- _this.toggle($li);
- } else {
- _this.select($li);
- }
- })
-
- this.initNavigation();
- if (jQuery.browser.msie) document.body.className += '';
- }
-
- this.select = function($li) {
- this.highlight($li);
- var path = $li[0].searchdoc_tree_data.path;
- if (path) this.panel.open(path);
- }
-
- this.highlight = function($li) {
- if (this.$current) this.$current.removeClass('current');
- this.$current = $li.addClass('current');
- }
-
- this.toggle = function($li) {
- var closed = !$li.hasClass('closed'),
- children = $li[0].searchdoc_tree_data.children;
- $li.toggleClass('closed');
- for (var i=0, l = children.length; i < l; i++) {
- toggleVis.call(this, $(children[i].li), !closed);
- };
- }
-
- this.moveRight = function() {
- if (!this.$current) {
- this.highlight(this.$list.find('li:first'));
- return;
- }
- if (this.$current.hasClass('closed')) {
- this.toggle(this.$current);
- }
- }
-
- this.moveLeft = function() {
- if (!this.$current) {
- this.highlight(this.$list.find('li:first'));
- return;
- }
- if (!this.$current.hasClass('closed')) {
- this.toggle(this.$current);
- } else {
- var level = this.$current[0].searchdoc_tree_data.level;
- if (level == 0) return;
- var $next = this.$current.prevAll('li.level_' + (level - 1) + ':visible:first');
- this.$current.removeClass('current');
- $next.addClass('current');
- scrollIntoView($next[0], this.$element[0]);
- this.$current = $next;
- }
- }
-
- this.move = function(isDown) {
- if (!this.$current) {
- this.highlight(this.$list.find('li:first'));
- return true;
- }
- var next = this.$current[0];
- if (isDown) {
- do {
- next = next.nextSibling;
- if (next && next.style && next.style.display != 'none') break;
- } while(next);
- } else {
- do {
- next = next.previousSibling;
- if (next && next.style && next.style.display != 'none') break;
- } while(next);
- }
- if (next && next.className.indexOf('stopper') == -1) {
- this.$current.removeClass('current');
- $(next).addClass('current');
- scrollIntoView(next, this.$element[0]);
- this.$current = $(next);
- }
- return true;
- }
-
- function toggleVis($li, show) {
- var closed = $li.hasClass('closed'),
- children = $li[0].searchdoc_tree_data.children;
- $li.css('display', show ? '' : 'none')
- if (!show && this.$current && $li[0] == this.$current[0]) {
- this.$current.removeClass('current');
- this.$current = null;
- }
- for (var i=0, l = children.length; i < l; i++) {
- toggleVis.call(this, $(children[i].li), show && !closed);
- };
- }
-
- function buildAndAppendItem(item, level, before) {
- var li = renderItem(item, level),
- list = this.$list[0];
- item.li = li;
- list.insertBefore(li, before);
- for (var i=0, l = item[3].length; i < l; i++) {
- buildAndAppendItem.call(this, item[3][i], level + 1, before);
- };
- return li;
- }
-
- function renderItem(item, level) {
- var li = document.createElement('li'),
- cnt = document.createElement('div'),
- h1 = document.createElement('h1'),
- p = document.createElement('p'),
- icon, i;
-
- li.appendChild(cnt);
- li.style.paddingLeft = getOffset(level);
- cnt.className = 'content';
- if (!item[1]) li.className = 'empty ';
- cnt.appendChild(h1);
- // cnt.appendChild(p);
- h1.appendChild(document.createTextNode(item[0]));
- // p.appendChild(document.createTextNode(item[4]));
- if (item[2]) {
- i = document.createElement('i');
- i.appendChild(document.createTextNode(item[2]));
- h1.appendChild(i);
- }
- if (item[3].length > 0) {
- icon = document.createElement('div');
- icon.className = 'icon';
- cnt.appendChild(icon);
- }
-
- // user direct assignement instead of $()
- // it's 8x faster
- // $(li).data('path', item[1])
- // .data('children', item[3])
- // .data('level', level)
- // .css('display', level == 0 ? '' : 'none')
- // .addClass('level_' + level)
- // .addClass('closed');
- li.searchdoc_tree_data = {
- path: item[1],
- children: item[3],
- level: level
- }
- li.style.display = level == 0 ? '' : 'none';
- li.className += 'level_' + level + ' closed';
- return li;
- }
-
- function getOffset(level) {
- return 5 + 18*level + 'px';
- }
-});
diff --git a/doc/panel/index.html b/doc/panel/index.html
deleted file mode 100755
index 683c626..0000000
--- a/doc/panel/index.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<?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>
- <title>layout</title>
- <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" charset="utf-8" />
- <link rel="stylesheet" href="../css/panel.css" type="text/css" media="screen" charset="utf-8" />
- <script src="search_index.js" type="text/javascript" charset="utf-8"></script>
- <script src="tree.js" type="text/javascript" charset="utf-8"></script>
- <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="../js/searchdoc.js" type="text/javascript" charset="utf-8"></script>
- <script type="text/javascript" charset="utf-8">
- //<![CDATA[
- function placeholder() {
- if (jQuery.browser.safari) return;
- $('#search-label').click(function() {
- $('#search').focus();
- $('#search-label').hide();
- });
-
- $('#search').focus(function() {
- $('#search-label').hide();
- });
- $('#search').blur(function() {
- this.value == '' && $('#search-label').show()
- });
-
- $('#search')[0].value == '' && $('#search-label').show();
- }
- $(function() {
- placeholder();
- var panel = new Searchdoc.Panel($('#panel'), search_data, tree, top.frames[1]);
- $('#search').focus();
-
- var s = window.parent.location.search.match(/\?q=([^&]+)/);
- if (s) {
- s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
- if (s.length > 0)
- {
- $('#search').val(s);
- panel.search(s, true);
- }
- }
- })
- //]]>
- </script>
-</head>
-<body>
- <div class="panel panel_tree" id="panel">
- <div class="header">
- <div>
- <label for="search" id="search-label" style="display: none">Search</label>
- <table>
- <tr><td>
- <input type="Search" placeholder="Search" autosave="searchdoc" results="10" id="search" autocomplete="off"/>
- </td></tr>
- </table></div>
- </div>
- <div class="tree">
- <ul>
- </ul>
- </div>
- <div class="result">
- <ul>
- </ul>
- </div>
- </div>
-</body>
-</html>
diff --git a/doc/panel/search_index.js b/doc/panel/search_index.js
deleted file mode 100644
index dd86c94..0000000
--- a/doc/panel/search_index.js
+++ /dev/null
@@ -1 +0,0 @@
-var search_data = {"index":{"searchIndex":["class","date","datetime","enumerable","exception","json","editor","editmenu","filemenu","gtk","treeiter","jsontreeview","mainwindow","menuextension","optionsmenu","popupmenu","ext","generator","generatormethods","array","bignum","falseclass","fixnum","float","hash","nilclass","object","string","extend","trueclass","state","parser","generatorerror","generatorerror","jsonerror","missingunicodesupport","nestingerror","parsererror","pure","generator","generatormethods","array","falseclass","float","hash","integer","nilclass","object","string","extend","trueclass","state","parser","kernel","object","range","regexp","struct","symbol","time","[]()","[]()","[]()","add_item()","add_separator()","allow_nan?()","allow_nan?()","append_new_node()","array_nl()","array_nl=()","ascii_only?()","ascii_only?()","ask_for_element()","ask_for_find_term()","ask_for_hash_pair()","ask_for_location()","ask_for_order()","ask_save()","change()","change_node()","check_circular?()","check_circular?()","clear()","collapse_expand()","collapsed_nodes()","configure()","configure()","content()","content=()","copy()","copy_node()","create()","create()","create()","create()","create()","create_menu_bar()","create_node()","cut_node()","data2model()","display_status()","display_title()","dump()","each()","edit()","edit()","error_dialog()","expand_collapse()","fast_generate()","fetch_icon()","file_open()","file_save()","file_save_as()","find()","find_again()","from_state()","from_state()","generate()","generate()","generate()","iconv()","included()","included()","indent()","indent=()","initialize_copy()","insert_new_node()","json_creatable?()","json_create()","json_create()","json_create()","json_create()","json_create()","json_create()","json_create()","json_create()","json_create()","json_create()","json_create()","load()","load_file()","load_location()","location_open()","max_nesting()","max_nesting=()","method_missing()","model2data()","new()","new()","new()","new()","new()","new()","new()","new()","object_nl()","object_nl=()","open()","open_location()","parse()","parse()","parse()","parse!()","paste()","paste_node_appending()","paste_node_inserting_before()","pretty_generate()","pretty_saving()","question_dialog()","quit()","quit()","read_data()","recurse_proc()","recursive_each()","remove_subtree()","restore()","revert()","save()","save_as()","select_file()","sort()","source()","space()","space=()","space_before()","space_before=()","start()","store_file()","to_h()","to_h()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json()","to_json_raw()","to_json_raw()","to_json_raw_object()","to_json_raw_object()","type()","type=()","unchange()","view_new_model()","readme","generator.c","parser.c","json.rb","core.rb","rails.rb","common.rb","editor.rb","ext.rb","pure.rb","generator.rb","parser.rb","version.rb"],"longSearchIndex":["lib/json/common.rb","lib/json/add/core.rb","lib/json/add/core.rb","lib/json/add/rails.rb","lib/json/add/core.rb","ext/json/ext/generator/generator.c","json","json::editor","json::editor","json::editor","json::editor::gtk","json::editor","json::editor","json::editor","json::editor","json::editor","json","json::ext","json::ext::generator","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods","json::ext::generator::generatormethods::string","json::ext::generator::generatormethods","json::ext::generator","json::ext","json","json","json","json","json","json","json","json::pure","json::pure::generator","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods","json::pure::generator::generatormethods::string","json::pure::generator::generatormethods","json::pure::generator","json::pure","lib/json/common.rb","lib/json/add/rails.rb","lib/json/add/core.rb","lib/json/add/core.rb","lib/json/add/core.rb","lib/json/add/core.rb","lib/json/add/core.rb","json","json::ext::generator::state","json::pure::generator::state","json::editor::menuextension","json::editor::menuextension","json::ext::generator::state","json::pure::generator::state","json::editor::popupmenu","json::ext::generator::state","json::ext::generator::state","json::ext::generator::state","json::pure::generator::state","json::editor::jsontreeview","json::editor::jsontreeview","json::editor::jsontreeview","json::editor::mainwindow","json::editor::jsontreeview","json::editor::mainwindow","json::editor::mainwindow","json::editor::popupmenu","json::ext::generator::state","json::pure::generator::state","json::editor::mainwindow","json::editor::popupmenu","json::editor::optionsmenu","json::ext::generator::state","json::pure::generator::state","json::editor::gtk::treeiter","json::editor::gtk::treeiter","json::editor::editmenu","json::editor::popupmenu","json::editor::editmenu","json::editor::filemenu","json::editor::menuextension","json::editor::optionsmenu","json::editor::popupmenu","json::editor::mainwindow","json::editor::jsontreeview","json::editor::popupmenu","json::editor","json::editor::mainwindow","json::editor::mainwindow","json","json::editor::gtk::treeiter","json::editor","json::editor::mainwindow","json::editor","json::editor::jsontreeview","json","json::editor","json::editor::mainwindow","json::editor::mainwindow","json::editor::mainwindow","json::editor::editmenu","json::editor::editmenu","json::ext::generator::state","json::pure::generator::state","json","json::ext::generator::state","json::pure::generator::state","json","json::ext::generator::generatormethods::string","json::pure::generator::generatormethods::string","json::ext::generator::state","json::ext::generator::state","json::ext::generator::state","json::editor::popupmenu","class","date","datetime","exception","json::ext::generator::generatormethods::string::extend","json::pure::generator::generatormethods::string::extend","object","range","regexp","struct","symbol","time","json","json::editor::mainwindow","json::editor::mainwindow","json::editor::mainwindow","json::ext::generator::state","json::ext::generator::state","json::editor::menuextension","json::editor","json::editor::filemenu","json::editor::jsontreeview","json::editor::mainwindow","json::editor::menuextension","json::ext::generator::state","json::ext::parser","json::pure::generator::state","json::pure::parser","json::ext::generator::state","json::ext::generator::state","json::editor::filemenu","json::editor::filemenu","json","json::ext::parser","json::pure::parser","json","json::editor::editmenu","json::editor::popupmenu","json::editor::popupmenu","json","json::editor::optionsmenu","json::editor","json::editor::filemenu","json::editor::mainwindow","json::editor::mainwindow","json","json::editor::gtk::treeiter","json::editor::gtk::treeiter","json","json::editor::filemenu","json::editor::filemenu","json::editor::filemenu","json::editor::mainwindow","json::editor::editmenu","json::ext::parser","json::ext::generator::state","json::ext::generator::state","json::ext::generator::state","json::ext::generator::state","json::editor","json::editor::mainwindow","json::ext::generator::state","json::pure::generator::state","date","datetime","enumerable","exception","json::ext::generator::generatormethods::array","json::ext::generator::generatormethods::bignum","json::ext::generator::generatormethods::falseclass","json::ext::generator::generatormethods::fixnum","json::ext::generator::generatormethods::float","json::ext::generator::generatormethods::hash","json::ext::generator::generatormethods::nilclass","json::ext::generator::generatormethods::object","json::ext::generator::generatormethods::string","json::ext::generator::generatormethods::trueclass","json::pure::generator::generatormethods::array","json::pure::generator::generatormethods::falseclass","json::pure::generator::generatormethods::float","json::pure::generator::generatormethods::hash","json::pure::generator::generatormethods::integer","json::pure::generator::generatormethods::nilclass","json::pure::generator::generatormethods::object","json::pure::generator::generatormethods::string","json::pure::generator::generatormethods::string","json::pure::generator::generatormethods::trueclass","object","range","regexp","struct","symbol","symbol","time","json::ext::generator::generatormethods::string","json::pure::generator::generatormethods::string","json::ext::generator::generatormethods::string","json::pure::generator::generatormethods::string","json::editor::gtk::treeiter","json::editor::gtk::treeiter","json::editor::mainwindow","json::editor::mainwindow","files/readme.html","files/ext/json/ext/generator/generator_c.html","files/ext/json/ext/parser/parser_c.html","files/lib/json_rb.html","files/lib/json/add/core_rb.html","files/lib/json/add/rails_rb.html","files/lib/json/common_rb.html","files/lib/json/editor_rb.html","files/lib/json/ext_rb.html","files/lib/json/pure_rb.html","files/lib/json/pure/generator_rb.html","files/lib/json/pure/parser_rb.html","files/lib/json/version_rb.html"],"info":[["Class","lib/json/common.rb","classes/Class.html"," < Object","",1],["Date","lib/json/add/core.rb","classes/Date.html"," < Object","",1],["DateTime","lib/json/add/core.rb","classes/DateTime.html"," < Object","",1],["Enumerable","lib/json/add/rails.rb","classes/Enumerable.html"," < ","",1],["Exception","lib/json/add/core.rb","classes/Exception.html"," < Object","",1],["JSON","lib/json.rb","classes/JSON.html"," < ","",1],["Editor","JSON","classes/JSON/Editor.html"," < ","",1],["EditMenu","JSON::Editor","classes/JSON/Editor/EditMenu.html"," < Object","This class creates the Edit pulldown menu.",1],["FileMenu","JSON::Editor","classes/JSON/Editor/FileMenu.html"," < Object","This class creates the File pulldown menu.",1],["Gtk","JSON::Editor","classes/JSON/Editor/Gtk.html"," < ","",1],["TreeIter","JSON::Editor::Gtk","classes/JSON/Editor/Gtk/TreeIter.html"," < Object","The Gtk::TreeIter class is reopened and some auxiliary methods are added.",1],["JSONTreeView","JSON::Editor","classes/JSON/Editor/JSONTreeView.html"," < Gtk::TreeView","This class inherits from Gtk::TreeView, to configure it and to add a lot of behaviour to it.",1],["MainWindow","JSON::Editor","classes/JSON/Editor/MainWindow.html"," < Gtk::Window","The editor main window",1],["MenuExtension","JSON::Editor","classes/JSON/Editor/MenuExtension.html"," < ","This module bundles some method, that can be used to create a menu. It should be included into the class",1],["OptionsMenu","JSON::Editor","classes/JSON/Editor/OptionsMenu.html"," < Object","",1],["PopUpMenu","JSON::Editor","classes/JSON/Editor/PopUpMenu.html"," < Object","This class creates the popup menu, that opens when clicking onto the treeview.",1],["Ext","JSON","classes/JSON/Ext.html"," < ","This module holds all the modules/classes that implement JSON's functionality as C extensions.",1],["Generator","JSON::Ext","classes/JSON/Ext/Generator.html"," < ","This is the JSON generator implemented as a C extension. It can be configured to be used by setting ",1],["GeneratorMethods","JSON::Ext::Generator","classes/JSON/Ext/Generator/GeneratorMethods.html"," < ","",1],["Array","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/Array.html"," < ","",1],["Bignum","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html"," < ","",1],["FalseClass","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html"," < ","",1],["Fixnum","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html"," < ","",1],["Float","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/Float.html"," < ","",1],["Hash","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/Hash.html"," < ","",1],["NilClass","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html"," < ","",1],["Object","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/Object.html"," < ","",1],["String","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/String.html"," < ","",1],["Extend","JSON::Ext::Generator::GeneratorMethods::String","classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html"," < ","",1],["TrueClass","JSON::Ext::Generator::GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html"," < ","",1],["State","JSON::Ext::Generator","classes/JSON/Ext/Generator/State.html"," < Object","",1],["Parser","JSON::Ext","classes/JSON/Ext/Parser.html"," < Object","This is the JSON parser implemented as a C extension. It can be configured to be used by setting JSON.parser",1],["GeneratorError","JSON","classes/JSON/GeneratorError.html"," < JSON::JSONError","This exception is raised, if a generator or unparser error occurs.",1],["GeneratorError","JSON","classes/JSON/GeneratorError.html"," < JSON::JSONError","This exception is raised, if a generator or unparser error occurs.",1],["JSONError","JSON","classes/JSON/JSONError.html"," < StandardError","The base exception for JSON errors.",1],["MissingUnicodeSupport","JSON","classes/JSON/MissingUnicodeSupport.html"," < JSON::JSONError","This exception is raised, if the required unicode support is missing on the system. Usually this means,",1],["NestingError","JSON","classes/JSON/NestingError.html"," < JSON::ParserError","This exception is raised, if the nesting of parsed datastructures is too deep.",1],["ParserError","JSON","classes/JSON/ParserError.html"," < JSON::JSONError","This exception is raised, if a parser error occurs.",1],["Pure","JSON","classes/JSON/Pure.html"," < ","This module holds all the modules/classes that implement JSON's functionality in pure ruby.",1],["Generator","JSON::Pure","classes/JSON/Pure/Generator.html"," < ","",1],["GeneratorMethods","JSON::Pure::Generator","classes/JSON/Pure/Generator/GeneratorMethods.html"," < ","",1],["Array","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/Array.html"," < ","",1],["FalseClass","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html"," < ","",1],["Float","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/Float.html"," < ","",1],["Hash","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/Hash.html"," < ","",1],["Integer","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/Integer.html"," < ","",1],["NilClass","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html"," < ","",1],["Object","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/Object.html"," < ","",1],["String","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/String.html"," < ","",1],["Extend","JSON::Pure::Generator::GeneratorMethods::String","classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html"," < ","Module that holds the extinding methods if, the String module is included.",1],["TrueClass","JSON::Pure::Generator::GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html"," < ","",1],["State","JSON::Pure::Generator","classes/JSON/Pure/Generator/State.html"," < Object","This class is used to create State instances, that are use to hold data while generating a JSON text",1],["Parser","JSON::Pure","classes/JSON/Pure/Parser.html"," < StringScanner","This class implements the JSON parser that is used to parse a JSON string into a Ruby data structure.",1],["Kernel","lib/json/common.rb","classes/Kernel.html"," < ","",1],["Object","lib/json/add/rails.rb","classes/Object.html"," < Object","",1],["Range","lib/json/add/core.rb","classes/Range.html"," < Object","",1],["Regexp","lib/json/add/core.rb","classes/Regexp.html"," < Object","",1],["Struct","lib/json/add/core.rb","classes/Struct.html"," < Object","",1],["Symbol","lib/json/add/rails.rb","classes/Symbol.html"," < Object","",1],["Time","lib/json/add/core.rb","classes/Time.html"," < Object","",1],["[]","JSON","classes/JSON.html#method-c-%5B%5D","(object, opts = {})","If _object_ is string-like parse the string and return the parsed result as a Ruby data structure. Otherwise",2],["[]","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-%5B%5D","(p1)","Return the value returned by method +name+.",2],["[]","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-%5B%5D","(name)","Return the value returned by method +name+.",2],["add_item","JSON::Editor::MenuExtension","classes/JSON/Editor/MenuExtension.html#method-i-add_item","(label, keyval = nil, klass = MenuItem, &callback)","Adds a Gtk::MenuItem to this instance's #menu. _label_ is the label string, _klass_ is the item type,",2],["add_separator","JSON::Editor::MenuExtension","classes/JSON/Editor/MenuExtension.html#method-i-add_separator","()","Adds a Gtk::SeparatorMenuItem to this instance's #menu.",2],["allow_nan?","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-allow_nan%3F","()","Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise returns false.",2],["allow_nan?","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-allow_nan%3F","()","Returns true if NaN, Infinity, and -Infinity should be considered as valid JSON and output.",2],["append_new_node","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-append_new_node","(item)","Append a new node to the selected Hash or Array.",2],["array_nl","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-array_nl","()","This string is put at the end of a line that holds a JSON array.",2],["array_nl=","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-array_nl%3D","(p1)","This string is put at the end of a line that holds a JSON array.",2],["ascii_only?","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-ascii_only%3F","()","Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise returns false.",2],["ascii_only?","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-ascii_only%3F","()","",2],["ask_for_element","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-i-ask_for_element","(parent = nil, default_type = nil, value_text = @content)","Ask for an element to be appended _parent_.",2],["ask_for_find_term","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-i-ask_for_find_term","(search = nil)","Ask for a find term to search for in the tree. Returns the term as a string.",2],["ask_for_hash_pair","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-i-ask_for_hash_pair","(parent)","Ask for a hash key, value pair to be added to the Hash node _parent_.",2],["ask_for_location","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-ask_for_location","()","Ask for location URI a to load data from. Returns the URI as a string.",2],["ask_for_order","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-i-ask_for_order","()","Ask for an order criteria for sorting, using _x_ for the element in question. Returns the order criterium,",2],["ask_save","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-ask_save","()","Opens a dialog, asking, if changes should be saved to a file.",2],["change","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-change","()","Sets editor status to changed, to indicate that the edited data containts unsaved changes.",2],["change_node","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-change_node","(item)","Change the type or content of the selected node.",2],["check_circular?","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-check_circular%3F","()","Returns true, if circular data structures should be checked, otherwise returns false.",2],["check_circular?","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-check_circular%3F","()","Returns true, if circular data structures are checked, otherwise returns false.",2],["clear","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-clear","()","Clear the current model, after asking to save all unsaved changes.",2],["collapse_expand","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-collapse_expand","(item)","Recursively collapse/expand a subtree starting from the selected node.",2],["collapsed_nodes","JSON::Editor::OptionsMenu","classes/JSON/Editor/OptionsMenu.html#method-i-collapsed_nodes","(item)","Collapse/Expand all nodes by default.",2],["configure","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-configure","(p1)","Configure this State instance with the Hash _opts_, and return itself.",2],["configure","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-configure","(opts)","Configure this State instance with the Hash _opts_, and return itself.",2],["content","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-content","()","Returns the content of this node.",2],["content=","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-content%3D","(value)","Sets the content of this node to _value_.",2],["copy","JSON::Editor::EditMenu","classes/JSON/Editor/EditMenu.html#method-i-copy","(item)","Copy data from model into primary clipboard.",2],["copy_node","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-copy_node","(item)","Copy the selected node and its subtree, and save it into the clipboard.",2],["create","JSON::Editor::EditMenu","classes/JSON/Editor/EditMenu.html#method-i-create","()","Create the menu.",2],["create","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-create","()","Create the menu.",2],["create","JSON::Editor::MenuExtension","classes/JSON/Editor/MenuExtension.html#method-i-create","()","This method should be implemented in subclasses to create the #menu of this instance. It has to be called",2],["create","JSON::Editor::OptionsMenu","classes/JSON/Editor/OptionsMenu.html#method-i-create","()","Create the menu.",2],["create","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-create","()","Create the menu.",2],["create_menu_bar","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-create_menu_bar","()","Creates the menu bar with the pulldown menus and returns it.",2],["create_node","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-i-create_node","(parent, type, content)","Create a _type_ node with content _content_, and add it to _parent_ in the model. If _parent_ is nil,",2],["cut_node","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-cut_node","(item)","Cut the selected node and its subtree, and save it into the clipboard.",2],["data2model","JSON::Editor","classes/JSON/Editor.html#method-c-data2model","(data, model = nil, parent = nil)","Convert the Ruby data structure _data_ into tree model data for Gtk and returns the whole model. If the",2],["display_status","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-display_status","(text)","Displays _text_ in the status bar.",2],["display_title","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-display_title","()","Display the new title according to the editor's current state.",2],["dump","JSON","classes/JSON.html#method-i-dump","(obj, anIO = nil, limit = nil)","Dumps _obj_ as a JSON string, i.e. calls generate on the object and returns the result. If anIO (an",2],["each","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-each","()","Traverse each of this Gtk::TreeIter instance's children and yield to them.",2],["edit","JSON::Editor","classes/JSON/Editor.html#method-c-edit","(json, encoding = 'utf8')","Edit the string _json_ with encoding _encoding_ in the editor.",2],["edit","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-edit","(json)","Edit the string _json_ in the editor.",2],["error_dialog","JSON::Editor","classes/JSON/Editor.html#method-c-error_dialog","(window, text)","Opens an error dialog on top of _window_ showing the error message _text_.",2],["expand_collapse","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-i-expand_collapse","(iter)","Expand or collapse row pointed to by _iter_ according to the #expanded attribute.",2],["fast_generate","JSON","classes/JSON.html#method-i-fast_generate","(obj, opts = nil)","Generate a JSON document from the Ruby data structure _obj_ and return it. This method disables the checks",2],["fetch_icon","JSON::Editor","classes/JSON/Editor.html#method-c-fetch_icon","(name)","Returns the Gdk::Pixbuf of the icon named _name_ from the icon cache.",2],["file_open","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-file_open","(filename = nil)","Open the file _filename_ or call the #select_file method to ask for a filename.",2],["file_save","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-file_save","()","Save the current file.",2],["file_save_as","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-file_save_as","()","Save the current file as the filename ",2],["find","JSON::Editor::EditMenu","classes/JSON/Editor/EditMenu.html#method-i-find","(item)","Find a string in all nodes' contents and select the found node in the treeview.",2],["find_again","JSON::Editor::EditMenu","classes/JSON/Editor/EditMenu.html#method-i-find_again","(item)","Repeat the last search given by #find.",2],["from_state","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-c-from_state","(p1)","Creates a State object from _opts_, which ought to be Hash to create a new State instance configured",2],["from_state","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-c-from_state","(opts)","Creates a State object from _opts_, which ought to be Hash to create a new State instance configured",2],["generate","JSON","classes/JSON.html#method-i-generate","(obj, opts = nil)","Generate a JSON document from the Ruby data structure _obj_ and return it. _state_ is * a JSON::State",2],["generate","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-generate","(p1)","Generates a valid JSON document from object +obj+ and returns the result. If no valid JSON document can",2],["generate","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-generate","(obj)","Generates a valid JSON document from object +obj+ and returns the result. If no valid JSON document can",2],["iconv","JSON","classes/JSON.html#method-c-iconv","(to, from, string)","Shortuct for iconv.",2],["included","JSON::Ext::Generator::GeneratorMethods::String","classes/JSON/Ext/Generator/GeneratorMethods/String.html#method-c-included","(p1)","Extends _modul_ with the String::Extend module.",2],["included","JSON::Pure::Generator::GeneratorMethods::String","classes/JSON/Pure/Generator/GeneratorMethods/String.html#method-c-included","(modul)","Extends _modul_ with the String::Extend module.",2],["indent","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-indent","()","This string is used to indent levels in the JSON text.",2],["indent=","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-indent%3D","(p1)","This string is used to indent levels in the JSON text.",2],["initialize_copy","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-initialize_copy","(p1)","Initializes this object from orig if it to be duplicated/cloned and returns it.",2],["insert_new_node","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-insert_new_node","(item)","Insert a new node into an Array before the selected element.",2],["json_creatable?","Class","classes/Class.html#method-i-json_creatable%3F","()","Returns true, if this class can be used to create an instance from a serialised JSON string. The class",2],["json_create","Date","classes/Date.html#method-c-json_create","(object)","",2],["json_create","DateTime","classes/DateTime.html#method-c-json_create","(object)","",2],["json_create","Exception","classes/Exception.html#method-c-json_create","(object)","",2],["json_create","JSON::Ext::Generator::GeneratorMethods::String::Extend","classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html#method-i-json_create","(p1)","Raw Strings are JSON Objects (the raw bytes are stored in an array for the key \"raw\"). The Ruby String",2],["json_create","JSON::Pure::Generator::GeneratorMethods::String::Extend","classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html#method-i-json_create","(o)","Raw Strings are JSON Objects (the raw bytes are stored in an array for the key \"raw\"). The Ruby String",2],["json_create","Object","classes/Object.html#method-c-json_create","(object)","",2],["json_create","Range","classes/Range.html#method-c-json_create","(object)","",2],["json_create","Regexp","classes/Regexp.html#method-c-json_create","(object)","",2],["json_create","Struct","classes/Struct.html#method-c-json_create","(object)","",2],["json_create","Symbol","classes/Symbol.html#method-c-json_create","(o)","",2],["json_create","Time","classes/Time.html#method-c-json_create","(object)","",2],["load","JSON","classes/JSON.html#method-i-load","(source, proc = nil)","Load a ruby data structure from a JSON _source_ and return it. A source can either be a string-like object,",2],["load_file","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-load_file","(filename)","Load the file named _filename_ into the editor as a JSON document.",2],["load_location","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-load_location","(uri)","Load the data at location _uri_ into the editor as a JSON document.",2],["location_open","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-location_open","(uri = nil)","Open the data at the location _uri_, if given. Otherwise open a dialog to ask for the _uri_.",2],["max_nesting","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-max_nesting","()","This integer returns the maximum level of data structure nesting in the generated JSON, max_nesting =",2],["max_nesting=","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-max_nesting%3D","(p1)","This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting",2],["method_missing","JSON::Editor::MenuExtension","classes/JSON/Editor/MenuExtension.html#method-i-method_missing","(*a, &b)","",2],["model2data","JSON::Editor","classes/JSON/Editor.html#method-c-model2data","(iter)","Convert the tree model starting from Gtk::TreeIter _iter_ into a Ruby data structure and return it.",2],["new","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-new","(item)","Clear the model and filename, but ask to save the JSON document, if unsaved changes have occured.",2],["new","JSON::Editor::JSONTreeView","classes/JSON/Editor/JSONTreeView.html#method-c-new","(window)","Creates a JSONTreeView instance, the parameter _window_ is a MainWindow instance and used for self delegation.",2],["new","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-c-new","(encoding)","",2],["new","JSON::Editor::MenuExtension","classes/JSON/Editor/MenuExtension.html#method-c-new","(treeview)","Creates a Menu, that includes MenuExtension. _treeview_ is the Gtk::TreeView, on which it operates.",2],["new","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-c-new","(...)","Instantiates a new State object, configured by _opts_. _opts_ can have the following keys: * *indent*:",2],["new","JSON::Ext::Parser","classes/JSON/Ext/Parser.html#method-c-new","(...)","Creates a new JSON::Ext::Parser instance for the string _source_. Creates a new JSON::Ext::Parser instance",2],["new","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-c-new","(opts = {})","Instantiates a new State object, configured by _opts_. _opts_ can have the following keys: * *indent*:",2],["new","JSON::Pure::Parser","classes/JSON/Pure/Parser.html#method-c-new","(source, opts = {})","Creates a new JSON::Pure::Parser instance for the string _source_. It will be configured by the _opts_",2],["object_nl","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-object_nl","()","This string is put at the end of a line that holds a JSON object (or Hash).",2],["object_nl=","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-object_nl%3D","(p1)","This string is put at the end of a line that holds a JSON object (or Hash).",2],["open","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-open","(item)","Open a file and load it into the editor. Ask to save the JSON document first, if unsaved changes have",2],["open_location","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-open_location","(item)","",2],["parse","JSON","classes/JSON.html#method-i-parse","(source, opts = {})","Parse the JSON document _source_ into a Ruby data structure and return it. _opts_ can have the following",2],["parse","JSON::Ext::Parser","classes/JSON/Ext/Parser.html#method-i-parse","()","Parses the current JSON text _source_ and returns the complete data structure as a result.",2],["parse","JSON::Pure::Parser","classes/JSON/Pure/Parser.html#method-i-parse","()","Parses the current JSON string _source_ and returns the complete data structure as a result.",2],["parse!","JSON","classes/JSON.html#method-i-parse%21","(source, opts = {})","Parse the JSON document _source_ into a Ruby data structure and return it. The bang version of the parse",2],["paste","JSON::Editor::EditMenu","classes/JSON/Editor/EditMenu.html#method-i-paste","(item)","Copy json text from primary clipboard into model.",2],["paste_node_appending","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-paste_node_appending","(item)","Paste the data in the clipboard into the selected Array or Hash by appending it.",2],["paste_node_inserting_before","JSON::Editor::PopUpMenu","classes/JSON/Editor/PopUpMenu.html#method-i-paste_node_inserting_before","(item)","Paste the data in the clipboard into the selected Array inserting it before the selected element.",2],["pretty_generate","JSON","classes/JSON.html#method-i-pretty_generate","(obj, opts = nil)","Generate a JSON document from the Ruby data structure _obj_ and return it. The returned document is a",2],["pretty_saving","JSON::Editor::OptionsMenu","classes/JSON/Editor/OptionsMenu.html#method-i-pretty_saving","(item)","Toggle pretty saving mode on/off.",2],["question_dialog","JSON::Editor","classes/JSON/Editor.html#method-c-question_dialog","(window, text)","Opens a yes/no question dialog on top of _window_ showing the error message _text_. If yes was answered",2],["quit","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-quit","(item)","Quit the editor, after asking to save any unsaved changes first.",2],["quit","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-quit","()","Quit this editor, that is, leave this editor's main loop.",2],["read_data","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-read_data","(filename)","Read a JSON document from the file named _filename_, parse it into a ruby data structure, and return",2],["recurse_proc","JSON","classes/JSON.html#method-i-recurse_proc","(result, &proc)","",2],["recursive_each","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-recursive_each","(&block)","Recursively traverse all nodes of this Gtk::TreeIter's subtree (including self) and yield to them.",2],["remove_subtree","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-remove_subtree","(model)","Remove the subtree of this Gtk::TreeIter instance from the model _model_.",2],["restore","JSON","classes/JSON.html#method-c-restore","(source, proc = nil)","",2],["revert","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-revert","(item)","Revert the current JSON document in the editor to the saved version.",2],["save","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-save","(item)","Save the current JSON document.",2],["save_as","JSON::Editor::FileMenu","classes/JSON/Editor/FileMenu.html#method-i-save_as","(item)","Save the current JSON document under the given filename.",2],["select_file","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-select_file","(message)","Open a file selecton dialog, displaying _message_, and return the selected filename or nil, if no file",2],["sort","JSON::Editor::EditMenu","classes/JSON/Editor/EditMenu.html#method-i-sort","(item)","Sort (Reverse sort) all elements of the selected array by the given expression. _x_ is the element in",2],["source","JSON::Ext::Parser","classes/JSON/Ext/Parser.html#method-i-source","()","Returns a copy of the current _source_ string, that was used to construct this Parser.",2],["space","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-space","()","This string is used to insert a space between the tokens in a JSON string.",2],["space=","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-space%3D","(p1)","This string is used to insert a space between the tokens in a JSON string.",2],["space_before","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-space_before","()","This string is used to insert a space before the ':' in JSON objects.",2],["space_before=","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-space_before%3D","(p1)","This string is used to insert a space before the ':' in JSON objects.",2],["start","JSON::Editor","classes/JSON/Editor.html#method-c-start","(encoding = 'utf8')","Starts a JSON Editor. If a block was given, it yields to the JSON::Editor::MainWindow instance.",2],["store_file","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-store_file","(path)","Store the current JSON document to _path_.",2],["to_h","JSON::Ext::Generator::State","classes/JSON/Ext/Generator/State.html#method-i-to_h","()","Returns the configuration instance variables as a hash, that can be passed to the configure method.",2],["to_h","JSON::Pure::Generator::State","classes/JSON/Pure/Generator/State.html#method-i-to_h","()","Returns the configuration instance variables as a hash, that can be passed to the configure method.",2],["to_json","Date","classes/Date.html#method-i-to_json","(*args)","",2],["to_json","DateTime","classes/DateTime.html#method-i-to_json","(*args)","",2],["to_json","Enumerable","classes/Enumerable.html#method-i-to_json","(*a)","",2],["to_json","Exception","classes/Exception.html#method-i-to_json","(*args)","",2],["to_json","JSON::Ext::Generator::GeneratorMethods::Array","classes/JSON/Ext/Generator/GeneratorMethods/Array.html#method-i-to_json","(...)","Returns a JSON string containing a JSON array, that is generated from this Array instance. _state_ is",2],["to_json","JSON::Ext::Generator::GeneratorMethods::Bignum","classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html#method-i-to_json","(...)","Returns a JSON string representation for this Integer number.",2],["to_json","JSON::Ext::Generator::GeneratorMethods::FalseClass","classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html#method-i-to_json","(...)","Returns a JSON string for false: 'false'.",2],["to_json","JSON::Ext::Generator::GeneratorMethods::Fixnum","classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html#method-i-to_json","(...)","Returns a JSON string representation for this Integer number.",2],["to_json","JSON::Ext::Generator::GeneratorMethods::Float","classes/JSON/Ext/Generator/GeneratorMethods/Float.html#method-i-to_json","(...)","Returns a JSON string representation for this Float number.",2],["to_json","JSON::Ext::Generator::GeneratorMethods::Hash","classes/JSON/Ext/Generator/GeneratorMethods/Hash.html#method-i-to_json","(...)","Returns a JSON string containing a JSON object, that is generated from this Hash instance. _state_ is",2],["to_json","JSON::Ext::Generator::GeneratorMethods::NilClass","classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html#method-i-to_json","(...)","",2],["to_json","JSON::Ext::Generator::GeneratorMethods::Object","classes/JSON/Ext/Generator/GeneratorMethods/Object.html#method-i-to_json","(...)","Converts this object to a string (calling #to_s), converts it to a JSON string, and returns the result.",2],["to_json","JSON::Ext::Generator::GeneratorMethods::String","classes/JSON/Ext/Generator/GeneratorMethods/String.html#method-i-to_json","(...)","This string should be encoded with UTF-8 A call to this method returns a JSON string encoded with UTF16",2],["to_json","JSON::Ext::Generator::GeneratorMethods::TrueClass","classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html#method-i-to_json","(...)","Returns a JSON string for true: 'true'.",2],["to_json","JSON::Pure::Generator::GeneratorMethods::Array","classes/JSON/Pure/Generator/GeneratorMethods/Array.html#method-i-to_json","(state = nil, depth = 0, *)","Returns a JSON string containing a JSON array, that is unparsed from this Array instance. _state_ is",2],["to_json","JSON::Pure::Generator::GeneratorMethods::FalseClass","classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html#method-i-to_json","(*)","Returns a JSON string for false: 'false'.",2],["to_json","JSON::Pure::Generator::GeneratorMethods::Float","classes/JSON/Pure/Generator/GeneratorMethods/Float.html#method-i-to_json","(state = nil, *)","Returns a JSON string representation for this Float number.",2],["to_json","JSON::Pure::Generator::GeneratorMethods::Hash","classes/JSON/Pure/Generator/GeneratorMethods/Hash.html#method-i-to_json","(state = nil, depth = 0, *)","Returns a JSON string containing a JSON object, that is unparsed from this Hash instance. _state_ is",2],["to_json","JSON::Pure::Generator::GeneratorMethods::Integer","classes/JSON/Pure/Generator/GeneratorMethods/Integer.html#method-i-to_json","(*)","Returns a JSON string representation for this Integer number.",2],["to_json","JSON::Pure::Generator::GeneratorMethods::NilClass","classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html#method-i-to_json","(*)","Returns a JSON string for nil: 'null'.",2],["to_json","JSON::Pure::Generator::GeneratorMethods::Object","classes/JSON/Pure/Generator/GeneratorMethods/Object.html#method-i-to_json","(*)","Converts this object to a string (calling #to_s), converts it to a JSON string, and returns the result.",2],["to_json","JSON::Pure::Generator::GeneratorMethods::String","classes/JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json","(*args)","This string should be encoded with UTF-8 A call to this method returns a JSON string encoded with UTF16",2],["to_json","JSON::Pure::Generator::GeneratorMethods::String","classes/JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json","(*args)","This string should be encoded with UTF-8 A call to this method returns a JSON string encoded with UTF16",2],["to_json","JSON::Pure::Generator::GeneratorMethods::TrueClass","classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html#method-i-to_json","(*)","Returns a JSON string for true: 'true'.",2],["to_json","Object","classes/Object.html#method-i-to_json","(*a)","",2],["to_json","Range","classes/Range.html#method-i-to_json","(*args)","",2],["to_json","Regexp","classes/Regexp.html#method-i-to_json","(*)","",2],["to_json","Struct","classes/Struct.html#method-i-to_json","(*args)","",2],["to_json","Symbol","classes/Symbol.html#method-i-to_json","(*a)","",2],["to_json","Symbol","classes/Symbol.html#method-i-to_json","(*a)","",2],["to_json","Time","classes/Time.html#method-i-to_json","(*args)","",2],["to_json_raw","JSON::Ext::Generator::GeneratorMethods::String","classes/JSON/Ext/Generator/GeneratorMethods/String.html#method-i-to_json_raw","(...)","This method creates a JSON text from the result of a call to to_json_raw_object of this String.",2],["to_json_raw","JSON::Pure::Generator::GeneratorMethods::String","classes/JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json_raw","(*args)","This method creates a JSON text from the result of a call to to_json_raw_object of this String.",2],["to_json_raw_object","JSON::Ext::Generator::GeneratorMethods::String","classes/JSON/Ext/Generator/GeneratorMethods/String.html#method-i-to_json_raw_object","()","This method creates a raw object hash, that can be nested into other data structures and will be generated",2],["to_json_raw_object","JSON::Pure::Generator::GeneratorMethods::String","classes/JSON/Pure/Generator/GeneratorMethods/String.html#method-i-to_json_raw_object","()","This method creates a raw object hash, that can be nested into other data structures and will be unparsed",2],["type","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-type","()","Returns the type of this node.",2],["type=","JSON::Editor::Gtk::TreeIter","classes/JSON/Editor/Gtk/TreeIter.html#method-i-type%3D","(value)","Sets the type of this node to _value_. This implies setting the respective icon accordingly.",2],["unchange","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-unchange","()","Sets editor status to unchanged, to indicate that the edited data doesn't containt unsaved changes.",2],["view_new_model","JSON::Editor::MainWindow","classes/JSON/Editor/MainWindow.html#method-i-view_new_model","(model)","Puts a new model _model_ into the Gtk::TreeView to be edited.",2],["README","files/README.html","files/README.html","","== Description This is a implementation of the JSON specification according to RFC 4627 http://www.ietf.org/rfc/rfc4627.txt",3],["generator.c","files/ext/json/ext/generator/generator_c.html","files/ext/json/ext/generator/generator_c.html","","",3],["parser.c","files/ext/json/ext/parser/parser_c.html","files/ext/json/ext/parser/parser_c.html","","",3],["json.rb","files/lib/json_rb.html","files/lib/json_rb.html","","",3],["core.rb","files/lib/json/add/core_rb.html","files/lib/json/add/core_rb.html","","This file contains implementations of ruby core's custom objects for serialisation/deserialisation.",3],["rails.rb","files/lib/json/add/rails_rb.html","files/lib/json/add/rails_rb.html","","This file contains implementations of rails custom objects for serialisation/deserialisation.",3],["common.rb","files/lib/json/common_rb.html","files/lib/json/common_rb.html","","",3],["editor.rb","files/lib/json/editor_rb.html","files/lib/json/editor_rb.html","","To use the GUI JSON editor, start the edit_json.rb executable script. It requires ruby-gtk to be installed.",3],["ext.rb","files/lib/json/ext_rb.html","files/lib/json/ext_rb.html","","",3],["pure.rb","files/lib/json/pure_rb.html","files/lib/json/pure_rb.html","","",3],["generator.rb","files/lib/json/pure/generator_rb.html","files/lib/json/pure/generator_rb.html","","",3],["parser.rb","files/lib/json/pure/parser_rb.html","files/lib/json/pure/parser_rb.html","","",3],["version.rb","files/lib/json/version_rb.html","files/lib/json/version_rb.html","","",3]]}} \ No newline at end of file
diff --git a/doc/panel/tree.js b/doc/panel/tree.js
deleted file mode 100644
index 529157a..0000000
--- a/doc/panel/tree.js
+++ /dev/null
@@ -1 +0,0 @@
-var tree = [["","","files",[["README","files/README.html","",[]],["","","ext",[["","","json",[["","","ext",[["","","generator",[["generator.c","files/ext/json/ext/generator/generator_c.html","",[]]]],["","","parser",[["parser.c","files/ext/json/ext/parser/parser_c.html","",[]]]]]]]]]],["","","lib",[["","","json",[["","","add",[["core.rb","files/lib/json/add/core_rb.html","",[]],["rails.rb","files/lib/json/add/rails_rb.html","",[]]]],["common.rb","files/lib/json/common_rb.html","",[]],["editor.rb","files/lib/json/editor_rb.html","",[]],["ext.rb","files/lib/json/ext_rb.html","",[]],["","","pure",[["generator.rb","files/lib/json/pure/generator_rb.html","",[]],["parser.rb","files/lib/json/pure/parser_rb.html","",[]]]],["pure.rb","files/lib/json/pure_rb.html","",[]],["version.rb","files/lib/json/version_rb.html","",[]]]],["json.rb","files/lib/json_rb.html","",[]]]]]],["Class","classes/Class.html"," < Object",[]],["Date","classes/Date.html"," < Object",[]],["DateTime","classes/DateTime.html"," < Object",[]],["Enumerable","classes/Enumerable.html","",[]],["Exception","classes/Exception.html"," < Object",[]],["JSON","classes/JSON.html","",[["Editor","classes/JSON/Editor.html","",[["EditMenu","classes/JSON/Editor/EditMenu.html"," < Object",[]],["FileMenu","classes/JSON/Editor/FileMenu.html"," < Object",[]],["Gtk","classes/JSON/Editor/Gtk.html","",[["TreeIter","classes/JSON/Editor/Gtk/TreeIter.html"," < Object",[]]]],["JSONTreeView","classes/JSON/Editor/JSONTreeView.html"," < Gtk::TreeView",[]],["MainWindow","classes/JSON/Editor/MainWindow.html"," < Gtk::Window",[]],["MenuExtension","classes/JSON/Editor/MenuExtension.html","",[]],["OptionsMenu","classes/JSON/Editor/OptionsMenu.html"," < Object",[]],["PopUpMenu","classes/JSON/Editor/PopUpMenu.html"," < Object",[]]]],["Ext","classes/JSON/Ext.html","",[["Generator","classes/JSON/Ext/Generator.html","",[["GeneratorMethods","classes/JSON/Ext/Generator/GeneratorMethods.html","",[["Array","classes/JSON/Ext/Generator/GeneratorMethods/Array.html","",[]],["Bignum","classes/JSON/Ext/Generator/GeneratorMethods/Bignum.html","",[]],["FalseClass","classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html","",[]],["Fixnum","classes/JSON/Ext/Generator/GeneratorMethods/Fixnum.html","",[]],["Float","classes/JSON/Ext/Generator/GeneratorMethods/Float.html","",[]],["Hash","classes/JSON/Ext/Generator/GeneratorMethods/Hash.html","",[]],["NilClass","classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html","",[]],["Object","classes/JSON/Ext/Generator/GeneratorMethods/Object.html","",[]],["String","classes/JSON/Ext/Generator/GeneratorMethods/String.html","",[["Extend","classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html","",[]]]],["TrueClass","classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html","",[]]]],["State","classes/JSON/Ext/Generator/State.html"," < Object",[]]]],["Parser","classes/JSON/Ext/Parser.html"," < Object",[]]]],["GeneratorError","classes/JSON/GeneratorError.html"," < JSON::JSONError",[]],["GeneratorError","classes/JSON/GeneratorError.html"," < JSON::JSONError",[]],["JSONError","classes/JSON/JSONError.html"," < StandardError",[]],["MissingUnicodeSupport","classes/JSON/MissingUnicodeSupport.html"," < JSON::JSONError",[]],["NestingError","classes/JSON/NestingError.html"," < JSON::ParserError",[]],["ParserError","classes/JSON/ParserError.html"," < JSON::JSONError",[]],["Pure","classes/JSON/Pure.html","",[["Generator","classes/JSON/Pure/Generator.html","",[["GeneratorMethods","classes/JSON/Pure/Generator/GeneratorMethods.html","",[["Array","classes/JSON/Pure/Generator/GeneratorMethods/Array.html","",[]],["FalseClass","classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html","",[]],["Float","classes/JSON/Pure/Generator/GeneratorMethods/Float.html","",[]],["Hash","classes/JSON/Pure/Generator/GeneratorMethods/Hash.html","",[]],["Integer","classes/JSON/Pure/Generator/GeneratorMethods/Integer.html","",[]],["NilClass","classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html","",[]],["Object","classes/JSON/Pure/Generator/GeneratorMethods/Object.html","",[]],["String","classes/JSON/Pure/Generator/GeneratorMethods/String.html","",[["Extend","classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html","",[]]]],["TrueClass","classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html","",[]]]],["State","classes/JSON/Pure/Generator/State.html"," < Object",[]]]],["Parser","classes/JSON/Pure/Parser.html"," < StringScanner",[]]]]]],["Kernel","classes/Kernel.html","",[]],["Object","classes/Object.html"," < Object",[]],["Range","classes/Range.html"," < Object",[]],["Regexp","classes/Regexp.html"," < Object",[]],["Struct","classes/Struct.html"," < Object",[]],["Symbol","classes/Symbol.html"," < Object",[]],["Time","classes/Time.html"," < Object",[]]] \ No newline at end of file