diff options
author | Florian Frank <flori@ping.de> | 2010-02-28 12:04:43 +0100 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2010-02-28 12:04:43 +0100 |
commit | 53d5bef6fdcec36294a8fcbdfb7212d726af33d8 (patch) | |
tree | efc988a67e5a2907defd2127921de07652c63c46 | |
parent | e07e01504641a5cfcfa7566010fd68335e732d5d (diff) | |
download | json-53d5bef6fdcec36294a8fcbdfb7212d726af33d8.tar.gz |
deleted documentation
243 files changed, 0 insertions, 18266 deletions
diff --git a/doc/classes/.html b/doc/classes/.html deleted file mode 100644 index 41646d7..0000000 --- a/doc/classes/.html +++ /dev/null @@ -1,105 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: </title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header"></td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Class.html b/doc/classes/Class.html deleted file mode 100644 index c24235f..0000000 --- a/doc/classes/Class.html +++ /dev/null @@ -1,145 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Class</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Class</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000055">json_creatable?</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000055" class="method-detail"> - <a name="M000055"></a> - - <div class="method-heading"> - <a href="Class.src/M000055.html" target="Code" class="method-signature" - onclick="popupCode('Class.src/M000055.html');return false;"> - <span class="method-name">json_creatable?</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns true, if this class can be used to create an instance from a -serialised <a href="JSON.html">JSON</a> string. The class has to implement -a class method <em>json_create</em> that expects a hash as first parameter, -which includes the required data. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Class.src/M000055.html b/doc/classes/Class.src/M000055.html deleted file mode 100644 index 6364628..0000000 --- a/doc/classes/Class.src/M000055.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_creatable? (Class)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 385</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">json_creatable?</span> - <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:json_create</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 893ba7b..0000000 --- a/doc/classes/Date.html +++ /dev/null @@ -1,169 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Date</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Date</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000061">json_create</a> - <a href="#M000062">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - <div id="aliases-list"> - <h3 class="section-bar">External Aliases</h3> - - <div class="name-list"> - <table summary="aliases"> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">sg</td> - <td>-></td> - <td class="context-item-value">start</td> - </tr> - </table> - </div> - </div> - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000061" class="method-detail"> - <a name="M000061"></a> - - <div class="method-heading"> - <a href="Date.src/M000061.html" target="Code" class="method-signature" - onclick="popupCode('Date.src/M000061.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000062" class="method-detail"> - <a name="M000062"></a> - - <div class="method-heading"> - <a href="Date.src/M000062.html" target="Code" class="method-signature" - onclick="popupCode('Date.src/M000062.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Date.src/M000061.html b/doc/classes/Date.src/M000061.html deleted file mode 100644 index 54cae1b..0000000 --- a/doc/classes/Date.src/M000061.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Date)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 45</span> - <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>) - <span class="ruby-identifier">civil</span>(<span class="ruby-operator">*</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>)) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Date.src/M000062.html b/doc/classes/Date.src/M000062.html deleted file mode 100644 index 3ddc783..0000000 --- a/doc/classes/Date.src/M000062.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Date)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 51</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'y'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">year</span>, - <span class="ruby-value str">'m'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">month</span>, - <span class="ruby-value str">'d'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">day</span>, - <span class="ruby-value str">'sg'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">start</span>, - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 4b143f2..0000000 --- a/doc/classes/DateTime.html +++ /dev/null @@ -1,169 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: DateTime</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">DateTime</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000075">json_create</a> - <a href="#M000076">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - <div id="aliases-list"> - <h3 class="section-bar">External Aliases</h3> - - <div class="name-list"> - <table summary="aliases"> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">sg</td> - <td>-></td> - <td class="context-item-value">start</td> - </tr> - </table> - </div> - </div> - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000075" class="method-detail"> - <a name="M000075"></a> - - <div class="method-heading"> - <a href="DateTime.src/M000075.html" target="Code" class="method-signature" - onclick="popupCode('DateTime.src/M000075.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000076" class="method-detail"> - <a name="M000076"></a> - - <div class="method-heading"> - <a href="DateTime.src/M000076.html" target="Code" class="method-signature" - onclick="popupCode('DateTime.src/M000076.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/DateTime.src/M000075.html b/doc/classes/DateTime.src/M000075.html deleted file mode 100644 index c388836..0000000 --- a/doc/classes/DateTime.src/M000075.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (DateTime)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 63</span> - <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>) - <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>) - <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>) - <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> - <span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Rational</span>(<span class="ruby-identifier">of_a</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">of_b</span>.<span class="ruby-identifier">to_i</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">of_a</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">object</span>[<span class="ruby-value str">'sg'</span>] - <span class="ruby-identifier">civil</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/DateTime.src/M000076.html b/doc/classes/DateTime.src/M000076.html deleted file mode 100644 index 6691f94..0000000 --- a/doc/classes/DateTime.src/M000076.html +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (DateTime)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 77</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'y'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">year</span>, - <span class="ruby-value str">'m'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">month</span>, - <span class="ruby-value str">'d'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">day</span>, - <span class="ruby-value str">'H'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">hour</span>, - <span class="ruby-value str">'M'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">min</span>, - <span class="ruby-value str">'S'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sec</span>, - <span class="ruby-value str">'of'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">offset</span>.<span class="ruby-identifier">to_s</span>, - <span class="ruby-value str">'sg'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">start</span>, - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.html b/doc/classes/EditMenu.html deleted file mode 100644 index c143dd4..0000000 --- a/doc/classes/EditMenu.html +++ /dev/null @@ -1,248 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: EditMenu</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">EditMenu</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This class creates the Edit pulldown menu. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000006">copy</a> - <a href="#M000011">create</a> - <a href="#M000008">find</a> - <a href="#M000009">find_again</a> - <a href="#M000007">paste</a> - <a href="#M000010">sort</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="MenuExtension.html">MenuExtension</a></span> - </div> - </div> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000006" class="method-detail"> - <a name="M000006"></a> - - <div class="method-heading"> - <a href="EditMenu.src/M000006.html" target="Code" class="method-signature" - onclick="popupCode('EditMenu.src/M000006.html');return false;"> - <span class="method-name">copy</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Copy data from model into primary clipboard. -</p> - </div> - </div> - - <div id="method-M000011" class="method-detail"> - <a name="M000011"></a> - - <div class="method-heading"> - <a href="EditMenu.src/M000011.html" target="Code" class="method-signature" - onclick="popupCode('EditMenu.src/M000011.html');return false;"> - <span class="method-name">create</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Create the menu. -</p> - </div> - </div> - - <div id="method-M000008" class="method-detail"> - <a name="M000008"></a> - - <div class="method-heading"> - <a href="EditMenu.src/M000008.html" target="Code" class="method-signature" - onclick="popupCode('EditMenu.src/M000008.html');return false;"> - <span class="method-name">find</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Find a string in all nodes’ contents and select the found node in the -treeview. -</p> - </div> - </div> - - <div id="method-M000009" class="method-detail"> - <a name="M000009"></a> - - <div class="method-heading"> - <a href="EditMenu.src/M000009.html" target="Code" class="method-signature" - onclick="popupCode('EditMenu.src/M000009.html');return false;"> - <span class="method-name">find_again</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Repeat the last search given by <a href="EditMenu.html#M000008">find</a>. -</p> - </div> - </div> - - <div id="method-M000007" class="method-detail"> - <a name="M000007"></a> - - <div class="method-heading"> - <a href="EditMenu.src/M000007.html" target="Code" class="method-signature" - onclick="popupCode('EditMenu.src/M000007.html');return false;"> - <span class="method-name">paste</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Copy json text from primary clipboard into model. -</p> - </div> - </div> - - <div id="method-M000010" class="method-detail"> - <a name="M000010"></a> - - <div class="method-heading"> - <a href="EditMenu.src/M000010.html" target="Code" class="method-signature" - onclick="popupCode('EditMenu.src/M000010.html');return false;"> - <span class="method-name">sort</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Sort (Reverse <a href="EditMenu.html#M000010">sort</a>) all elements of the -selected array by the given expression. <em>x</em> is the element in -question. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.src/M000006.html b/doc/classes/EditMenu.src/M000006.html deleted file mode 100644 index b18704a..0000000 --- a/doc/classes/EditMenu.src/M000006.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>copy (EditMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 548</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy</span>(<span class="ruby-identifier">item</span>) - <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>) - <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-identifier">:max_nesting</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>) - <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>) - <span class="ruby-identifier">c</span>.<span class="ruby-identifier">text</span> = <span class="ruby-identifier">json</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.src/M000007.html b/doc/classes/EditMenu.src/M000007.html deleted file mode 100644 index 9f92e13..0000000 --- a/doc/classes/EditMenu.src/M000007.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>paste (EditMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 556</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paste</span>(<span class="ruby-identifier">item</span>) - <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>) - <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> - <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> - <span class="ruby-keyword kw">begin</span> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">edit</span> <span class="ruby-identifier">json</span> - <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">ParserError</span> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">clear</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.src/M000008.html b/doc/classes/EditMenu.src/M000008.html deleted file mode 100644 index 5b10657..0000000 --- a/doc/classes/EditMenu.src/M000008.html +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>find (EditMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 570</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">item</span>) - <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> - <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> - <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> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">i</span> - <span class="ruby-keyword kw">next</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@iter</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">next</span> - <span class="ruby-keyword kw">end</span> - <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>]) - <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>) - <span class="ruby-ivar">@iter</span> = <span class="ruby-identifier">i</span> - <span class="ruby-keyword kw">break</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.src/M000009.html b/doc/classes/EditMenu.src/M000009.html deleted file mode 100644 index 1c35280..0000000 --- a/doc/classes/EditMenu.src/M000009.html +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>find_again (EditMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 590</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find_again</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-ivar">@search</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <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-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> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@iter</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">i</span> - <span class="ruby-keyword kw">next</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@iter</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">next</span> - <span class="ruby-keyword kw">end</span> - <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>]) - <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>) - <span class="ruby-ivar">@iter</span> = <span class="ruby-identifier">i</span> - <span class="ruby-keyword kw">break</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.src/M000010.html b/doc/classes/EditMenu.src/M000010.html deleted file mode 100644 index 105a729..0000000 --- a/doc/classes/EditMenu.src/M000010.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>sort (EditMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 611</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sort</span>(<span class="ruby-identifier">item</span>) - <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> - <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> - <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span> - <span class="ruby-identifier">ary</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-identifier">order</span>, <span class="ruby-identifier">reverse</span> = <span class="ruby-identifier">ask_for_order</span> - <span class="ruby-identifier">order</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">begin</span> - <span class="ruby-identifier">block</span> = <span class="ruby-identifier">eval</span> <span class="ruby-node">"lambda { |x| #{order} }"</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">reverse</span> - <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"><=></span> <span class="ruby-identifier">block</span>[<span class="ruby-identifier">a</span>] } - <span class="ruby-keyword kw">else</span> - <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"><=></span> <span class="ruby-identifier">block</span>[<span class="ruby-identifier">b</span>] } - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span> - <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">"Failed to sort Array with #{order}: #{e}!"</span>) - <span class="ruby-keyword kw">else</span> - <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> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">parent</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Array has been sorted."</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Only Array nodes can be sorted!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Select an Array to sort first!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/EditMenu.src/M000011.html b/doc/classes/EditMenu.src/M000011.html deleted file mode 100644 index e093ff0..0000000 --- a/doc/classes/EditMenu.src/M000011.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create (EditMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 645</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> - <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>) - <span class="ruby-identifier">title</span>.<span class="ruby-identifier">submenu</span> = <span class="ruby-identifier">menu</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Copy'</span>, <span class="ruby-value">?c</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:copy</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Paste'</span>, <span class="ruby-value">?v</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:paste</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Find'</span>, <span class="ruby-value">?f</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:find</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Find Again'</span>, <span class="ruby-value">?g</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:find_again</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Sort'</span>, <span class="ruby-value">?S</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:sort</span>)) - <span class="ruby-identifier">title</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Editor.html b/doc/classes/Editor.html deleted file mode 100644 index 0e3a4db..0000000 --- a/doc/classes/Editor.html +++ /dev/null @@ -1,213 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: Editor</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">Editor</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000086">data2model</a> - <a href="#M000083">error_dialog</a> - <a href="#M000082">fetch_icon</a> - <a href="#M000085">model2data</a> - <a href="#M000084">question_dialog</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000086" class="method-detail"> - <a name="M000086"></a> - - <div class="method-heading"> - <a href="Editor.src/M000086.html" target="Code" class="method-signature" - onclick="popupCode('Editor.src/M000086.html');return false;"> - <span class="method-name">data2model</span><span class="method-args">(data, model = nil, parent = nil) {|model| ...}</span> - </a> - </div> - - <div class="method-description"> - <p> -Convert the Ruby data structure <em>data</em> into tree model data for <a -href="Gtk.html">Gtk</a> and returns the whole model. If the parameter -<em>model</em> wasn‘t given a new Gtk::TreeStore is created as the -model. The <em>parent</em> parameter specifies the parent node (iter, <a -href="Gtk.html">Gtk</a>:TreeIter instance) to which the data is appended, -alternativeley the result of the yielded block is used as iter. -</p> - </div> - </div> - - <div id="method-M000083" class="method-detail"> - <a name="M000083"></a> - - <div class="method-heading"> - <a href="Editor.src/M000083.html" target="Code" class="method-signature" - onclick="popupCode('Editor.src/M000083.html');return false;"> - <span class="method-name">error_dialog</span><span class="method-args">(window, text)</span> - </a> - </div> - - <div class="method-description"> - <p> -Opens an error dialog on top of <em>window</em> showing the error message -<em>text</em>. -</p> - </div> - </div> - - <div id="method-M000082" class="method-detail"> - <a name="M000082"></a> - - <div class="method-heading"> - <a href="Editor.src/M000082.html" target="Code" class="method-signature" - onclick="popupCode('Editor.src/M000082.html');return false;"> - <span class="method-name">fetch_icon</span><span class="method-args">(name)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns the Gdk::Pixbuf of the icon named <em>name</em> from the icon -cache. -</p> - </div> - </div> - - <div id="method-M000085" class="method-detail"> - <a name="M000085"></a> - - <div class="method-heading"> - <a href="Editor.src/M000085.html" target="Code" class="method-signature" - onclick="popupCode('Editor.src/M000085.html');return false;"> - <span class="method-name">model2data</span><span class="method-args">(iter)</span> - </a> - </div> - - <div class="method-description"> - <p> -Convert the tree model starting from <a -href="Gtk/TreeIter.html">Gtk::TreeIter</a> <em>iter</em> into a Ruby data -structure and return it. -</p> - </div> - </div> - - <div id="method-M000084" class="method-detail"> - <a name="M000084"></a> - - <div class="method-heading"> - <a href="Editor.src/M000084.html" target="Code" class="method-signature" - onclick="popupCode('Editor.src/M000084.html');return false;"> - <span class="method-name">question_dialog</span><span class="method-args">(window, text)</span> - </a> - </div> - - <div class="method-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> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Editor.src/M000082.html b/doc/classes/Editor.src/M000082.html deleted file mode 100644 index 8b51b8a..0000000 --- a/doc/classes/Editor.src/M000082.html +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>fetch_icon (Editor)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 39</span> - <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>) - <span class="ruby-ivar">@icon_cache</span> <span class="ruby-operator">||=</span> {} - <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>) - <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>) - <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>)) - <span class="ruby-keyword kw">end</span> - <span class="ruby-ivar">@icon_cache</span>[<span class="ruby-identifier">name</span>] - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Editor.src/M000083.html b/doc/classes/Editor.src/M000083.html deleted file mode 100644 index c20cc69..0000000 --- a/doc/classes/Editor.src/M000083.html +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>error_dialog (Editor)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 50</span> - <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>) - <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>, - <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">ERROR</span>, - <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">BUTTONS_CLOSE</span>, <span class="ruby-identifier">text</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> - <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">TypeError</span> - <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>, - <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">ERROR</span>, - <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">BUTTONS_CLOSE</span>, <span class="ruby-identifier">text</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">run</span> - <span class="ruby-keyword kw">ensure</span> - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Editor.src/M000084.html b/doc/classes/Editor.src/M000084.html deleted file mode 100644 index b1e90a6..0000000 --- a/doc/classes/Editor.src/M000084.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>question_dialog (Editor)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 69</span> - <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>) - <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>, - <span class="ruby-constant">MessageDialog</span><span class="ruby-operator">::</span><span class="ruby-constant">QUESTION</span>, - <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>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <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> - <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> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">ensure</span> - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Editor.src/M000085.html b/doc/classes/Editor.src/M000085.html deleted file mode 100644 index 70406ac..0000000 --- a/doc/classes/Editor.src/M000085.html +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>model2data (Editor)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 83</span> - <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>) - <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> - <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Hash'</span> - <span class="ruby-identifier">hash</span> = {} - <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>) } - <span class="ruby-identifier">hash</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span> - <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>) - <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>) } - <span class="ruby-identifier">array</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Key'</span> - <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'String'</span> - <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Numeric'</span> - <span class="ruby-identifier">content</span> = <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">content</span> - <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>) - <span class="ruby-identifier">content</span>.<span class="ruby-identifier">to_f</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">content</span>.<span class="ruby-identifier">to_i</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'TrueClass'</span> - <span class="ruby-keyword kw">true</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FalseClass'</span> - <span class="ruby-keyword kw">false</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'NilClass'</span> - <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">fail</span> <span class="ruby-node">"Unknown type found in model: #{iter.type}"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Editor.src/M000086.html b/doc/classes/Editor.src/M000086.html deleted file mode 100644 index e694574..0000000 --- a/doc/classes/Editor.src/M000086.html +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>data2model (Editor)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 121</span> - <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>) - <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>) - <span class="ruby-identifier">iter</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span> - <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">model</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">model</span>.<span class="ruby-identifier">append</span>(<span class="ruby-identifier">parent</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">data</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span> - <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Hash'</span> - <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> - <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>) - <span class="ruby-identifier">pair_iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Key'</span> - <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> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span> - <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Array'</span> - <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> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Numeric</span> - <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'Numeric'</span> - <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> - <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> - <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> - <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-value">? </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> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">iter</span>.<span class="ruby-identifier">type</span> = <span class="ruby-value str">'String'</span> - <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> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">model</span> - <span class="ruby-keyword kw">end</span></pre> -</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 2bc93fb..0000000 --- a/doc/classes/Enumerable.html +++ /dev/null @@ -1,131 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: Enumerable</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">Enumerable</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/rails_rb.html"> - lib/json/add/rails.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000094">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000094" class="method-detail"> - <a name="M000094"></a> - - <div class="method-heading"> - <a href="Enumerable.src/M000094.html" target="Code" class="method-signature" - onclick="popupCode('Enumerable.src/M000094.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*a)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Enumerable.src/M000094.html b/doc/classes/Enumerable.src/M000094.html deleted file mode 100644 index 9be554f..0000000 --- a/doc/classes/Enumerable.src/M000094.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Enumerable)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 38</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 d774f82..0000000 --- a/doc/classes/Exception.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Exception</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Exception</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000063">json_create</a> - <a href="#M000064">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000063" class="method-detail"> - <a name="M000063"></a> - - <div class="method-heading"> - <a href="Exception.src/M000063.html" target="Code" class="method-signature" - onclick="popupCode('Exception.src/M000063.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000064" class="method-detail"> - <a name="M000064"></a> - - <div class="method-heading"> - <a href="Exception.src/M000064.html" target="Code" class="method-signature" - onclick="popupCode('Exception.src/M000064.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Exception.src/M000063.html b/doc/classes/Exception.src/M000063.html deleted file mode 100644 index 4c5e476..0000000 --- a/doc/classes/Exception.src/M000063.html +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Exception)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 121</span> - <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>) - <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>]) - <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>] - <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Exception.src/M000064.html b/doc/classes/Exception.src/M000064.html deleted file mode 100644 index 5fe70f5..0000000 --- a/doc/classes/Exception.src/M000064.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Exception)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 127</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'m'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">message</span>, - <span class="ruby-value str">'b'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">backtrace</span>, - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.html b/doc/classes/FileMenu.html deleted file mode 100644 index 453475e..0000000 --- a/doc/classes/FileMenu.html +++ /dev/null @@ -1,285 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: FileMenu</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">FileMenu</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This class creates the File pulldown menu. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000072">create</a> - <a href="#M000065">new</a> - <a href="#M000066">open</a> - <a href="#M000067">open_location</a> - <a href="#M000071">quit</a> - <a href="#M000068">revert</a> - <a href="#M000069">save</a> - <a href="#M000070">save_as</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="MenuExtension.html">MenuExtension</a></span> - </div> - </div> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000072" class="method-detail"> - <a name="M000072"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000072.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000072.html');return false;"> - <span class="method-name">create</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Create the menu. -</p> - </div> - </div> - - <div id="method-M000065" class="method-detail"> - <a name="M000065"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000065.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000065.html');return false;"> - <span class="method-name">new</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Clear the model and filename, but ask to <a -href="FileMenu.html#M000069">save</a> the <a href="JSON.html">JSON</a> -document, if unsaved changes have occured. -</p> - </div> - </div> - - <div id="method-M000066" class="method-detail"> - <a name="M000066"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000066.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000066.html');return false;"> - <span class="method-name">open</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Open a file and load it into the editor. Ask to <a -href="FileMenu.html#M000069">save</a> the <a href="JSON.html">JSON</a> -document first, if unsaved changes have occured. -</p> - </div> - </div> - - <div id="method-M000067" class="method-detail"> - <a name="M000067"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000067.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000067.html');return false;"> - <span class="method-name">open_location</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <div id="method-M000071" class="method-detail"> - <a name="M000071"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000071.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000071.html');return false;"> - <span class="method-name">quit</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Quit the editor, after asking to <a href="FileMenu.html#M000069">save</a> -any unsaved changes first. -</p> - </div> - </div> - - <div id="method-M000068" class="method-detail"> - <a name="M000068"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000068.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000068.html');return false;"> - <span class="method-name">revert</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Revert the current <a href="JSON.html">JSON</a> document in the editor to -the saved version. -</p> - </div> - </div> - - <div id="method-M000069" class="method-detail"> - <a name="M000069"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000069.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000069.html');return false;"> - <span class="method-name">save</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Save the current <a href="JSON.html">JSON</a> document. -</p> - </div> - </div> - - <div id="method-M000070" class="method-detail"> - <a name="M000070"></a> - - <div class="method-heading"> - <a href="FileMenu.src/M000070.html" target="Code" class="method-signature" - onclick="popupCode('FileMenu.src/M000070.html');return false;"> - <span class="method-name">save_as</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Save the current <a href="JSON.html">JSON</a> document under the given -filename. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000065.html b/doc/classes/FileMenu.src/M000065.html deleted file mode 100644 index 6307ee1..0000000 --- a/doc/classes/FileMenu.src/M000065.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 490</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">clear</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000066.html b/doc/classes/FileMenu.src/M000066.html deleted file mode 100644 index 69e75aa..0000000 --- a/doc/classes/FileMenu.src/M000066.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>open (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 496</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">file_open</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000067.html b/doc/classes/FileMenu.src/M000067.html deleted file mode 100644 index 986e814..0000000 --- a/doc/classes/FileMenu.src/M000067.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>open_location (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 500</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open_location</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">location_open</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000068.html b/doc/classes/FileMenu.src/M000068.html deleted file mode 100644 index 998989c..0000000 --- a/doc/classes/FileMenu.src/M000068.html +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>revert (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 505</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revert</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">instance_eval</span> <span class="ruby-keyword kw">do</span> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000069.html b/doc/classes/FileMenu.src/M000069.html deleted file mode 100644 index aa1f95d..0000000 --- a/doc/classes/FileMenu.src/M000069.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>save (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 512</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">file_save</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000070.html b/doc/classes/FileMenu.src/M000070.html deleted file mode 100644 index 589f575..0000000 --- a/doc/classes/FileMenu.src/M000070.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>save_as (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 517</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">save_as</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">file_save_as</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000071.html b/doc/classes/FileMenu.src/M000071.html deleted file mode 100644 index 62452aa..0000000 --- a/doc/classes/FileMenu.src/M000071.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>quit (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 522</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quit</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">quit</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/FileMenu.src/M000072.html b/doc/classes/FileMenu.src/M000072.html deleted file mode 100644 index d80f203..0000000 --- a/doc/classes/FileMenu.src/M000072.html +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create (FileMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 527</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> - <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>) - <span class="ruby-identifier">title</span>.<span class="ruby-identifier">submenu</span> = <span class="ruby-identifier">menu</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'New'</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:new</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Open'</span>, <span class="ruby-value">?o</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:open</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Open location'</span>, <span class="ruby-value">?l</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:open_location</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Revert'</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:revert</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Save'</span>, <span class="ruby-value">?s</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:save</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Save As'</span>, <span class="ruby-value">?S</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:save_as</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">'Quit'</span>, <span class="ruby-value">?q</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:quit</span>)) - <span class="ruby-identifier">title</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk.html b/doc/classes/Gtk.html deleted file mode 100644 index 6d8daea..0000000 --- a/doc/classes/Gtk.html +++ /dev/null @@ -1,107 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: Gtk</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">Gtk</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Class <a href="Gtk/TreeIter.html" class="link">Gtk::TreeIter</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.html b/doc/classes/Gtk/TreeIter.html deleted file mode 100644 index e6d44c6..0000000 --- a/doc/classes/Gtk/TreeIter.html +++ /dev/null @@ -1,271 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Gtk::TreeIter</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Gtk::TreeIter</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="../Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -The <a href="TreeIter.html">Gtk::TreeIter</a> class is reopened and some -auxiliary methods are added. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000092">content</a> - <a href="#M000093">content=</a> - <a href="#M000087">each</a> - <a href="#M000088">recursive_each</a> - <a href="#M000089">remove_subtree</a> - <a href="#M000090">type</a> - <a href="#M000091">type=</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="../Enumerable.html">Enumerable</a></span> - </div> - </div> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000092" class="method-detail"> - <a name="M000092"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000092.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000092.html');return false;"> - <span class="method-name">content</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns the <a href="TreeIter.html#M000092">content</a> of this node. -</p> - </div> - </div> - - <div id="method-M000093" class="method-detail"> - <a name="M000093"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000093.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000093.html');return false;"> - <span class="method-name">content=</span><span class="method-args">(value)</span> - </a> - </div> - - <div class="method-description"> - <p> -Sets the <a href="TreeIter.html#M000092">content</a> of this node to -<em>value</em>. -</p> - </div> - </div> - - <div id="method-M000087" class="method-detail"> - <a name="M000087"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000087.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000087.html');return false;"> - <span class="method-name">each</span><span class="method-args">() {|nth_child(i) }| ...}</span> - </a> - </div> - - <div class="method-description"> - <p> -Traverse <a href="TreeIter.html#M000087">each</a> of this <a -href="TreeIter.html">Gtk::TreeIter</a> instance‘s children and yield -to them. -</p> - </div> - </div> - - <div id="method-M000088" class="method-detail"> - <a name="M000088"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000088.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000088.html');return false;"> - <span class="method-name">recursive_each</span><span class="method-args">() {|self| ...}</span> - </a> - </div> - - <div class="method-description"> - <p> -Recursively traverse all nodes of this <a -href="TreeIter.html">Gtk::TreeIter</a>‘s subtree (including self) and -yield to them. -</p> - </div> - </div> - - <div id="method-M000089" class="method-detail"> - <a name="M000089"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000089.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000089.html');return false;"> - <span class="method-name">remove_subtree</span><span class="method-args">(model)</span> - </a> - </div> - - <div class="method-description"> - <p> -Remove the subtree of this <a href="TreeIter.html">Gtk::TreeIter</a> -instance from the model <em>model</em>. -</p> - </div> - </div> - - <div id="method-M000090" class="method-detail"> - <a name="M000090"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000090.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000090.html');return false;"> - <span class="method-name">type</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns the <a href="TreeIter.html#M000090">type</a> of this node. -</p> - </div> - </div> - - <div id="method-M000091" class="method-detail"> - <a name="M000091"></a> - - <div class="method-heading"> - <a href="TreeIter.src/M000091.html" target="Code" class="method-signature" - onclick="popupCode('TreeIter.src/M000091.html');return false;"> - <span class="method-name">type=</span><span class="method-args">(value)</span> - </a> - </div> - - <div class="method-description"> - <p> -Sets the <a href="TreeIter.html#M000090">type</a> of this node to -<em>value</em>. This implies setting the respective icon accordingly. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000087.html b/doc/classes/Gtk/TreeIter.src/M000087.html deleted file mode 100644 index f0d998d..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000087.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>each (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 161</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> - <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>) } - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000088.html b/doc/classes/Gtk/TreeIter.src/M000088.html deleted file mode 100644 index 6a5e48c..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000088.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>recursive_each (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 167</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recursive_each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) - <span class="ruby-keyword kw">yield</span> <span class="ruby-keyword kw">self</span> - <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> - <span class="ruby-identifier">i</span>.<span class="ruby-identifier">recursive_each</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000089.html b/doc/classes/Gtk/TreeIter.src/M000089.html deleted file mode 100644 index 7e44f27..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000089.html +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>remove_subtree (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 176</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_subtree</span>(<span class="ruby-identifier">model</span>) - <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">current</span> = <span class="ruby-identifier">first_child</span> - <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000090.html b/doc/classes/Gtk/TreeIter.src/M000090.html deleted file mode 100644 index 49a1614..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000090.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>type (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 183</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type</span> - <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">TYPE_COL</span>] - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000091.html b/doc/classes/Gtk/TreeIter.src/M000091.html deleted file mode 100644 index 9e94fab..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000091.html +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>type= (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 189</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">type=</span>(<span class="ruby-identifier">value</span>) - <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">TYPE_COL</span>] = <span class="ruby-identifier">value</span> - <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>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000092.html b/doc/classes/Gtk/TreeIter.src/M000092.html deleted file mode 100644 index dd9d2ee..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000092.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>content (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 195</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content</span> - <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">CONTENT_COL</span>] - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Gtk/TreeIter.src/M000093.html b/doc/classes/Gtk/TreeIter.src/M000093.html deleted file mode 100644 index b55c4de..0000000 --- a/doc/classes/Gtk/TreeIter.src/M000093.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>content= (Gtk::TreeIter)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 200</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">content=</span>(<span class="ruby-identifier">value</span>) - <span class="ruby-keyword kw">self</span>[<span class="ruby-constant">CONTENT_COL</span>] = <span class="ruby-identifier">value</span> - <span class="ruby-keyword kw">end</span></pre> -</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 e4c889e..0000000 --- a/doc/classes/JSON.html +++ /dev/null @@ -1,611 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json_rb.html"> - lib/json.rb - </a> - <br /> - <a href="../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - <a href="../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - <a href="../files/lib/json/pure/parser_rb.html"> - lib/json/pure/parser.rb - </a> - <br /> - <a href="../files/lib/json/pure_rb.html"> - lib/json/pure.rb - </a> - <br /> - <a href="../files/lib/json/version_rb.html"> - lib/json/version.rb - </a> - <br /> - <a href="../files/lib/json/ext_rb.html"> - lib/json/ext.rb - </a> - <br /> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - <a href="../files/ext/json/ext/parser_c.html"> - ext/json/ext/parser.c - </a> - <br /> - <a href="../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000095">[]</a> - <a href="#M000104">dump</a> - <a href="#M000099">fast_generate</a> - <a href="#M000098">generate</a> - <a href="#M000105">iconv</a> - <a href="#M000101">load</a> - <a href="#M000096">parse</a> - <a href="#M000097">parse!</a> - <a href="#M000100">pretty_generate</a> - <a href="#M000102">recurse_proc</a> - <a href="#M000103">restore</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="JSON/Editor.html" class="link">JSON::Editor</a><br /> -Module <a href="JSON/Ext.html" class="link">JSON::Ext</a><br /> -Module <a href="JSON/Pure.html" class="link">JSON::Pure</a><br /> -Class <a href="JSON/GeneratorError.html" class="link">JSON::GeneratorError</a><br /> -Class <a href="JSON/JSONError.html" class="link">JSON::JSONError</a><br /> -Class <a href="JSON/MissingUnicodeSupport.html" class="link">JSON::MissingUnicodeSupport</a><br /> -Class <a href="JSON/NestingError.html" class="link">JSON::NestingError</a><br /> -Class <a href="JSON/ParserError.html" class="link">JSON::ParserError</a><br /> - - </div> - - <div id="constants-list"> - <h3 class="section-bar">Constants</h3> - - <div class="name-list"> - <table summary="Constants"> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">NaN</td> - <td>=</td> - <td class="context-item-value">0.0/0</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">Infinity</td> - <td>=</td> - <td class="context-item-value">1.0/0</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">MinusInfinity</td> - <td>=</td> - <td class="context-item-value">-Infinity</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">UnparserError</td> - <td>=</td> - <td class="context-item-value">GeneratorError</td> - <td width="3em"> </td> - <td class="context-item-desc"> -For backwards compatibility - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">JSON_LOADED</td> - <td>=</td> - <td class="context-item-value">true</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">VERSION</td> - <td>=</td> - <td class="context-item-value">'2.0.0'</td> - <td width="3em"> </td> - <td class="context-item-desc"> -<a href="JSON.html">JSON</a> version - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">JSON_LOADED</td> - <td>=</td> - <td class="context-item-value">true</td> - </tr> - </table> - </div> - </div> - - - - <div id="attribute-list"> - <h3 class="section-bar">Attributes</h3> - - <div class="name-list"> - <table> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">create_id</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -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 -‘json_class’. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">generator</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"> -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>. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">parser</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"> -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>. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">state</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -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>. - -</td> - </tr> - </table> - </div> - </div> - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000095" class="method-detail"> - <a name="M000095"></a> - - <div class="method-heading"> - <a href="JSON.src/M000095.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000095.html');return false;"> - <span class="method-name">[]</span><span class="method-args">(object, opts = {})</span> - </a> - </div> - - <div class="method-description"> - <p> -If <em>object</em> is string-like <a href="JSON.html#M000096">parse</a> the -string and return the parsed result as a Ruby data structure. Otherwise <a -href="JSON.html#M000098">generate</a> 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 <a href="JSON.html#M000098">generate</a> and <a -href="JSON.html#M000096">parse</a> for their documentation. -</p> - </div> - </div> - - <div id="method-M000105" class="method-detail"> - <a name="M000105"></a> - - <div class="method-heading"> - <a href="JSON.src/M000105.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000105.html');return false;"> - <span class="method-name">iconv</span><span class="method-args">(to, from, string)</span> - </a> - </div> - - <div class="method-description"> - <p> -Shortuct for <a href="JSON.html#M000105">iconv</a>. -</p> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000104" class="method-detail"> - <a name="M000104"></a> - - <div class="method-heading"> - <a href="JSON.src/M000104.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000104.html');return false;"> - <span class="method-name">dump</span><span class="method-args">(obj, anIO = nil, limit = nil)</span> - </a> - </div> - - <div class="method-description"> - <p> -Dumps <em>obj</em> as a <a href="JSON.html">JSON</a> string, i.e. calls <a -href="JSON.html#M000098">generate</a> 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> - - <div id="method-M000099" class="method-detail"> - <a name="M000099"></a> - - <div class="method-heading"> - <a href="JSON.src/M000099.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000099.html');return false;"> - <span class="method-name">fast_generate</span><span class="method-args">(obj, opts = nil)</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000098" class="method-detail"> - <a name="M000098"></a> - - <div class="method-heading"> - <a href="JSON.src/M000098.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000098.html');return false;"> - <span class="method-name">generate</span><span class="method-args">(obj, opts = nil)</span> - </a> - </div> - - <div class="method-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>or a Hash like object (responding to to_hash), - -</li> -<li>an object convertible into a hash by a to_h method, - -</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‘t allow NaN, Infinity, and -Infinity. -</p> -<p> -A <em>state</em> hash can have the following keys: -</p> -<ul> -<li><b>indent</b>: a string used to indent levels (default: ’’), - -</li> -<li><b>space</b>: a string that is put after, a : or , delimiter (default: -’’), - -</li> -<li><b>space_before</b>: a string that is put before a : pair delimiter -(default: ’’), - -</li> -<li><b>object_nl</b>: a string that is put at the end of a <a -href="JSON.html">JSON</a> object (default: ’’), - -</li> -<li><b>array_nl</b>: a string that is put at the end of a <a -href="JSON.html">JSON</a> array (default: ’’), - -</li> -<li><b>allow_nan</b>: true if NaN, Infinity, and -Infinity should be generated, -otherwise an exception is thrown, if these values are encountered. This -options defaults to false. - -</li> -<li><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. - -</li> -</ul> -<p> -See also the <a href="JSON.html#M000099">fast_generate</a> for the fastest -creation method with the least amount of sanity checks, and the <a -href="JSON.html#M000100">pretty_generate</a> method for some defaults for a -pretty output. -</p> - </div> - </div> - - <div id="method-M000101" class="method-detail"> - <a name="M000101"></a> - - <div class="method-heading"> - <a href="JSON.src/M000101.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000101.html');return false;"> - <span class="method-name">load</span><span class="method-args">(source, proc = nil)</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000096" class="method-detail"> - <a name="M000096"></a> - - <div class="method-heading"> - <a href="JSON.src/M000096.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000096.html');return false;"> - <span class="method-name">parse</span><span class="method-args">(source, opts = {})</span> - </a> - </div> - - <div class="method-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><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. - -</li> -<li><b>allow_nan</b>: If set to true, allow NaN, Infinity and -Infinity in -defiance of RFC 4627 to be parsed by the Parser. This option defaults to -false. - -</li> -<li><b>create_additions</b>: If set to false, the Parser doesn‘t create -additions even if a matchin class and create_id was found. This option -defaults to true. - -</li> -</ul> - </div> - </div> - - <div id="method-M000097" class="method-detail"> - <a name="M000097"></a> - - <div class="method-heading"> - <a href="JSON.src/M000097.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000097.html');return false;"> - <span class="method-name">parse!</span><span class="method-args">(source, opts = {})</span> - </a> - </div> - - <div class="method-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 <a -href="JSON.html#M000096">parse</a> method, defaults to the more dangerous -values for the <em>opts</em> hash, so be sure only to <a -href="JSON.html#M000096">parse</a> trusted <em>source</em> documents. -</p> -<p> -<em>opts</em> can have the following keys: -</p> -<ul> -<li><b>max_nesting</b>: The maximum depth of nesting allowed in the parsed data -structures. Enable depth checking with :max_nesting => anInteger. The <a -href="JSON.html#M000097">parse!</a> methods defaults to not doing max depth -checking: This can be dangerous, if someone wants to fill up your stack. - -</li> -<li><b>allow_nan</b>: If set to true, allow NaN, Infinity, and -Infinity in -defiance of RFC 4627 to be parsed by the Parser. This option defaults to -true. - -</li> -<li><b>create_additions</b>: If set to false, the Parser doesn‘t create -additions even if a matchin class and create_id was found. This option -defaults to true. - -</li> -</ul> - </div> - </div> - - <div id="method-M000100" class="method-detail"> - <a name="M000100"></a> - - <div class="method-heading"> - <a href="JSON.src/M000100.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000100.html');return false;"> - <span class="method-name">pretty_generate</span><span class="method-args">(obj, opts = nil)</span> - </a> - </div> - - <div class="method-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 unparse. -</p> -<p> -The <em>opts</em> argument can be used to configure the generator, see the -<a href="JSON.html#M000098">generate</a> method for a more detailed -explanation. -</p> - </div> - </div> - - <div id="method-M000102" class="method-detail"> - <a name="M000102"></a> - - <div class="method-heading"> - <a href="JSON.src/M000102.html" target="Code" class="method-signature" - onclick="popupCode('JSON.src/M000102.html');return false;"> - <span class="method-name">recurse_proc</span><span class="method-args">(result, &proc)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <div id="method-M000103" class="method-detail"> - <a name="M000103"></a> - - <div class="method-heading"> - <span class="method-name">restore</span><span class="method-args">(source, proc = nil)</span> - </div> - - <div class="method-description"> - <p> -Alias for <a href="JSON.html#M000101">load</a> -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000095.html b/doc/classes/JSON.src/M000095.html deleted file mode 100644 index 4653d10..0000000 --- a/doc/classes/JSON.src/M000095.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>[] (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 12</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">opts</span> = {}) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_str</span> - <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">></span> {}) - <span class="ruby-keyword kw">else</span> - <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">></span> {}) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000096.html b/doc/classes/JSON.src/M000096.html deleted file mode 100644 index b39597d..0000000 --- a/doc/classes/JSON.src/M000096.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>parse (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 136</span> - <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> = {}) - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000097.html b/doc/classes/JSON.src/M000097.html deleted file mode 100644 index f431bf8..0000000 --- a/doc/classes/JSON.src/M000097.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>parse! (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 155</span> - <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> = {}) - <span class="ruby-identifier">opts</span> = { - <span class="ruby-identifier">:max_nesting</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>, - <span class="ruby-identifier">:allow_nan</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> - }.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">opts</span>) - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000098.html b/doc/classes/JSON.src/M000098.html deleted file mode 100644 index 93fb264..0000000 --- a/doc/classes/JSON.src/M000098.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>generate (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 189</span> - <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>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_hash</span> - <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span> - <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_h</span> - <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"can't convert #{opts.class} into Hash"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span> - <span class="ruby-identifier">state</span> = <span class="ruby-identifier">state</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000099.html b/doc/classes/JSON.src/M000099.html deleted file mode 100644 index b6d6cbb..0000000 --- a/doc/classes/JSON.src/M000099.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>fast_generate (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 218</span> - <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>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_hash</span> - <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span> - <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_h</span> - <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"can't convert #{opts.class} into Hash"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">FAST_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span> - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">FAST_STATE_PROTOTYPE</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000100.html b/doc/classes/JSON.src/M000100.html deleted file mode 100644 index fce455f..0000000 --- a/doc/classes/JSON.src/M000100.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>pretty_generate (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 247</span> - <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>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_hash</span> - <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_hash</span> - <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_h</span> - <span class="ruby-identifier">opts</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">to_h</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-node">"can't convert #{opts.class} into Hash"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">PRETTY_STATE_PROTOTYPE</span>.<span class="ruby-identifier">dup</span> - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">PRETTY_STATE_PROTOTYPE</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000101.html b/doc/classes/JSON.src/M000101.html deleted file mode 100644 index 1a75f05..0000000 --- a/doc/classes/JSON.src/M000101.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>load (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 277</span> - <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>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_str</span> - <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">to_str</span> - <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">source</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:to_io</span> - <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> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">read</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">result</span> = <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">:max_nesting</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>, <span class="ruby-identifier">:allow_nan</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>) - <span class="ruby-identifier">recurse_proc</span>(<span class="ruby-identifier">result</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">proc</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">proc</span> - <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000102.html b/doc/classes/JSON.src/M000102.html deleted file mode 100644 index 3a05c5d..0000000 --- a/doc/classes/JSON.src/M000102.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>recurse_proc (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 290</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recurse_proc</span>(<span class="ruby-identifier">result</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">proc</span>) - <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Array</span> - <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>, <span class="ruby-operator">&</span><span class="ruby-identifier">proc</span> } - <span class="ruby-identifier">proc</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span> - <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>, <span class="ruby-operator">&</span><span class="ruby-identifier">proc</span>; <span class="ruby-identifier">recurse_proc</span> <span class="ruby-identifier">y</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">proc</span> } - <span class="ruby-identifier">proc</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">proc</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000104.html b/doc/classes/JSON.src/M000104.html deleted file mode 100644 index 7bd772a..0000000 --- a/doc/classes/JSON.src/M000104.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>dump (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 318</span> - <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>) - <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> - <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-identifier">:to_io</span>) - <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">anIO</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:write</span>) - <span class="ruby-identifier">limit</span> = <span class="ruby-identifier">anIO</span> - <span class="ruby-identifier">anIO</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">limit</span> <span class="ruby-operator">||=</span> <span class="ruby-value">0</span> - <span class="ruby-identifier">result</span> = <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>, <span class="ruby-identifier">:allow_nan</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:max_nesting</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">limit</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">anIO</span> - <span class="ruby-identifier">anIO</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">result</span> - <span class="ruby-identifier">anIO</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">JSON</span><span class="ruby-operator">::</span><span class="ruby-constant">NestingError</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"exceed depth limit"</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON.src/M000105.html b/doc/classes/JSON.src/M000105.html deleted file mode 100644 index db40455..0000000 --- a/doc/classes/JSON.src/M000105.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>iconv (JSON)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/common.rb, line 339</span> - <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>) - <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> - <span class="ruby-keyword kw">end</span></pre> -</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 19719b5..0000000 --- a/doc/classes/JSON/Editor.html +++ /dev/null @@ -1,171 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Editor</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Editor</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="../Gtk.html">Gtk</a></span> - </div> - </div> - - <div id="section"> - - - <div id="constants-list"> - <h3 class="section-bar">Constants</h3> - - <div class="name-list"> - <table summary="Constants"> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">TITLE</td> - <td>=</td> - <td class="context-item-value">'JSON Editor'.freeze</td> - <td width="3em"> </td> - <td class="context-item-desc"> -Beginning of the editor window title - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">CONTENT_COL</td> - <td>=</td> - <td class="context-item-value">0, 1, 2</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">CONTAINER_TYPES</td> - <td>=</td> - <td class="context-item-value">%w[Array Hash].sort</td> - <td width="3em"> </td> - <td class="context-item-desc"> -<a href="../JSON.html">JSON</a> primitive types (Containers) - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">ALL_TYPES</td> - <td>=</td> - <td class="context-item-value">(%w[TrueClass FalseClass Numeric String NilClass] + CONTAINER_TYPES).sort</td> - <td width="3em"> </td> - <td class="context-item-desc"> -All <a href="../JSON.html">JSON</a> primitive types - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">ALL_NODES</td> - <td>=</td> - <td class="context-item-value">(ALL_TYPES + %w[Key]).sort</td> - <td width="3em"> </td> - <td class="context-item-desc"> -The Nodes necessary for the tree representation of a <a -href="../JSON.html">JSON</a> document - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">DEFAULT_DIALOG_KEY_PRESS_HANDLER</td> - <td>=</td> - <td class="context-item-value">lambda do |dialog, event| case event.keyval</td> - </tr> - </table> - </div> - </div> - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 61d49e0..0000000 --- a/doc/classes/JSON/Ext.html +++ /dev/null @@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/ext_rb.html"> - lib/json/ext.rb - </a> - <br /> - <a href="../../files/ext/json/ext/parser_c.html"> - ext/json/ext/parser.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="Ext/Generator.html" class="link">JSON::Ext::Generator</a><br /> -Class <a href="Ext/Parser.html" class="link">JSON::Ext::Parser</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 8957268..0000000 --- a/doc/classes/JSON/Ext/Generator.html +++ /dev/null @@ -1,125 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../files/ext/json/ext/parser_c.html"> - ext/json/ext/parser.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="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> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="Generator/GeneratorMethods.html" class="link">JSON::Ext::Generator::GeneratorMethods</a><br /> -Class <a href="Generator/State.html" class="link">JSON::Ext::Generator::State</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 fb77fc6..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods.html +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="GeneratorMethods/Array.html" class="link">JSON::Ext::Generator::GeneratorMethods::Array</a><br /> -Module <a href="GeneratorMethods/FalseClass.html" class="link">JSON::Ext::Generator::GeneratorMethods::FalseClass</a><br /> -Module <a href="GeneratorMethods/Float.html" class="link">JSON::Ext::Generator::GeneratorMethods::Float</a><br /> -Module <a href="GeneratorMethods/Hash.html" class="link">JSON::Ext::Generator::GeneratorMethods::Hash</a><br /> -Module <a href="GeneratorMethods/Integer.html" class="link">JSON::Ext::Generator::GeneratorMethods::Integer</a><br /> -Module <a href="GeneratorMethods/NilClass.html" class="link">JSON::Ext::Generator::GeneratorMethods::NilClass</a><br /> -Module <a href="GeneratorMethods/Object.html" class="link">JSON::Ext::Generator::GeneratorMethods::Object</a><br /> -Module <a href="GeneratorMethods/String.html" class="link">JSON::Ext::Generator::GeneratorMethods::String</a><br /> -Module <a href="GeneratorMethods/TrueClass.html" class="link">JSON::Ext::Generator::GeneratorMethods::TrueClass</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 cd985bc..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.html +++ /dev/null @@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::Array</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::Array</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000109">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000109" class="method-detail"> - <a name="M000109"></a> - - <div class="method-heading"> - <a href="Array.src/M000109.html" target="Code" class="method-signature" - onclick="popupCode('Array.src/M000109.html');return false;"> - <span class="method-name"> to_json(state = nil, depth = 0)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string containing a <a -href="../../../../JSON.html">JSON</a> array, that is 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> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.src/M000109.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.src/M000109.html deleted file mode 100644 index 6199dd9..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Array.src/M000109.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::Array)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(state = nil, depth = 0) - * - * Returns a JSON string containing a JSON array, that is generated from - * this Array instance. - * _state_ is a JSON::State object, that can also be used to configure the - * produced JSON string output further. - * _depth_ is used to find out nesting depth, to indent accordingly. - */ -static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) { -</pre> -</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 3113ec2..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html +++ /dev/null @@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::FalseClass</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::FalseClass</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000108">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000108" class="method-detail"> - <a name="M000108"></a> - - <div class="method-heading"> - <a href="FalseClass.src/M000108.html" target="Code" class="method-signature" - onclick="popupCode('FalseClass.src/M000108.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string for false: -‘false’. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.src/M000108.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.src/M000108.html deleted file mode 100644 index 0ce15fd..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.src/M000108.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::FalseClass)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - * Returns a JSON string for false: 'false'. - */ -static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</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 72e79cd..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.html +++ /dev/null @@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::Float</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::Float</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000111">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000111" class="method-detail"> - <a name="M000111"></a> - - <div class="method-heading"> - <a href="Float.src/M000111.html" target="Code" class="method-signature" - onclick="popupCode('Float.src/M000111.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string representation -for this <a href="Float.html">Float</a> number. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.src/M000111.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.src/M000111.html deleted file mode 100644 index 15057b8..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Float.src/M000111.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::Float)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - * Returns a JSON string representation for this Float number. - */ -static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</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 cddb34a..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.html +++ /dev/null @@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::Hash</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::Hash</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000110">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000110" class="method-detail"> - <a name="M000110"></a> - - <div class="method-heading"> - <a href="Hash.src/M000110.html" target="Code" class="method-signature" - onclick="popupCode('Hash.src/M000110.html');return false;"> - <span class="method-name"> to_json(state = nil, depth = 0)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string containing a <a -href="../../../../JSON.html">JSON</a> object, that is 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> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.src/M000110.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.src/M000110.html deleted file mode 100644 index eb7c201..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Hash.src/M000110.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::Hash)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(state = nil, depth = 0) - * - * Returns a JSON string containing a JSON object, that is generated from - * this Hash instance. - * _state_ is a JSON::State object, that can also be used to configure the - * produced JSON string output further. - * _depth_ is used to find out nesting depth, to indent accordingly. - */ -static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Integer.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Integer.html deleted file mode 100644 index bab3122..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Integer.html +++ /dev/null @@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::Integer</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::Integer</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000107">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000107" class="method-detail"> - <a name="M000107"></a> - - <div class="method-heading"> - <a href="Integer.src/M000107.html" target="Code" class="method-signature" - onclick="popupCode('Integer.src/M000107.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string representation -for this <a href="Integer.html">Integer</a> number. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Integer.src/M000107.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Integer.src/M000107.html deleted file mode 100644 index ed67ecd..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Integer.src/M000107.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::Integer)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - * Returns a JSON string representation for this Integer number. - */ -static VALUE mInteger_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</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 10a0f3a..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html +++ /dev/null @@ -1,132 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::NilClass</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::NilClass</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000112">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000112" class="method-detail"> - <a name="M000112"></a> - - <div class="method-heading"> - <a href="NilClass.src/M000112.html" target="Code" class="method-signature" - onclick="popupCode('NilClass.src/M000112.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.src/M000112.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.src/M000112.html deleted file mode 100644 index f811269..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/NilClass.src/M000112.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::NilClass)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - */ -static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</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 5574e6f..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.html +++ /dev/null @@ -1,138 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::Object</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::Object</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000106">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000106" class="method-detail"> - <a name="M000106"></a> - - <div class="method-heading"> - <a href="Object.src/M000106.html" target="Code" class="method-signature" - onclick="popupCode('Object.src/M000106.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Converts this object to a string (calling to_s), converts it to a <a -href="../../../../JSON.html">JSON</a> string, and returns the result. This -is a fallback, if no special method <a -href="Object.html#M000106">to_json</a> was defined for some object. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.src/M000106.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.src/M000106.html deleted file mode 100644 index cbb07fa..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/Object.src/M000106.html +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::Object)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - * Converts this object to a string (calling #to_s), converts - * it to a JSON string, and returns the result. This is a fallback, if no - * special method #to_json was defined for some object. - */ -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, "02", &state, &depth); - Check_Type(string, T_STRING); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, string, depth); -}</pre> -</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 4cc8b54..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.html +++ /dev/null @@ -1,210 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::String</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::String</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000114">included</a> - <a href="#M000115">to_json</a> - <a href="#M000116">to_json_raw</a> - <a href="#M000117">to_json_raw_object</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="String/Extend.html" class="link">JSON::Ext::Generator::GeneratorMethods::String::Extend</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000114" class="method-detail"> - <a name="M000114"></a> - - <div class="method-heading"> - <a href="String.src/M000114.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000114.html');return false;"> - <span class="method-name"> String.included(modul)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Extends <em>modul</em> with the <a -href="String/Extend.html">String::Extend</a> module. -</p> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000115" class="method-detail"> - <a name="M000115"></a> - - <div class="method-heading"> - <a href="String.src/M000115.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000115.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string should be encoded with UTF-8 A call to this method returns a <a -href="../../../../JSON.html">JSON</a> string encoded with UTF16 big endian -characters as \u????. -</p> - </div> - </div> - - <div id="method-M000116" class="method-detail"> - <a name="M000116"></a> - - <div class="method-heading"> - <a href="String.src/M000116.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000116.html');return false;"> - <span class="method-name"> to_json_raw(*args)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This method creates a <a href="../../../../JSON.html">JSON</a> text from -the result of a call to <a -href="String.html#M000117">to_json_raw_object</a> of this <a -href="String.html">String</a>. -</p> - </div> - </div> - - <div id="method-M000117" class="method-detail"> - <a name="M000117"></a> - - <div class="method-heading"> - <a href="String.src/M000117.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000117.html');return false;"> - <span class="method-name"> to_json_raw_object()<br /> -</span> - </a> - </div> - - <div class="method-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> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000114.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000114.html deleted file mode 100644 index 72bf1fc..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000114.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>included (JSON::Ext::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: String.included(modul) - * - * Extends _modul_ with the String::Extend module. - */ -static VALUE mString_included_s(VALUE self, VALUE modul) { -</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000115.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000115.html deleted file mode 100644 index 65f766c..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000115.html +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - * This string should be encoded with UTF-8 A call to this method - * returns a JSON string encoded with UTF16 big endian characters as - * \u????. - */ -static VALUE mString_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000116.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000116.html deleted file mode 100644 index e7ff064..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000116.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json_raw (JSON::Ext::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json_raw(*args) - * - * This method creates a JSON text from the result of a call to - * to_json_raw_object of this String. - */ -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> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000117.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000117.html deleted file mode 100644 index b6de49b..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String.src/M000117.html +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json_raw_object (JSON::Ext::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json_raw_object() - * - * 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 JSON - * instead of UTF-8 strings, e. g. binary data. - */ -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("C*")); - rb_hash_aset(result, rb_str_new2("raw"), ary); - return result; -}</pre> -</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 f91d6a6..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html +++ /dev/null @@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::String::Extend</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::String::Extend</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000118">json_create</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000118" class="method-detail"> - <a name="M000118"></a> - - <div class="method-heading"> - <a href="Extend.src/M000118.html" target="Code" class="method-signature" - onclick="popupCode('Extend.src/M000118.html');return false;"> - <span class="method-name"> json_create(o)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Raw Strings are <a href="../../../../../JSON.html">JSON</a> Objects (the -raw bytes are stored in an array for the key "raw"). The Ruby <a -href="../String.html">String</a> can be created by this module method. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.src/M000118.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.src/M000118.html deleted file mode 100644 index 3da0843..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.src/M000118.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (JSON::Ext::Generator::GeneratorMethods::String::Extend)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: json_create(o) - * - * Raw Strings are JSON Objects (the raw bytes are stored in an array for the - * key "raw"). The Ruby String can be created by this module method. - */ -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("raw")); - return rb_funcall(ary, i_pack, 1, rb_str_new2("C*")); -}</pre> -</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 78a56ed..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html +++ /dev/null @@ -1,136 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Ext::Generator::GeneratorMethods::TrueClass</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::GeneratorMethods::TrueClass</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000113">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000113" class="method-detail"> - <a name="M000113"></a> - - <div class="method-heading"> - <a href="TrueClass.src/M000113.html" target="Code" class="method-signature" - onclick="popupCode('TrueClass.src/M000113.html');return false;"> - <span class="method-name"> to_json(*)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string for true: -‘true’. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.src/M000113.html b/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.src/M000113.html deleted file mode 100644 index e039a64..0000000 --- a/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.src/M000113.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Ext::Generator::GeneratorMethods::TrueClass)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_json(*) - * - * Returns a JSON string for true: 'true'. - */ -static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self) -{ - VALUE state, depth; - rb_scan_args(argc, argv, "02", &state, &depth); - state = cState_from_state_s(cState, state); - return cState_partial_generate(state, self, depth); -}</pre> -</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 b5d28d8..0000000 --- a/doc/classes/JSON/Ext/Generator/State.html +++ /dev/null @@ -1,588 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::Ext::Generator::State</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::Ext::Generator::State</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../files/ext/json/ext/generator_c.html"> - ext/json/ext/generator.c - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="../../../Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000134">allow_nan?</a> - <a href="#M000130">array_nl</a> - <a href="#M000131">array_nl=</a> - <a href="#M000135">ascii_only?</a> - <a href="#M000136">configure</a> - <a href="#M000119">from_state</a> - <a href="#M000138">generate</a> - <a href="#M000122">indent</a> - <a href="#M000123">indent=</a> - <a href="#M000121">initialize_copy</a> - <a href="#M000132">max_nesting</a> - <a href="#M000133">max_nesting=</a> - <a href="#M000120">new</a> - <a href="#M000128">object_nl</a> - <a href="#M000129">object_nl=</a> - <a href="#M000139">partial_generate</a> - <a href="#M000124">space</a> - <a href="#M000125">space=</a> - <a href="#M000126">space_before</a> - <a href="#M000127">space_before=</a> - <a href="#M000137">to_h</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000119" class="method-detail"> - <a name="M000119"></a> - - <div class="method-heading"> - <a href="State.src/M000119.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000119.html');return false;"> - <span class="method-name"> from_state(opts)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Creates a <a href="State.html">State</a> object from <em>opts</em>, which -ought to be Hash to create a <a href="State.html#M000120">new</a> <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> - - <div id="method-M000120" class="method-detail"> - <a name="M000120"></a> - - <div class="method-heading"> - <a href="State.src/M000120.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000120.html');return false;"> - <span class="method-name"> new(opts = {})<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Instantiates a <a href="State.html#M000120">new</a> <a -href="State.html">State</a> object, configured by <em>opts</em>. -</p> -<p> -<em>opts</em> can have the following keys: -</p> -<ul> -<li><b><a href="State.html#M000122">indent</a></b>: a string used to <a -href="State.html#M000122">indent</a> levels (default: ’’), - -</li> -<li><b><a href="State.html#M000124">space</a></b>: a string that is put after, -a : or , delimiter (default: ’’), - -</li> -<li><b><a href="State.html#M000126">space_before</a></b>: a string that is put -before a : pair delimiter (default: ’’), - -</li> -<li><b><a href="State.html#M000128">object_nl</a></b>: a string that is put at -the end of a <a href="../../../JSON.html">JSON</a> object (default: -’’), - -</li> -<li><b><a href="State.html#M000130">array_nl</a></b>: a string that is put at -the end of a <a href="../../../JSON.html">JSON</a> array (default: -’’), - -</li> -<li><b>allow_nan</b>: true if NaN, Infinity, and -Infinity should be generated, -otherwise an exception is thrown, if these values are encountered. This -options defaults to false. - -</li> -</ul> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000134" class="method-detail"> - <a name="M000134"></a> - - <div class="method-heading"> - <a href="State.src/M000134.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000134.html');return false;"> - <span class="method-name"> allow_nan?<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns true, if NaN, Infinity, and -Infinity should be generated, -otherwise returns false. -</p> - </div> - </div> - - <div id="method-M000130" class="method-detail"> - <a name="M000130"></a> - - <div class="method-heading"> - <a href="State.src/M000130.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000130.html');return false;"> - <span class="method-name"> array_nl()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is put at the end of a line that holds a <a -href="../../../JSON.html">JSON</a> array. -</p> - </div> - </div> - - <div id="method-M000131" class="method-detail"> - <a name="M000131"></a> - - <div class="method-heading"> - <a href="State.src/M000131.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000131.html');return false;"> - <span class="method-name"> array_nl=(array_nl)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is put at the end of a line that holds a <a -href="../../../JSON.html">JSON</a> array. -</p> - </div> - </div> - - <div id="method-M000135" class="method-detail"> - <a name="M000135"></a> - - <div class="method-heading"> - <a href="State.src/M000135.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000135.html');return false;"> - <span class="method-name"> ascii_only?<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns true, if NaN, Infinity, and -Infinity should be generated, -otherwise returns false. -</p> - </div> - </div> - - <div id="method-M000136" class="method-detail"> - <a name="M000136"></a> - - <div class="method-heading"> - <a href="State.src/M000136.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000136.html');return false;"> - <span class="method-name"> configure(opts)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Configure this <a href="State.html">State</a> instance with the Hash -<em>opts</em>, and return itself. -</p> - </div> - </div> - - <div id="method-M000138" class="method-detail"> - <a name="M000138"></a> - - <div class="method-heading"> - <a href="State.src/M000138.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000138.html');return false;"> - <span class="method-name"> generate(obj)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Generates a valid <a href="../../../JSON.html">JSON</a> document from -object <tt>obj</tt> and returns the result. If no valid <a -href="../../../JSON.html">JSON</a> document can be created this method -raises a <a href="../../GeneratorError.html">GeneratorError</a> exception. -</p> - </div> - </div> - - <div id="method-M000122" class="method-detail"> - <a name="M000122"></a> - - <div class="method-heading"> - <a href="State.src/M000122.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000122.html');return false;"> - <span class="method-name"> indent()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is used to <a href="State.html#M000122">indent</a> levels in -the <a href="../../../JSON.html">JSON</a> text. -</p> - </div> - </div> - - <div id="method-M000123" class="method-detail"> - <a name="M000123"></a> - - <div class="method-heading"> - <a href="State.src/M000123.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000123.html');return false;"> - <span class="method-name"> indent=(indent)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is used to <a href="State.html#M000122">indent</a> levels in -the <a href="../../../JSON.html">JSON</a> text. -</p> - </div> - </div> - - <div id="method-M000121" class="method-detail"> - <a name="M000121"></a> - - <div class="method-heading"> - <a href="State.src/M000121.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000121.html');return false;"> - <span class="method-name"> initialize_copy(orig)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Initializes this object from orig if it to be duplicated/cloned and returns -it. -</p> - </div> - </div> - - <div id="method-M000132" class="method-detail"> - <a name="M000132"></a> - - <div class="method-heading"> - <a href="State.src/M000132.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000132.html');return false;"> - <span class="method-name"> max_nesting<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This integer returns the maximum level of data structure nesting in the -generated <a href="../../../JSON.html">JSON</a>, <a -href="State.html#M000132">max_nesting</a> = 0 if no maximum is checked. -</p> - </div> - </div> - - <div id="method-M000133" class="method-detail"> - <a name="M000133"></a> - - <div class="method-heading"> - <a href="State.src/M000133.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000133.html');return false;"> - <span class="method-name"> max_nesting=(depth)<br /> -</span> - </a> - </div> - - <div class="method-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#M000132">max_nesting</a> = 0 if no maximum should be -checked. -</p> - </div> - </div> - - <div id="method-M000128" class="method-detail"> - <a name="M000128"></a> - - <div class="method-heading"> - <a href="State.src/M000128.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000128.html');return false;"> - <span class="method-name"> object_nl()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is put at the end of a line that holds a <a -href="../../../JSON.html">JSON</a> object (or Hash). -</p> - </div> - </div> - - <div id="method-M000129" class="method-detail"> - <a name="M000129"></a> - - <div class="method-heading"> - <a href="State.src/M000129.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000129.html');return false;"> - <span class="method-name"> object_nl=(object_nl)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is put at the end of a line that holds a <a -href="../../../JSON.html">JSON</a> object (or Hash). -</p> - </div> - </div> - - <div id="method-M000139" class="method-detail"> - <a name="M000139"></a> - - <div class="method-heading"> - <a href="State.src/M000139.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000139.html');return false;"> - <span class="method-name"> partial_generate(obj)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Generates a part of a <a href="../../../JSON.html">JSON</a> document from -object <tt>obj</tt> and returns the result. -</p> - </div> - </div> - - <div id="method-M000124" class="method-detail"> - <a name="M000124"></a> - - <div class="method-heading"> - <a href="State.src/M000124.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000124.html');return false;"> - <span class="method-name"> space()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is used to insert a <a href="State.html#M000124">space</a> -between the tokens in a <a href="../../../JSON.html">JSON</a> string. -</p> - </div> - </div> - - <div id="method-M000125" class="method-detail"> - <a name="M000125"></a> - - <div class="method-heading"> - <a href="State.src/M000125.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000125.html');return false;"> - <span class="method-name"> space=(space)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is used to insert a <a href="State.html#M000124">space</a> -between the tokens in a <a href="../../../JSON.html">JSON</a> string. -</p> - </div> - </div> - - <div id="method-M000126" class="method-detail"> - <a name="M000126"></a> - - <div class="method-heading"> - <a href="State.src/M000126.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000126.html');return false;"> - <span class="method-name"> space_before()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is used to insert a <a href="State.html#M000124">space</a> -before the ’:’ in <a href="../../../JSON.html">JSON</a> -objects. -</p> - </div> - </div> - - <div id="method-M000127" class="method-detail"> - <a name="M000127"></a> - - <div class="method-heading"> - <a href="State.src/M000127.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000127.html');return false;"> - <span class="method-name"> space_before=(space_before)<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -This string is used to insert a <a href="State.html#M000124">space</a> -before the ’:’ in <a href="../../../JSON.html">JSON</a> -objects. -</p> - </div> - </div> - - <div id="method-M000137" class="method-detail"> - <a name="M000137"></a> - - <div class="method-heading"> - <a href="State.src/M000137.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000137.html');return false;"> - <span class="method-name"> to_h<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns the configuration instance variables as a hash, that can be passed -to the <a href="State.html#M000136">configure</a> method. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000119.html b/doc/classes/JSON/Ext/Generator/State.src/M000119.html deleted file mode 100644 index 2f909e0..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000119.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>from_state (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: from_state(opts) - * - * Creates a State object from _opts_, which ought to be Hash to create a - * new State instance configured by _opts_, something else to create an - * unconfigured instance. If _opts_ is a State object, it is just returned. - */ -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, rb_intern("SAFE_STATE_PROTOTYPE")); - } - return CJSON_SAFE_STATE_PROTOTYPE; - } -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000120.html b/doc/classes/JSON/Ext/Generator/State.src/M000120.html deleted file mode 100644 index b37e378..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000120.html +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: new(opts = {}) - * - * Instantiates a new State object, configured by _opts_. - * - * _opts_ can have the following keys: - * - * * *indent*: a string used to indent levels (default: ''), - * * *space*: a string that is put after, a : or , delimiter (default: ''), - * * *space_before*: a string that is put before a : pair delimiter (default: ''), - * * *object_nl*: a string that is put at the end of a JSON object (default: ''), - * * *array_nl*: a string that is put at the end of a JSON array (default: ''), - * * *allow_nan*: true if NaN, Infinity, and -Infinity should be - * generated, otherwise an exception is thrown, if these values are - * encountered. This options defaults to false. - */ -static VALUE cState_initialize(int argc, VALUE *argv, VALUE self) -{ - VALUE opts; - GET_STATE(self); - MEMZERO(state, JSON_Generator_State, 1); - state->max_nesting = 19; - rb_scan_args(argc, argv, "01", &opts); - if (!NIL_P(opts)) cState_configure(self, opts); - return self; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000121.html b/doc/classes/JSON/Ext/Generator/State.src/M000121.html deleted file mode 100644 index c3556c3..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000121.html +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>initialize_copy (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: initialize_copy(orig) - * - * Initializes this object from orig if it to be duplicated/cloned and returns - * it. -*/ -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, "unallocated JSON::State"); - - MEMCPY(objState, origState, JSON_Generator_State, 1); - objState->indent = fstrndup(origState->indent, origState->indent_len); - objState->space = fstrndup(origState->space, origState->space_len); - objState->space_before = fstrndup(origState->space_before, origState->space_before_len); - objState->object_nl = fstrndup(origState->object_nl, origState->object_nl_len); - objState->array_nl = fstrndup(origState->array_nl, origState->array_nl_len); - if (origState->array_delim) objState->array_delim = fbuffer_dup(origState->array_delim); - if (origState->object_delim) objState->object_delim = fbuffer_dup(origState->object_delim); - if (origState->object_delim2) objState->object_delim2 = fbuffer_dup(origState->object_delim2); - return obj; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000122.html b/doc/classes/JSON/Ext/Generator/State.src/M000122.html deleted file mode 100644 index afcbe3b..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000122.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>indent (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: indent() - * - * This string is used to indent levels in the JSON text. - */ -static VALUE cState_indent(VALUE self) -{ - GET_STATE(self); - return state->indent ? rb_str_new2(state->indent) : rb_str_new2(""); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000123.html b/doc/classes/JSON/Ext/Generator/State.src/M000123.html deleted file mode 100644 index 681bf31..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000123.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>indent= (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: indent=(indent) - * - * This string is used to indent levels in the JSON text. - */ -static VALUE cState_indent_set(VALUE self, VALUE indent) -{ - GET_STATE(self); - Check_Type(indent, T_STRING); - if (RSTRING_LEN(indent) == 0) { - if (state->indent) { - ruby_xfree(state->indent); - state->indent = NULL; - } - } else { - if (state->indent) ruby_xfree(state->indent); - state->indent = strdup(RSTRING_PTR(indent)); - } - return Qnil; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000124.html b/doc/classes/JSON/Ext/Generator/State.src/M000124.html deleted file mode 100644 index 83fda06..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000124.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>space (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: space() - * - * This string is used to insert a space between the tokens in a JSON - * string. - */ -static VALUE cState_space(VALUE self) -{ - GET_STATE(self); - return state->space ? rb_str_new2(state->space) : rb_str_new2(""); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000125.html b/doc/classes/JSON/Ext/Generator/State.src/M000125.html deleted file mode 100644 index 3f46c8b..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000125.html +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>space= (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: space=(space) - * - * This string is used to insert a space between the tokens in a JSON - * string. - */ -static VALUE cState_space_set(VALUE self, VALUE space) -{ - GET_STATE(self); - Check_Type(space, T_STRING); - if (RSTRING_LEN(space) == 0) { - if (state->space) { - ruby_xfree(state->space); - state->space = NULL; - } - } else { - if (state->space) ruby_xfree(state->space); - state->space = strdup(RSTRING_PTR(space)); - } - return Qnil; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000126.html b/doc/classes/JSON/Ext/Generator/State.src/M000126.html deleted file mode 100644 index 1cb258b..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000126.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>space_before (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: space_before() - * - * This string is used to insert a space before the ':' in JSON objects. - */ -static VALUE cState_space_before(VALUE self) -{ - GET_STATE(self); - return state->space_before ? rb_str_new2(state->space_before) : rb_str_new2(""); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000127.html b/doc/classes/JSON/Ext/Generator/State.src/M000127.html deleted file mode 100644 index 8276bf4..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000127.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>space_before= (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: space_before=(space_before) - * - * This string is used to insert a space before the ':' in JSON objects. - */ -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->space_before) { - ruby_xfree(state->space_before); - state->space_before = NULL; - } - } else { - if (state->space_before) ruby_xfree(state->space_before); - state->space_before = strdup(RSTRING_PTR(space_before)); - } - return Qnil; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000128.html b/doc/classes/JSON/Ext/Generator/State.src/M000128.html deleted file mode 100644 index cabf995..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000128.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>object_nl (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: object_nl() - * - * This string is put at the end of a line that holds a JSON object (or - * Hash). - */ -static VALUE cState_object_nl(VALUE self) -{ - GET_STATE(self); - return state->object_nl ? rb_str_new2(state->object_nl) : rb_str_new2(""); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000129.html b/doc/classes/JSON/Ext/Generator/State.src/M000129.html deleted file mode 100644 index 0df3de2..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000129.html +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>object_nl= (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: object_nl=(object_nl) - * - * This string is put at the end of a line that holds a JSON object (or - * Hash). - */ -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->object_nl) { - ruby_xfree(state->object_nl); - state->object_nl = NULL; - } - } else { - if (state->object_nl) ruby_xfree(state->object_nl); - state->object_nl = strdup(RSTRING_PTR(object_nl)); - } - return Qnil; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000130.html b/doc/classes/JSON/Ext/Generator/State.src/M000130.html deleted file mode 100644 index f7a114d..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000130.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>array_nl (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: array_nl() - * - * This string is put at the end of a line that holds a JSON array. - */ -static VALUE cState_array_nl(VALUE self) -{ - GET_STATE(self); - return state->array_nl ? rb_str_new2(state->array_nl) : rb_str_new2(""); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000131.html b/doc/classes/JSON/Ext/Generator/State.src/M000131.html deleted file mode 100644 index dd10024..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000131.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>array_nl= (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: array_nl=(array_nl) - * - * This string is put at the end of a line that holds a JSON array. - */ -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->array_nl) { - ruby_xfree(state->array_nl); - state->array_nl = NULL; - } - } else { - if (state->array_nl) ruby_xfree(state->array_nl); - state->array_nl = strdup(RSTRING_PTR(array_nl)); - } - return Qnil; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000132.html b/doc/classes/JSON/Ext/Generator/State.src/M000132.html deleted file mode 100644 index 841c06d..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000132.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>max_nesting (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: max_nesting - * - * This integer returns the maximum level of data structure nesting in - * the generated JSON, max_nesting = 0 if no maximum is checked. - */ -static VALUE cState_max_nesting(VALUE self) -{ - GET_STATE(self); - return LONG2FIX(state->max_nesting); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000133.html b/doc/classes/JSON/Ext/Generator/State.src/M000133.html deleted file mode 100644 index 76e22d4..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000133.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>max_nesting= (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: max_nesting=(depth) - * - * This sets the maximum level of data structure nesting in the generated JSON - * to the integer depth, max_nesting = 0 if no maximum should be checked. - */ -static VALUE cState_max_nesting_set(VALUE self, VALUE depth) -{ - GET_STATE(self); - Check_Type(depth, T_FIXNUM); - return state->max_nesting = FIX2LONG(depth); -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000134.html b/doc/classes/JSON/Ext/Generator/State.src/M000134.html deleted file mode 100644 index 09bc492..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000134.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>allow_nan? (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: allow_nan? - * - * Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise - * returns false. - */ -static VALUE cState_allow_nan_p(VALUE self) -{ - GET_STATE(self); - return state->allow_nan ? Qtrue : Qfalse; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000135.html b/doc/classes/JSON/Ext/Generator/State.src/M000135.html deleted file mode 100644 index f86662d..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000135.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ascii_only? (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: ascii_only? - * - * Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise - * returns false. - */ -static VALUE cState_ascii_only_p(VALUE self) -{ - GET_STATE(self); - return state->ascii_only ? Qtrue : Qfalse; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000136.html b/doc/classes/JSON/Ext/Generator/State.src/M000136.html deleted file mode 100644 index 5a3df1c..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000136.html +++ /dev/null @@ -1,82 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>configure (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: configure(opts) - * - * Configure this State instance with the Hash _opts_, and return - * itself. - */ -static VALUE cState_configure(VALUE self, VALUE opts) -{ - VALUE tmp; - GET_STATE(self); - tmp = rb_convert_type(opts, T_HASH, "Hash", "to_hash"); - if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h"); - if (NIL_P(tmp)) { - rb_raise(rb_eArgError, "opts has to be hash like or convertable into a hash"); - } - opts = tmp; - tmp = rb_hash_aref(opts, ID2SYM(i_indent)); - if (RTEST(tmp)) { - Check_Type(tmp, T_STRING); - int len = RSTRING_LEN(tmp); - state->indent = fstrndup(RSTRING_PTR(tmp), len); - state->indent_len = len; - } - tmp = rb_hash_aref(opts, ID2SYM(i_space)); - if (RTEST(tmp)) { - Check_Type(tmp, T_STRING); - int len = RSTRING_LEN(tmp); - state->space = fstrndup(RSTRING_PTR(tmp), len); - state->space_len = len; - } - tmp = rb_hash_aref(opts, ID2SYM(i_space_before)); - if (RTEST(tmp)) { - Check_Type(tmp, T_STRING); - int len = RSTRING_LEN(tmp); - state->space_before = fstrndup(RSTRING_PTR(tmp), len); - state->space_before_len = len; - } - tmp = rb_hash_aref(opts, ID2SYM(i_array_nl)); - if (RTEST(tmp)) { - Check_Type(tmp, T_STRING); - int len = RSTRING_LEN(tmp); - state->array_nl = fstrndup(RSTRING_PTR(tmp), len); - state->array_nl_len = len; - } - tmp = rb_hash_aref(opts, ID2SYM(i_object_nl)); - if (RTEST(tmp)) { - Check_Type(tmp, T_STRING); - int len = RSTRING_LEN(tmp); - state->object_nl = fstrndup(RSTRING_PTR(tmp), len); - state->object_nl_len = len; - } - tmp = ID2SYM(i_max_nesting); - state->max_nesting = 19; - if (st_lookup(RHASH_TBL(opts), tmp, 0)) { - VALUE max_nesting = rb_hash_aref(opts, tmp); - if (RTEST(max_nesting)) { - Check_Type(max_nesting, T_FIXNUM); - state->max_nesting = FIX2LONG(max_nesting); - } else { - state->max_nesting = 0; - } - } - tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan)); - state->allow_nan = RTEST(tmp); - tmp = rb_hash_aref(opts, ID2SYM(i_ascii_only)); - state->ascii_only = RTEST(tmp); - return self; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000137.html b/doc/classes/JSON/Ext/Generator/State.src/M000137.html deleted file mode 100644 index 20d3d0f..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000137.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_h (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: to_h - * - * Returns the configuration instance variables as a hash, that can be - * passed to the configure method. - */ -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->indent, state->indent_len)); - rb_hash_aset(result, ID2SYM(i_space), rb_str_new(state->space, state->space_len)); - rb_hash_aset(result, ID2SYM(i_space_before), rb_str_new(state->space_before, state->space_before_len)); - rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state->object_nl, state->object_nl_len)); - rb_hash_aset(result, ID2SYM(i_array_nl), rb_str_new(state->array_nl, state->array_nl_len)); - rb_hash_aset(result, ID2SYM(i_allow_nan), state->allow_nan ? Qtrue : Qfalse); - rb_hash_aset(result, ID2SYM(i_ascii_only), state->ascii_only ? Qtrue : Qfalse); - rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state->max_nesting)); - return result; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000138.html b/doc/classes/JSON/Ext/Generator/State.src/M000138.html deleted file mode 100644 index 1386368..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000138.html +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>generate (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: generate(obj) - * - * Generates a valid JSON document from object +obj+ and returns the - * result. If no valid JSON document can be created this method raises a - * GeneratorError exception. - */ -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("\\A\\s*(?:\\[.*\\]|\\{.*\\})\\s*\\Z"); - args[1] = CRegexp_MULTILINE; - re = rb_class_new_instance(2, args, rb_cRegexp); - if (NIL_P(rb_reg_match(re, result))) { - rb_raise(eGeneratorError, "only generation of JSON objects or arrays allowed"); - } - return result; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000139.html b/doc/classes/JSON/Ext/Generator/State.src/M000139.html deleted file mode 100644 index 5870d17..0000000 --- a/doc/classes/JSON/Ext/Generator/State.src/M000139.html +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>partial_generate (JSON::Ext::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: partial_generate(obj) - * - * Generates a part of a JSON document from object +obj+ and returns the - * result. - */ -static VALUE cState_partial_generate(VALUE self, VALUE obj, VALUE depth) -{ - VALUE result; - FBuffer *buffer = fbuffer_alloc(); - GET_STATE(self); - - if (state->object_delim) { - fbuffer_clear(state->object_delim); - } else { - state->object_delim = fbuffer_alloc_with_length(16); - } - fbuffer_append_char(state->object_delim, ','); - if (state->object_delim2) { - fbuffer_clear(state->object_delim2); - } else { - state->object_delim2 = fbuffer_alloc_with_length(16); - } - fbuffer_append_char(state->object_delim2, ':'); - if (state->space) fbuffer_append(state->object_delim2, state->space, state->space_len); - - if (state->array_delim) { - fbuffer_clear(state->array_delim); - } else { - state->array_delim = fbuffer_alloc_with_length(16); - } - fbuffer_append_char(state->array_delim, ','); - if (state->array_nl) fbuffer_append(state->array_delim, state->array_nl, state->array_nl_len); - - generate_json(buffer, self, state, obj, NIL_P(depth) ? 0 : FIX2INT(depth)); - result = fbuffer2rstring(buffer); - fbuffer_free_only_buffer(buffer); - FORCE_UTF8(result); - return result; -}</pre> -</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 7d0bf27..0000000 --- a/doc/classes/JSON/Ext/Parser.html +++ /dev/null @@ -1,237 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::Ext::Parser</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::Ext::Parser</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../files/ext/json/ext/parser_c.html"> - ext/json/ext/parser.c - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="../../Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="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> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000140">new</a> - <a href="#M000141">parse</a> - <a href="#M000142">source</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000140" class="method-detail"> - <a name="M000140"></a> - - <div class="method-heading"> - <a href="Parser.src/M000140.html" target="Code" class="method-signature" - onclick="popupCode('Parser.src/M000140.html');return false;"> - <span class="method-name"> new(source, opts => {})<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Creates a <a href="Parser.html#M000140">new</a> <a -href="Parser.html">JSON::Ext::Parser</a> instance for the string <em><a -href="Parser.html#M000142">source</a></em>. -</p> -<p> -Creates a <a href="Parser.html#M000140">new</a> <a -href="Parser.html">JSON::Ext::Parser</a> instance for the string <em><a -href="Parser.html#M000142">source</a></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><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. - -</li> -<li><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. - -</li> -<li><b>create_additions</b>: If set to false, the <a -href="Parser.html">Parser</a> doesn‘t create additions even if a -matchin class and create_id was found. This option defaults to true. - -</li> -<li><b>object_class</b>: Defaults to Hash - -</li> -<li><b>array_class</b>: Defaults to Array - -</li> -</ul> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000141" class="method-detail"> - <a name="M000141"></a> - - <div class="method-heading"> - <a href="Parser.src/M000141.html" target="Code" class="method-signature" - onclick="popupCode('Parser.src/M000141.html');return false;"> - <span class="method-name"> parse()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Parses the current <a href="../../JSON.html">JSON</a> text <em><a -href="Parser.html#M000142">source</a></em> and returns the complete data -structure as a result. -</p> - </div> - </div> - - <div id="method-M000142" class="method-detail"> - <a name="M000142"></a> - - <div class="method-heading"> - <a href="Parser.src/M000142.html" target="Code" class="method-signature" - onclick="popupCode('Parser.src/M000142.html');return false;"> - <span class="method-name"> source()<br /> -</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a copy of the current <em><a -href="Parser.html#M000142">source</a></em> string, that was used to -construct this <a href="Parser.html">Parser</a>. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Parser.src/M000140.html b/doc/classes/JSON/Ext/Parser.src/M000140.html deleted file mode 100644 index d59799e..0000000 --- a/doc/classes/JSON/Ext/Parser.src/M000140.html +++ /dev/null @@ -1,108 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (JSON::Ext::Parser)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: new(source, opts => {}) - * - * Creates a new JSON::Ext::Parser instance for the string _source_. - * - * Creates a new JSON::Ext::Parser instance for the string _source_. - * - * It will be configured by the _opts_ hash. _opts_ can have the following - * keys: - * - * _opts_ can have the following keys: - * * *max_nesting*: The maximum depth of nesting allowed in the parsed data - * structures. Disable depth checking with :max_nesting => false|nil|0, it - * defaults to 19. - * * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in - * defiance of RFC 4627 to be parsed by the Parser. This option defaults to - * false. - * * *create_additions*: If set to false, the Parser doesn't create - * additions even if a matchin class and create_id was found. This option - * defaults to true. - * * *object_class*: Defaults to Hash - * * *array_class*: Defaults to Array - */ -static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self) -{ - char *ptr; - long len; - VALUE source, opts; - GET_PARSER; - rb_scan_args(argc, argv, "11", &source, &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, "Hash", "to_hash"); - if (NIL_P(opts)) { - rb_raise(rb_eArgError, "opts needs to be like a hash"); - } else { - VALUE tmp = ID2SYM(i_max_nesting); - if (st_lookup(RHASH_TBL(opts), tmp, 0)) { - VALUE max_nesting = rb_hash_aref(opts, tmp); - if (RTEST(max_nesting)) { - Check_Type(max_nesting, T_FIXNUM); - json->max_nesting = FIX2INT(max_nesting); - } else { - json->max_nesting = 0; - } - } else { - json->max_nesting = 19; - } - tmp = ID2SYM(i_allow_nan); - if (st_lookup(RHASH_TBL(opts), tmp, 0)) { - VALUE allow_nan = rb_hash_aref(opts, tmp); - json->allow_nan = RTEST(allow_nan) ? 1 : 0; - } else { - json->allow_nan = 0; - } - tmp = ID2SYM(i_create_additions); - if (st_lookup(RHASH_TBL(opts), tmp, 0)) { - VALUE create_additions = rb_hash_aref(opts, tmp); - if (RTEST(create_additions)) { - json->create_id = rb_funcall(mJSON, i_create_id, 0); - } else { - json->create_id = Qnil; - } - } else { - json->create_id = rb_funcall(mJSON, i_create_id, 0); - } - tmp = ID2SYM(i_object_class); - if (st_lookup(RHASH_TBL(opts), tmp, 0)) { - json->object_class = rb_hash_aref(opts, tmp); - } else { - json->object_class = Qnil; - } - tmp = ID2SYM(i_array_class); - if (st_lookup(RHASH_TBL(opts), tmp, 0)) { - json->array_class = rb_hash_aref(opts, tmp); - } else { - json->array_class = Qnil; - } - } - } else { - json->max_nesting = 19; - json->allow_nan = 0; - json->create_id = rb_funcall(mJSON, i_create_id, 0); - json->object_class = Qnil; - json->array_class = Qnil; - } - json->current_nesting = 0; - json->len = len; - json->source = ptr; - json->Vsource = source; - return self; -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Parser.src/M000141.html b/doc/classes/JSON/Ext/Parser.src/M000141.html deleted file mode 100644 index 56fdb6d..0000000 --- a/doc/classes/JSON/Ext/Parser.src/M000141.html +++ /dev/null @@ -1,179 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>parse (JSON::Ext::Parser)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: parse() - * - * Parses the current JSON text _source_ and returns the complete data - * structure as a result. - */ -static VALUE cParser_parse(VALUE self) -{ - char *p, *pe; - int cs = EVIL; - VALUE result = Qnil; - GET_PARSER; - - -#line 1685 "parser.c" - { - cs = JSON_start; - } - -#line 682 "parser.rl" - p = json->source; - pe = p + json->len; - -#line 1694 "parser.c" - { - 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 <= (*p) && (*p) <= 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 500 "parser.rl" - { - char *np; - json->current_nesting = 1; - np = JSON_parse_array(json, p, pe, &result); - if (np == NULL) { p--; {p++; cs = 10; goto _out;} } else {p = (( np))-1;} - } - goto st10; -tr4: -#line 493 "parser.rl" - { - char *np; - json->current_nesting = 1; - np = JSON_parse_object(json, p, pe, &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 1771 "parser.c" - switch( (*p) ) { - case 13: goto st10; - case 32: goto st10; - case 47: goto st6; - } - if ( 9 <= (*p) && (*p) <= 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 685 "parser.rl" - - if (cs >= JSON_first_final && p == pe) { - return result; - } else { - rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p); - } -}</pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Ext/Parser.src/M000142.html b/doc/classes/JSON/Ext/Parser.src/M000142.html deleted file mode 100644 index 385807b..0000000 --- a/doc/classes/JSON/Ext/Parser.src/M000142.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>source (JSON::Ext::Parser)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre>/* - * call-seq: source() - * - * Returns a copy of the current _source_ string, that was used to construct - * this Parser. - */ -static VALUE cParser_source(VALUE self) -{ - GET_PARSER; - return rb_str_dup(json->Vsource); -}</pre> -</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 6d2aa47..0000000 --- a/doc/classes/JSON/GeneratorError.html +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::GeneratorError</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::GeneratorError</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="JSONError.html"> - JSONError - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This exception is raised, if a generator or unparser error occurs. -</p> - - </div> - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 e6199f2..0000000 --- a/doc/classes/JSON/JSONError.html +++ /dev/null @@ -1,117 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::JSONError</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::JSONError</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - StandardError - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -The base exception for <a href="../JSON.html">JSON</a> errors. -</p> - - </div> - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 18d059c..0000000 --- a/doc/classes/JSON/MissingUnicodeSupport.html +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::MissingUnicodeSupport</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::MissingUnicodeSupport</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="JSONError.html"> - JSONError - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="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> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 f48b6d3..0000000 --- a/doc/classes/JSON/NestingError.html +++ /dev/null @@ -1,120 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::NestingError</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::NestingError</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="ParserError.html"> - ParserError - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This exception is raised, if the nesting of parsed datastructures is too -deep. -</p> - - </div> - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 6f211fd..0000000 --- a/doc/classes/JSON/ParserError.html +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::ParserError</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::ParserError</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/common_rb.html"> - lib/json/common.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="JSONError.html"> - JSONError - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This exception is raised, if a parser error occurs. -</p> - - </div> - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 db7d4bd..0000000 --- a/doc/classes/JSON/Pure.html +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - <a href="../../files/lib/json/pure/parser_rb.html"> - lib/json/pure/parser.rb - </a> - <br /> - <a href="../../files/lib/json/pure_rb.html"> - lib/json/pure.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This module holds all the modules/classes that implement <a -href="../JSON.html">JSON</a>‘s functionality in pure ruby. -</p> - - </div> - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="Pure/Generator.html" class="link">JSON::Pure::Generator</a><br /> -Class <a href="Pure/Parser.html" class="link">JSON::Pure::Parser</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 68e3e59..0000000 --- a/doc/classes/JSON/Pure/Generator.html +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="Generator/GeneratorMethods.html" class="link">JSON::Pure::Generator::GeneratorMethods</a><br /> -Class <a href="Generator/State.html" class="link">JSON::Pure::Generator::State</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 2c80ba5..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods.html +++ /dev/null @@ -1,119 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="GeneratorMethods/Array.html" class="link">JSON::Pure::Generator::GeneratorMethods::Array</a><br /> -Module <a href="GeneratorMethods/FalseClass.html" class="link">JSON::Pure::Generator::GeneratorMethods::FalseClass</a><br /> -Module <a href="GeneratorMethods/Float.html" class="link">JSON::Pure::Generator::GeneratorMethods::Float</a><br /> -Module <a href="GeneratorMethods/Hash.html" class="link">JSON::Pure::Generator::GeneratorMethods::Hash</a><br /> -Module <a href="GeneratorMethods/Integer.html" class="link">JSON::Pure::Generator::GeneratorMethods::Integer</a><br /> -Module <a href="GeneratorMethods/NilClass.html" class="link">JSON::Pure::Generator::GeneratorMethods::NilClass</a><br /> -Module <a href="GeneratorMethods/Object.html" class="link">JSON::Pure::Generator::GeneratorMethods::Object</a><br /> -Module <a href="GeneratorMethods/String.html" class="link">JSON::Pure::Generator::GeneratorMethods::String</a><br /> -Module <a href="GeneratorMethods/TrueClass.html" class="link">JSON::Pure::Generator::GeneratorMethods::TrueClass</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 2c7862e..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.html +++ /dev/null @@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::Array</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::Array</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000146">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000146" class="method-detail"> - <a name="M000146"></a> - - <div class="method-heading"> - <a href="Array.src/M000146.html" target="Code" class="method-signature" - onclick="popupCode('Array.src/M000146.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(state = nil, depth = 0, *)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string containing a <a -href="../../../../JSON.html">JSON</a> array, that is unparsed from this <a -href="Array.html">Array</a> instance. <em>state</em> is a JSON::State -object, that can also be used to configure the produced <a -href="../../../../JSON.html">JSON</a> string output further. <em>depth</em> -is used to find out nesting depth, to indent accordingly. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.src/M000146.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.src/M000146.html deleted file mode 100644 index 8d093ad..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Array.src/M000146.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::Array)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 300</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">depth</span> = <span class="ruby-value">0</span>, <span class="ruby-operator">*</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>) - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">check_max_nesting</span>(<span class="ruby-identifier">depth</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>, <span class="ruby-identifier">depth</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 d30e620..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html +++ /dev/null @@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::FalseClass</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::FalseClass</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000145">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000145" class="method-detail"> - <a name="M000145"></a> - - <div class="method-heading"> - <a href="FalseClass.src/M000145.html" target="Code" class="method-signature" - onclick="popupCode('FalseClass.src/M000145.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string for false: -‘false’. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.src/M000145.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.src/M000145.html deleted file mode 100644 index 30b19fc..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.src/M000145.html +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::FalseClass)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 437</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-value str">'false'</span> <span class="ruby-keyword kw">end</span></pre> -</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 01e84b0..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.html +++ /dev/null @@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::Float</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::Float</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000148">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000148" class="method-detail"> - <a name="M000148"></a> - - <div class="method-heading"> - <a href="Float.src/M000148.html" target="Code" class="method-signature" - onclick="popupCode('Float.src/M000148.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(state = nil, *)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string representation -for this <a href="Float.html">Float</a> number. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.src/M000148.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.src/M000148.html deleted file mode 100644 index 271482a..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Float.src/M000148.html +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::Float)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 342</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">*</span>) - <span class="ruby-keyword kw">case</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">infinite?</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">allow_nan?</span> - <span class="ruby-identifier">to_s</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-node">"#{self} not allowed in JSON"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">nan?</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">allow_nan?</span> - <span class="ruby-identifier">to_s</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-node">"#{self} not allowed in JSON"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">to_s</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</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 d698e81..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.html +++ /dev/null @@ -1,139 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::Hash</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::Hash</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000147">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000147" class="method-detail"> - <a name="M000147"></a> - - <div class="method-heading"> - <a href="Hash.src/M000147.html" target="Code" class="method-signature" - onclick="popupCode('Hash.src/M000147.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(state = nil, depth = 0, *)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string containing a <a -href="../../../../JSON.html">JSON</a> object, that is unparsed from this <a -href="Hash.html">Hash</a> instance. <em>state</em> is a JSON::State object, -that can also be used to configure the produced <a -href="../../../../JSON.html">JSON</a> string output further. <em>depth</em> -is used to find out nesting depth, to indent accordingly. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.src/M000147.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.src/M000147.html deleted file mode 100644 index c899609..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Hash.src/M000147.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::Hash)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 245</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-identifier">state</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">depth</span> = <span class="ruby-value">0</span>, <span class="ruby-operator">*</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span> - <span class="ruby-identifier">state</span> = <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>) - <span class="ruby-identifier">state</span>.<span class="ruby-identifier">check_max_nesting</span>(<span class="ruby-identifier">depth</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">json_transform</span>(<span class="ruby-identifier">state</span>, <span class="ruby-identifier">depth</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 70131b7..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.html +++ /dev/null @@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::Integer</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::Integer</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000144">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000144" class="method-detail"> - <a name="M000144"></a> - - <div class="method-heading"> - <a href="Integer.src/M000144.html" target="Code" class="method-signature" - onclick="popupCode('Integer.src/M000144.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string representation -for this <a href="Integer.html">Integer</a> number. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.src/M000144.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.src/M000144.html deleted file mode 100644 index fe9babf..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Integer.src/M000144.html +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::Integer)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 337</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">end</span></pre> -</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 481d34d..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html +++ /dev/null @@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::NilClass</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::NilClass</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000149">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000149" class="method-detail"> - <a name="M000149"></a> - - <div class="method-heading"> - <a href="NilClass.src/M000149.html" target="Code" class="method-signature" - onclick="popupCode('NilClass.src/M000149.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string for nil: -‘null’. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.src/M000149.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.src/M000149.html deleted file mode 100644 index 74f743a..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/NilClass.src/M000149.html +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::NilClass)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 442</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-value str">'null'</span> <span class="ruby-keyword kw">end</span></pre> -</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 d866a9d..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.html +++ /dev/null @@ -1,137 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::Object</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::Object</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000143">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000143" class="method-detail"> - <a name="M000143"></a> - - <div class="method-heading"> - <a href="Object.src/M000143.html" target="Code" class="method-signature" - onclick="popupCode('Object.src/M000143.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*)</span> - </a> - </div> - - <div class="method-description"> - <p> -Converts this object to a string (calling to_s), converts it to a <a -href="../../../../JSON.html">JSON</a> string, and returns the result. This -is a fallback, if no special method <a -href="Object.html#M000143">to_json</a> was defined for some object. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.src/M000143.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.src/M000143.html deleted file mode 100644 index bd54d86..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/Object.src/M000143.html +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::Object)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 236</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_json</span> <span class="ruby-keyword kw">end</span></pre> -</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 079a39b..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.html +++ /dev/null @@ -1,226 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::String</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::String</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000153">included</a> - <a href="#M000151">to_json</a> - <a href="#M000152">to_json</a> - <a href="#M000155">to_json_raw</a> - <a href="#M000154">to_json_raw_object</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - <div id="class-list"> - <h3 class="section-bar">Classes and Modules</h3> - - Module <a href="String/Extend.html" class="link">JSON::Pure::Generator::GeneratorMethods::String::Extend</a><br /> - - </div> - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000153" class="method-detail"> - <a name="M000153"></a> - - <div class="method-heading"> - <a href="String.src/M000153.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000153.html');return false;"> - <span class="method-name">included</span><span class="method-args">(modul)</span> - </a> - </div> - - <div class="method-description"> - <p> -Extends <em>modul</em> with the <a -href="String/Extend.html">String::Extend</a> module. -</p> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000151" class="method-detail"> - <a name="M000151"></a> - - <div class="method-heading"> - <a href="String.src/M000151.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000151.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - <p> -This string should be encoded with UTF-8 A call to this method returns a <a -href="../../../../JSON.html">JSON</a> string encoded with UTF16 big endian -characters as \u????. -</p> - </div> - </div> - - <div id="method-M000152" class="method-detail"> - <a name="M000152"></a> - - <div class="method-heading"> - <a href="String.src/M000152.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000152.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - <p> -This string should be encoded with UTF-8 A call to this method returns a <a -href="../../../../JSON.html">JSON</a> string encoded with UTF16 big endian -characters as \u????. -</p> - </div> - </div> - - <div id="method-M000155" class="method-detail"> - <a name="M000155"></a> - - <div class="method-heading"> - <a href="String.src/M000155.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000155.html');return false;"> - <span class="method-name">to_json_raw</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - <p> -This method creates a <a href="../../../../JSON.html">JSON</a> text from -the result of a call to <a -href="String.html#M000154">to_json_raw_object</a> of this <a -href="String.html">String</a>. -</p> - </div> - </div> - - <div id="method-M000154" class="method-detail"> - <a name="M000154"></a> - - <div class="method-heading"> - <a href="String.src/M000154.html" target="Code" class="method-signature" - onclick="popupCode('String.src/M000154.html');return false;"> - <span class="method-name">to_json_raw_object</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -This method creates a raw object hash, that can be nested into other data -structures and will be unparsed as a raw string. This method should be -used, if you want to convert raw strings to <a -href="../../../../JSON.html">JSON</a> instead of UTF-8 strings, e. g. -binary data. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000151.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000151.html deleted file mode 100644 index ee1af69..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000151.html +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 367</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-identifier">state</span>, = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> - <span class="ruby-identifier">state</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">encoding</span> <span class="ruby-operator">==</span> <span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span> - <span class="ruby-identifier">string</span> = <span class="ruby-keyword kw">self</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">string</span> = <span class="ruby-identifier">encode</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span> - <span class="ruby-value str">'"'</span> <span class="ruby-operator"><<</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"><<</span> <span class="ruby-value str">'"'</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-value str">'"'</span> <span class="ruby-operator"><<</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"><<</span> <span class="ruby-value str">'"'</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000152.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000152.html deleted file mode 100644 index 12b1b9d..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000152.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 385</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-identifier">state</span>, = <span class="ruby-operator">*</span><span class="ruby-identifier">args</span> - <span class="ruby-identifier">state</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">State</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">state</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">state</span>.<span class="ruby-identifier">ascii_only?</span> - <span class="ruby-value str">'"'</span> <span class="ruby-operator"><<</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"><<</span> <span class="ruby-value str">'"'</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-value str">'"'</span> <span class="ruby-operator"><<</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"><<</span> <span class="ruby-value str">'"'</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000153.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000153.html deleted file mode 100644 index 8dd902f..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000153.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>included (JSON::Pure::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 408</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">modul</span>) - <span class="ruby-identifier">modul</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">Extend</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000154.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000154.html deleted file mode 100644 index 3dd0252..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000154.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json_raw_object (JSON::Pure::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 416</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json_raw_object</span> - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'raw'</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'C*'</span>), - } - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000155.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000155.html deleted file mode 100644 index 4d5ff57..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String.src/M000155.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json_raw (JSON::Pure::Generator::GeneratorMethods::String)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 425</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json_raw</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-identifier">to_json_raw_object</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 0e61591..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html +++ /dev/null @@ -1,143 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::String::Extend</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::String::Extend</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -Module that holds the extinding methods if, the <a -href="../String.html">String</a> module is included. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000156">json_create</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000156" class="method-detail"> - <a name="M000156"></a> - - <div class="method-heading"> - <a href="Extend.src/M000156.html" target="Code" class="method-signature" - onclick="popupCode('Extend.src/M000156.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(o)</span> - </a> - </div> - - <div class="method-description"> - <p> -Raw Strings are <a href="../../../../../JSON.html">JSON</a> Objects (the -raw bytes are stored in an array for the key "raw"). The Ruby <a -href="../String.html">String</a> can be created by this module method. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.src/M000156.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.src/M000156.html deleted file mode 100644 index 6b53a6d..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.src/M000156.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (JSON::Pure::Generator::GeneratorMethods::String::Extend)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 402</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">o</span>) - <span class="ruby-identifier">o</span>[<span class="ruby-value str">'raw'</span>].<span class="ruby-identifier">pack</span>(<span class="ruby-value str">'C*'</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 f231d6d..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html +++ /dev/null @@ -1,135 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: JSON::Pure::Generator::GeneratorMethods::TrueClass</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::GeneratorMethods::TrueClass</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000150">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000150" class="method-detail"> - <a name="M000150"></a> - - <div class="method-heading"> - <a href="TrueClass.src/M000150.html" target="Code" class="method-signature" - onclick="popupCode('TrueClass.src/M000150.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*)</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a <a href="../../../../JSON.html">JSON</a> string for true: -‘true’. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.src/M000150.html b/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.src/M000150.html deleted file mode 100644 index 98108de..0000000 --- a/doc/classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.src/M000150.html +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (JSON::Pure::Generator::GeneratorMethods::TrueClass)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 432</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span>) <span class="ruby-value str">'true'</span> <span class="ruby-keyword kw">end</span></pre> -</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 a8c2fc6..0000000 --- a/doc/classes/JSON/Pure/Generator/State.html +++ /dev/null @@ -1,388 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::Pure::Generator::State</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::Pure::Generator::State</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../../files/lib/json/pure/generator_rb.html"> - lib/json/pure/generator.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="../../../Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="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> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000160">allow_nan?</a> - <a href="#M000161">ascii_only?</a> - <a href="#M000159">check_circular?</a> - <a href="#M000162">configure</a> - <a href="#M000157">from_state</a> - <a href="#M000164">generate</a> - <a href="#M000158">new</a> - <a href="#M000163">to_h</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - <div id="attribute-list"> - <h3 class="section-bar">Attributes</h3> - - <div class="name-list"> - <table> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">array_nl</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -This string is put at the end of a line that holds a <a -href="../../../JSON.html">JSON</a> array. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">indent</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -This string is used to indent levels in the <a -href="../../../JSON.html">JSON</a> text. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">max_nesting</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -This integer returns the maximum level of data structure nesting in the -generated <a href="../../../JSON.html">JSON</a>, max_nesting = 0 if no -maximum is checked. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">object_nl</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -This string is put at the end of a line that holds a <a -href="../../../JSON.html">JSON</a> object (or Hash). - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">space</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -This string is used to insert a space between the tokens in a <a -href="../../../JSON.html">JSON</a> string. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">space_before</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -This string is used to insert a space before the ’:’ in <a -href="../../../JSON.html">JSON</a> objects. - -</td> - </tr> - </table> - </div> - </div> - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000157" class="method-detail"> - <a name="M000157"></a> - - <div class="method-heading"> - <a href="State.src/M000157.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000157.html');return false;"> - <span class="method-name">from_state</span><span class="method-args">(opts)</span> - </a> - </div> - - <div class="method-description"> - <p> -Creates a <a href="State.html">State</a> object from <em>opts</em>, which -ought to be Hash to create a <a href="State.html#M000158">new</a> <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> - - <div id="method-M000158" class="method-detail"> - <a name="M000158"></a> - - <div class="method-heading"> - <a href="State.src/M000158.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000158.html');return false;"> - <span class="method-name">new</span><span class="method-args">(opts = {})</span> - </a> - </div> - - <div class="method-description"> - <p> -Instantiates a <a href="State.html#M000158">new</a> <a -href="State.html">State</a> object, configured by <em>opts</em>. -</p> -<p> -<em>opts</em> can have the following keys: -</p> -<ul> -<li><b>indent</b>: a string used to indent levels (default: ’’), - -</li> -<li><b>space</b>: a string that is put after, a : or , delimiter (default: -’’), - -</li> -<li><b>space_before</b>: a string that is put before a : pair delimiter -(default: ’’), - -</li> -<li><b>object_nl</b>: a string that is put at the end of a <a -href="../../../JSON.html">JSON</a> object (default: ’’), - -</li> -<li><b>array_nl</b>: a string that is put at the end of a <a -href="../../../JSON.html">JSON</a> array (default: ’’), - -</li> -<li><b>check_circular</b>: is deprecated now, use the :max_nesting option -instead, - -</li> -<li><b>max_nesting</b>: sets the maximum level of data structure nesting in the -generated <a href="../../../JSON.html">JSON</a>, max_nesting = 0 if no -maximum should be checked. - -</li> -<li><b>allow_nan</b>: true if NaN, Infinity, and -Infinity should be generated, -otherwise an exception is thrown, if these values are encountered. This -options defaults to false. - -</li> -</ul> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000160" class="method-detail"> - <a name="M000160"></a> - - <div class="method-heading"> - <a href="State.src/M000160.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000160.html');return false;"> - <span class="method-name">allow_nan?</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns true if NaN, Infinity, and -Infinity should be considered as valid -<a href="../../../JSON.html">JSON</a> and output. -</p> - </div> - </div> - - <div id="method-M000161" class="method-detail"> - <a name="M000161"></a> - - <div class="method-heading"> - <a href="State.src/M000161.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000161.html');return false;"> - <span class="method-name">ascii_only?</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <div id="method-M000159" class="method-detail"> - <a name="M000159"></a> - - <div class="method-heading"> - <a href="State.src/M000159.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000159.html');return false;"> - <span class="method-name">check_circular?</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns true, if circular data structures are checked, otherwise returns -false. -</p> - </div> - </div> - - <div id="method-M000162" class="method-detail"> - <a name="M000162"></a> - - <div class="method-heading"> - <a href="State.src/M000162.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000162.html');return false;"> - <span class="method-name">configure</span><span class="method-args">(opts)</span> - </a> - </div> - - <div class="method-description"> - <p> -Configure this <a href="State.html">State</a> instance with the Hash -<em>opts</em>, and return itself. -</p> - </div> - </div> - - <div id="method-M000164" class="method-detail"> - <a name="M000164"></a> - - <div class="method-heading"> - <a href="State.src/M000164.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000164.html');return false;"> - <span class="method-name">generate</span><span class="method-args">(obj)</span> - </a> - </div> - - <div class="method-description"> - <p> -Generates a valid <a href="../../../JSON.html">JSON</a> document from -object <tt>obj</tt> and returns the result. If no valid <a -href="../../../JSON.html">JSON</a> document can be created this method -raises a <a href="../../GeneratorError.html">GeneratorError</a> exception. -</p> - </div> - </div> - - <div id="method-M000163" class="method-detail"> - <a name="M000163"></a> - - <div class="method-heading"> - <a href="State.src/M000163.html" target="Code" class="method-signature" - onclick="popupCode('State.src/M000163.html');return false;"> - <span class="method-name">to_h</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns the configuration instance variables as a hash, that can be passed -to the <a href="State.html#M000162">configure</a> method. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000157.html b/doc/classes/JSON/Pure/Generator/State.src/M000157.html deleted file mode 100644 index f087c13..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000157.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>from_state (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 108</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_state</span>(<span class="ruby-identifier">opts</span>) - <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">opts</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-keyword kw">self</span> - <span class="ruby-identifier">opts</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Hash</span> - <span class="ruby-identifier">new</span>(<span class="ruby-identifier">opts</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-constant">SAFE_STATE_PROTOTYPE</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000158.html b/doc/classes/JSON/Pure/Generator/State.src/M000158.html deleted file mode 100644 index 16848c7..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000158.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 134</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">opts</span> = {}) - <span class="ruby-ivar">@indent</span> = <span class="ruby-value str">''</span> - <span class="ruby-ivar">@space</span> = <span class="ruby-value str">''</span> - <span class="ruby-ivar">@space_before</span> = <span class="ruby-value str">''</span> - <span class="ruby-ivar">@object_nl</span> = <span class="ruby-value str">''</span> - <span class="ruby-ivar">@array_nl</span> = <span class="ruby-value str">''</span> - <span class="ruby-ivar">@allow_nan</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-ivar">@ascii_only</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-identifier">configure</span> <span class="ruby-identifier">opts</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000159.html b/doc/classes/JSON/Pure/Generator/State.src/M000159.html deleted file mode 100644 index ea0332f..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000159.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>check_circular? (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 175</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">check_circular?</span> - <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-ivar">@max_nesting</span>.<span class="ruby-identifier">zero?</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000160.html b/doc/classes/JSON/Pure/Generator/State.src/M000160.html deleted file mode 100644 index c1d2edf..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000160.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>allow_nan? (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 181</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">allow_nan?</span> - <span class="ruby-ivar">@allow_nan</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000161.html b/doc/classes/JSON/Pure/Generator/State.src/M000161.html deleted file mode 100644 index 20ef20f..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000161.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ascii_only? (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 185</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ascii_only?</span> - <span class="ruby-ivar">@ascii_only</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000162.html b/doc/classes/JSON/Pure/Generator/State.src/M000162.html deleted file mode 100644 index d93e652..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000162.html +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>configure (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 191</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure</span>(<span class="ruby-identifier">opts</span>) - <span class="ruby-ivar">@indent</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:indent</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:indent</span>) - <span class="ruby-ivar">@space</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:space</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:space</span>) - <span class="ruby-ivar">@space_before</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:space_before</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:space_before</span>) - <span class="ruby-ivar">@object_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object_nl</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:object_nl</span>) - <span class="ruby-ivar">@array_nl</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:array_nl</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:array_nl</span>) - <span class="ruby-ivar">@allow_nan</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:allow_nan</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:allow_nan</span>) - <span class="ruby-ivar">@ascii_only</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:ascii_only</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:ascii_only</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:max_nesting</span>) <span class="ruby-comment cmt"># defaults to 19</span> - <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">19</span> - <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:max_nesting</span>] - <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:max_nesting</span>] - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">self</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000163.html b/doc/classes/JSON/Pure/Generator/State.src/M000163.html deleted file mode 100644 index d112cff..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000163.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_h (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 211</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span> - <span class="ruby-identifier">result</span> = {} - <span class="ruby-keyword kw">for</span> <span class="ruby-identifier">iv</span> <span class="ruby-keyword kw">in</span> <span class="ruby-node">%w[indent space space_before object_nl array_nl allow_nan max_nesting]</span> - <span class="ruby-identifier">result</span>[<span class="ruby-identifier">iv</span>.<span class="ruby-identifier">intern</span>] = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">"@#{iv}"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Generator/State.src/M000164.html b/doc/classes/JSON/Pure/Generator/State.src/M000164.html deleted file mode 100644 index ec94917..0000000 --- a/doc/classes/JSON/Pure/Generator/State.src/M000164.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>generate (JSON::Pure::Generator::State)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/generator.rb, line 222</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>) - <span class="ruby-identifier">result</span> = <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-keyword kw">self</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp re">/\A\s*(?:\[.*\]|\{.*\})\s*\Z/</span><span class="ruby-identifier">m</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">GeneratorError</span>, <span class="ruby-value str">"only generation of JSON objects or arrays allowed"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">result</span> - <span class="ruby-keyword kw">end</span></pre> -</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 b01244e..0000000 --- a/doc/classes/JSON/Pure/Parser.html +++ /dev/null @@ -1,314 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSON::Pure::Parser</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSON::Pure::Parser</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../../files/lib/json/pure/parser_rb.html"> - lib/json/pure/parser.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - StringScanner - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This class implements the <a href="../../JSON.html">JSON</a> parser that is -used to <a href="Parser.html#M000166">parse</a> a <a -href="../../JSON.html">JSON</a> string into a Ruby data structure. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000165">new</a> - <a href="#M000166">parse</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - <div id="constants-list"> - <h3 class="section-bar">Constants</h3> - - <div class="name-list"> - <table summary="Constants"> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">STRING</td> - <td>=</td> - <td class="context-item-value">/" ((?:[^\x0-\x1f"\\] | # escaped special characters: \\["\\\/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])*) "/nx</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">INTEGER</td> - <td>=</td> - <td class="context-item-value">/(-?0|-?[1-9]\d*)/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">FLOAT</td> - <td>=</td> - <td class="context-item-value">/(-? (?:0|[1-9]\d*) (?: \.\d+(?i:e[+-]?\d+) | \.\d+ | (?i:e[+-]?\d+) ) )/x</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">NAN</td> - <td>=</td> - <td class="context-item-value">/NaN/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">INFINITY</td> - <td>=</td> - <td class="context-item-value">/Infinity/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">MINUS_INFINITY</td> - <td>=</td> - <td class="context-item-value">/-Infinity/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">OBJECT_OPEN</td> - <td>=</td> - <td class="context-item-value">/\{/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">OBJECT_CLOSE</td> - <td>=</td> - <td class="context-item-value">/\}/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">ARRAY_OPEN</td> - <td>=</td> - <td class="context-item-value">/\[/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">ARRAY_CLOSE</td> - <td>=</td> - <td class="context-item-value">/\]/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">PAIR_DELIMITER</td> - <td>=</td> - <td class="context-item-value">/:/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">COLLECTION_DELIMITER</td> - <td>=</td> - <td class="context-item-value">/,/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">TRUE</td> - <td>=</td> - <td class="context-item-value">/true/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">FALSE</td> - <td>=</td> - <td class="context-item-value">/false/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">NULL</td> - <td>=</td> - <td class="context-item-value">/null/</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">IGNORE</td> - <td>=</td> - <td class="context-item-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 class="top-aligned-row context-row"> - <td class="context-item-name">UNPARSED</td> - <td>=</td> - <td class="context-item-value">Object.new</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">UNESCAPE_MAP</td> - <td>=</td> - <td class="context-item-value">Hash.new { |h, k| h[k] = k.chr }</td> - <td width="3em"> </td> - <td class="context-item-desc"> -Unescape characters in strings. - -</td> - </tr> - </table> - </div> - </div> - - <div id="aliases-list"> - <h3 class="section-bar">External Aliases</h3> - - <div class="name-list"> - <table summary="aliases"> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">string</td> - <td>-></td> - <td class="context-item-value">source</td> - </tr> - </table> - </div> - </div> - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000165" class="method-detail"> - <a name="M000165"></a> - - <div class="method-heading"> - <a href="Parser.src/M000165.html" target="Code" class="method-signature" - onclick="popupCode('Parser.src/M000165.html');return false;"> - <span class="method-name">new</span><span class="method-args">(source, opts = {})</span> - </a> - </div> - - <div class="method-description"> - <p> -Creates a <a href="Parser.html#M000165">new</a> <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><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. - -</li> -<li><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. - -</li> -<li><b>create_additions</b>: If set to false, the <a -href="Parser.html">Parser</a> doesn‘t create additions even if a -matchin class and create_id was found. This option defaults to true. - -</li> -<li><b>object_class</b>: Defaults to Hash - -</li> -<li><b>array_class</b>: Defaults to Array - -</li> -</ul> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000166" class="method-detail"> - <a name="M000166"></a> - - <div class="method-heading"> - <a href="Parser.src/M000166.html" target="Code" class="method-signature" - onclick="popupCode('Parser.src/M000166.html');return false;"> - <span class="method-name">parse</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Parses the current <a href="../../JSON.html">JSON</a> string -<em>source</em> and returns the complete data structure as a result. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Parser.src/M000165.html b/doc/classes/JSON/Pure/Parser.src/M000165.html deleted file mode 100644 index 1d2e6cb..0000000 --- a/doc/classes/JSON/Pure/Parser.src/M000165.html +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (JSON::Pure::Parser)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/parser.rb, line 68</span> - <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> = {}) - <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>) - <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-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">ASCII_8BIT</span> - <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> - <span class="ruby-identifier">source</span> = <span class="ruby-keyword kw">case</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</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">&&</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-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</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-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>) - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</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-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</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-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>) - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</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">&&</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> - <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</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-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>) - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> - <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">force_encoding</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-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">source</span>.<span class="ruby-identifier">dup</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">source</span> = <span class="ruby-identifier">source</span>.<span class="ruby-identifier">encode</span>(<span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">UTF_8</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">source</span>.<span class="ruby-identifier">force_encoding</span>(<span class="ruby-constant">Encoding</span><span class="ruby-operator">::</span><span class="ruby-constant">ASCII_8BIT</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">b</span> = <span class="ruby-identifier">source</span> - <span class="ruby-identifier">source</span> = <span class="ruby-keyword kw">case</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</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">&&</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-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>) - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</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-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>) - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</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">&&</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> - <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>) - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">b</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">>=</span> <span class="ruby-value">4</span> <span class="ruby-operator">&&</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">&&</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">3</span>] <span class="ruby-operator">==</span> <span class="ruby-value">0</span> - <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>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">b</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">super</span> <span class="ruby-identifier">source</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>.<span class="ruby-identifier">key?</span>(<span class="ruby-identifier">:max_nesting</span>) <span class="ruby-comment cmt"># defaults to 19</span> - <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">19</span> - <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:max_nesting</span>] - <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:max_nesting</span>] - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@max_nesting</span> = <span class="ruby-value">0</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-ivar">@allow_nan</span> = <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:allow_nan</span>] - <span class="ruby-identifier">ca</span> = <span class="ruby-keyword kw">true</span> - <span class="ruby-identifier">ca</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">: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-identifier">:create_additions</span>) - <span class="ruby-ivar">@create_id</span> = <span class="ruby-identifier">ca</span> <span class="ruby-value">? </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> - <span class="ruby-ivar">@object_class</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object_class</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Hash</span> - <span class="ruby-ivar">@array_class</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:array_class</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Array</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSON/Pure/Parser.src/M000166.html b/doc/classes/JSON/Pure/Parser.src/M000166.html deleted file mode 100644 index 6154502..0000000 --- a/doc/classes/JSON/Pure/Parser.src/M000166.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>parse (JSON::Pure::Parser)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/pure/parser.rb, line 123</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse</span> - <span class="ruby-identifier">reset</span> - <span class="ruby-identifier">obj</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">until</span> <span class="ruby-identifier">eos?</span> - <span class="ruby-keyword kw">case</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">scan</span>(<span class="ruby-constant">OBJECT_OPEN</span>) - <span class="ruby-identifier">obj</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-node">"source '#{peek(20)}' not in JSON!"</span> - <span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">1</span> - <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_object</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">scan</span>(<span class="ruby-constant">ARRAY_OPEN</span>) - <span class="ruby-identifier">obj</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-node">"source '#{peek(20)}' not in JSON!"</span> - <span class="ruby-ivar">@current_nesting</span> = <span class="ruby-value">1</span> - <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">parse_array</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">skip</span>(<span class="ruby-constant">IGNORE</span>) - ; - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">ParserError</span>, <span class="ruby-node">"source '#{peek(20)}' not in JSON!"</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <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">"source did not contain any JSON!"</span> - <span class="ruby-identifier">obj</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.html b/doc/classes/JSONTreeView.html deleted file mode 100644 index 9f01bbf..0000000 --- a/doc/classes/JSONTreeView.html +++ /dev/null @@ -1,298 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: JSONTreeView</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">JSONTreeView</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - Gtk::TreeView - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This class inherits from Gtk::TreeView, to configure it and to add a lot of -behaviour to it. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000038">ask_for_element</a> - <a href="#M000040">ask_for_find_term</a> - <a href="#M000037">ask_for_hash_pair</a> - <a href="#M000039">ask_for_order</a> - <a href="#M000036">create_node</a> - <a href="#M000041">expand_collapse</a> - <a href="#M000035">new</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="Gtk.html">Gtk</a></span> - </div> - </div> - - <div id="section"> - - - - - - <div id="attribute-list"> - <h3 class="section-bar">Attributes</h3> - - <div class="name-list"> - <table> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">expanded</td> - <td class="context-item-value"> [RW] </td> - <td class="context-item-desc"> -Returns true, if nodes are autoexpanding, false otherwise. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">window</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"> -Returns the <a href="MainWindow.html">MainWindow</a> instance of this <a -href="JSONTreeView.html">JSONTreeView</a>. - -</td> - </tr> - </table> - </div> - </div> - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000035" class="method-detail"> - <a name="M000035"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000035.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000035.html');return false;"> - <span class="method-name">new</span><span class="method-args">(window)</span> - </a> - </div> - - <div class="method-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> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000038" class="method-detail"> - <a name="M000038"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000038.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000038.html');return false;"> - <span class="method-name">ask_for_element</span><span class="method-args">(parent = nil, default_type = nil, value_text = @content)</span> - </a> - </div> - - <div class="method-description"> - <p> -Ask for an element to be appended <em>parent</em>. -</p> - </div> - </div> - - <div id="method-M000040" class="method-detail"> - <a name="M000040"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000040.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000040.html');return false;"> - <span class="method-name">ask_for_find_term</span><span class="method-args">(search = nil)</span> - </a> - </div> - - <div class="method-description"> - <p> -Ask for a find term to search for in the tree. Returns the term as a -string. -</p> - </div> - </div> - - <div id="method-M000037" class="method-detail"> - <a name="M000037"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000037.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000037.html');return false;"> - <span class="method-name">ask_for_hash_pair</span><span class="method-args">(parent)</span> - </a> - </div> - - <div class="method-description"> - <p> -Ask for a hash key, value pair to be added to the Hash node -<em>parent</em>. -</p> - </div> - </div> - - <div id="method-M000039" class="method-detail"> - <a name="M000039"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000039.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000039.html');return false;"> - <span class="method-name">ask_for_order</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000036" class="method-detail"> - <a name="M000036"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000036.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000036.html');return false;"> - <span class="method-name">create_node</span><span class="method-args">(parent, type, content)</span> - </a> - </div> - - <div class="method-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 <a -href="JSONTreeView.html#M000035">new</a> model and put it into the editor -treeview. -</p> - </div> - </div> - - <div id="method-M000041" class="method-detail"> - <a name="M000041"></a> - - <div class="method-heading"> - <a href="JSONTreeView.src/M000041.html" target="Code" class="method-signature" - onclick="popupCode('JSONTreeView.src/M000041.html');return false;"> - <span class="method-name">expand_collapse</span><span class="method-args">(iter)</span> - </a> - </div> - - <div class="method-description"> - <p> -Expand or collapse row pointed to by <em>iter</em> according to the -expanded attribute. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000035.html b/doc/classes/JSONTreeView.src/M000035.html deleted file mode 100644 index a923eb6..0000000 --- a/doc/classes/JSONTreeView.src/M000035.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 701</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>) - <span class="ruby-ivar">@window</span> = <span class="ruby-identifier">window</span> - <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>)) - <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> - - <span class="ruby-ivar">@expanded</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">headers_visible</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-identifier">add_columns</span> - <span class="ruby-identifier">add_popup_menu</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000036.html b/doc/classes/JSONTreeView.src/M000036.html deleted file mode 100644 index c3e49fa..0000000 --- a/doc/classes/JSONTreeView.src/M000036.html +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create_node (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 817</span> - <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>) - <span class="ruby-identifier">iter</span> = <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span> - <span class="ruby-identifier">model</span>.<span class="ruby-identifier">append</span>(<span class="ruby-identifier">parent</span>) - <span class="ruby-keyword kw">else</span> - <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>) - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">view_new_model</span>(<span class="ruby-identifier">new_model</span>) - <span class="ruby-identifier">new_model</span>.<span class="ruby-identifier">iter_first</span> - <span class="ruby-keyword kw">end</span> - <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> - <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> - <span class="ruby-identifier">iter</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000037.html b/doc/classes/JSONTreeView.src/M000037.html deleted file mode 100644 index ec1860e..0000000 --- a/doc/classes/JSONTreeView.src/M000037.html +++ /dev/null @@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ask_for_hash_pair (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 831</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_hash_pair</span>(<span class="ruby-identifier">parent</span>) - <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> - - <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"New (key, value) pair for Hash"</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, - [ <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> ], - [ <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> ] - ) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">width_request</span> = <span class="ruby-value">640</span> - - <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>) - <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">"Key:"</span>), <span class="ruby-keyword kw">false</span>) - <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>) - <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> - <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>) - <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:activate</span>) <span class="ruby-keyword kw">do</span> - <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> } - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">'Key already exists in Hash!'</span>) - <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">''</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">'Key has been changed.'</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - - <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>) - <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">"Type:"</span>), <span class="ruby-keyword kw">false</span>) - <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>)) - <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>) } - <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> - <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>) - - <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:changed</span>) <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">editable</span> = <span class="ruby-keyword kw">false</span> - <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>] - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span>, <span class="ruby-value str">'Hash'</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">''</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'TrueClass'</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">'true'</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FalseClass'</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">'false'</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'NilClass'</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">'null'</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> = <span class="ruby-value str">''</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">editable</span> = <span class="ruby-keyword kw">true</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - - <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>) - <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">"Value:"</span>), <span class="ruby-keyword kw">false</span>) - <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>) - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span> - <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> - <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>) - - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'key-press-event'</span><span class="ruby-value str">'key-press-event'</span>, <span class="ruby-operator">&</span><span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span> - <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> - <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> - <span class="ruby-ivar">@key</span> = <span class="ruby-identifier">key_input</span>.<span class="ruby-identifier">text</span> - <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>] - <span class="ruby-identifier">content</span> = <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> - <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> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">ensure</span> - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">destroy</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000038.html b/doc/classes/JSONTreeView.src/M000038.html deleted file mode 100644 index 5f521dc..0000000 --- a/doc/classes/JSONTreeView.src/M000038.html +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ask_for_element (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 902</span> - <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>) - <span class="ruby-identifier">type_input</span> = <span class="ruby-identifier">value_input</span> = <span class="ruby-keyword kw">nil</span> - - <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>( - <span class="ruby-node">"New element into #{parent ? parent.type : 'root'}"</span>, - <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, - [ <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> ], - [ <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> ] - ) - <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>) - <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">"Type:"</span>), <span class="ruby-keyword kw">false</span>) - <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>)) - <span class="ruby-identifier">default_active</span> = <span class="ruby-value">0</span> - <span class="ruby-identifier">types</span> = <span class="ruby-identifier">parent</span> <span class="ruby-value">? </span><span class="ruby-constant">ALL_TYPES</span> <span class="ruby-operator">:</span> <span class="ruby-constant">CONTAINER_TYPES</span> - <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> - <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">append_text</span>(<span class="ruby-identifier">t</span>) - <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> - <span class="ruby-identifier">default_active</span> = <span class="ruby-identifier">i</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">active</span> = <span class="ruby-identifier">default_active</span> - <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>) - <span class="ruby-identifier">type_input</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:changed</span>) <span class="ruby-keyword kw">do</span> - <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>]) - <span class="ruby-keyword kw">end</span> - - <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>) - <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">"Value:"</span>), <span class="ruby-keyword kw">false</span>) - <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>) - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span> - <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> - <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>]) - - <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>) - - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'key-press-event'</span><span class="ruby-value str">'key-press-event'</span>, <span class="ruby-operator">&</span><span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span> - <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> - <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> - <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>] - <span class="ruby-ivar">@content</span> = <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Numeric'</span> - <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> - <span class="ruby-value">1</span> <span class="ruby-operator">/</span> <span class="ruby-value">0</span><span class="ruby-value">.0</span> - <span class="ruby-keyword kw">else</span> - <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> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">value_input</span>.<span class="ruby-identifier">text</span> - <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">to_s</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">type</span>, <span class="ruby-ivar">@content</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">ensure</span> - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000039.html b/doc/classes/JSONTreeView.src/M000039.html deleted file mode 100644 index 87475d5..0000000 --- a/doc/classes/JSONTreeView.src/M000039.html +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ask_for_order (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 964</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_order</span> - <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>( - <span class="ruby-value str">"Give an order criterium for 'x'."</span>, - <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, - [ <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> ], - [ <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> ] - ) - <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>) - - <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">"Order:"</span>), <span class="ruby-keyword kw">false</span>) - <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>) - <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> - <span class="ruby-identifier">order_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span> - - <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>) - - <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>) - - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'key-press-event'</span><span class="ruby-value str">'key-press-event'</span>, <span class="ruby-operator">&</span><span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span> - <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> - <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> - <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> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">ensure</span> - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000040.html b/doc/classes/JSONTreeView.src/M000040.html deleted file mode 100644 index f461e2e..0000000 --- a/doc/classes/JSONTreeView.src/M000040.html +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ask_for_find_term (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 997</span> - <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>) - <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>( - <span class="ruby-value str">"Find a node matching regex in tree."</span>, - <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, - [ <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> ], - [ <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> ] - ) - <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>) - - <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">"Regex:"</span>), <span class="ruby-keyword kw">false</span>) - <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>) - <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>) - <span class="ruby-identifier">regex_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">search</span> - <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> - <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> - <span class="ruby-keyword kw">end</span> - - <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>) - - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'key-press-event'</span><span class="ruby-value str">'key-press-event'</span>, <span class="ruby-operator">&</span><span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">focus</span> = <span class="ruby-identifier">dialog</span> - <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> - <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> - <span class="ruby-keyword kw">begin</span> - <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-value">? </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>) - <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span> - <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">"Evaluation of regex /#{regex_input.text}/ failed: #{e}!"</span>) - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">ensure</span> - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/JSONTreeView.src/M000041.html b/doc/classes/JSONTreeView.src/M000041.html deleted file mode 100644 index c9dc8ec..0000000 --- a/doc/classes/JSONTreeView.src/M000041.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>expand_collapse (JSONTreeView)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1037</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">iter</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expanded</span> - <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>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">collapse_row</span>(<span class="ruby-identifier">iter</span>.<span class="ruby-identifier">path</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.html b/doc/classes/MainWindow.html deleted file mode 100644 index 14f5329..0000000 --- a/doc/classes/MainWindow.html +++ /dev/null @@ -1,524 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: MainWindow</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">MainWindow</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - Gtk::Window - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -The editor main window -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000034">ask_for_location</a> - <a href="#M000020">ask_save</a> - <a href="#M000016">change</a> - <a href="#M000023">clear</a> - <a href="#M000015">create_menu_bar</a> - <a href="#M000019">display_status</a> - <a href="#M000022">display_title</a> - <a href="#M000026">edit</a> - <a href="#M000025">file_open</a> - <a href="#M000027">file_save</a> - <a href="#M000028">file_save_as</a> - <a href="#M000030">load_file</a> - <a href="#M000031">load_location</a> - <a href="#M000024">location_open</a> - <a href="#M000014">new</a> - <a href="#M000021">quit</a> - <a href="#M000032">read_data</a> - <a href="#M000033">select_file</a> - <a href="#M000029">store_file</a> - <a href="#M000017">unchange</a> - <a href="#M000018">view_new_model</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="Gtk.html">Gtk</a></span> - </div> - </div> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000014" class="method-detail"> - <a name="M000014"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000014.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000014.html');return false;"> - <span class="method-name">new</span><span class="method-args">(encoding)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000034" class="method-detail"> - <a name="M000034"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000034.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000034.html');return false;"> - <span class="method-name">ask_for_location</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Ask for location URI a to load data from. Returns the URI as a string. -</p> - </div> - </div> - - <div id="method-M000020" class="method-detail"> - <a name="M000020"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000020.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000020.html');return false;"> - <span class="method-name">ask_save</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Opens a dialog, asking, if changes should be saved to a file. -</p> - </div> - </div> - - <div id="method-M000016" class="method-detail"> - <a name="M000016"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000016.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000016.html');return false;"> - <span class="method-name">change</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Sets editor status to changed, to indicate that the edited data containts -unsaved changes. -</p> - </div> - </div> - - <div id="method-M000023" class="method-detail"> - <a name="M000023"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000023.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000023.html');return false;"> - <span class="method-name">clear</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Clear the current model, after asking to save all unsaved changes. -</p> - </div> - </div> - - <div id="method-M000015" class="method-detail"> - <a name="M000015"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000015.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000015.html');return false;"> - <span class="method-name">create_menu_bar</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Creates the menu bar with the pulldown menus and returns it. -</p> - </div> - </div> - - <div id="method-M000019" class="method-detail"> - <a name="M000019"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000019.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000019.html');return false;"> - <span class="method-name">display_status</span><span class="method-args">(text)</span> - </a> - </div> - - <div class="method-description"> - <p> -Displays <em>text</em> in the status bar. -</p> - </div> - </div> - - <div id="method-M000022" class="method-detail"> - <a name="M000022"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000022.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000022.html');return false;"> - <span class="method-name">display_title</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Display the <a href="MainWindow.html#M000014">new</a> title according to -the editor‘s current state. -</p> - </div> - </div> - - <div id="method-M000026" class="method-detail"> - <a name="M000026"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000026.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000026.html');return false;"> - <span class="method-name">edit</span><span class="method-args">(json)</span> - </a> - </div> - - <div class="method-description"> - <p> -Edit the string <em>json</em> in the editor. -</p> - </div> - </div> - - <div id="method-M000025" class="method-detail"> - <a name="M000025"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000025.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000025.html');return false;"> - <span class="method-name">file_open</span><span class="method-args">(filename = nil)</span> - </a> - </div> - - <div class="method-description"> - <p> -Open the file <em>filename</em> or call the <a -href="MainWindow.html#M000033">select_file</a> method to ask for a -filename. -</p> - </div> - </div> - - <div id="method-M000027" class="method-detail"> - <a name="M000027"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000027.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000027.html');return false;"> - <span class="method-name">file_save</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Save the current file. -</p> - </div> - </div> - - <div id="method-M000028" class="method-detail"> - <a name="M000028"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000028.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000028.html');return false;"> - <span class="method-name">file_save_as</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Save the current file as the filename -</p> - </div> - </div> - - <div id="method-M000030" class="method-detail"> - <a name="M000030"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000030.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000030.html');return false;"> - <span class="method-name">load_file</span><span class="method-args">(filename)</span> - </a> - </div> - - <div class="method-description"> - <p> -Load the file named <em>filename</em> into the editor as a <a -href="JSON.html">JSON</a> document. -</p> - </div> - </div> - - <div id="method-M000031" class="method-detail"> - <a name="M000031"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000031.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000031.html');return false;"> - <span class="method-name">load_location</span><span class="method-args">(uri)</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000024" class="method-detail"> - <a name="M000024"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000024.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000024.html');return false;"> - <span class="method-name">location_open</span><span class="method-args">(uri = nil)</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000021" class="method-detail"> - <a name="M000021"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000021.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000021.html');return false;"> - <span class="method-name">quit</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Quit this editor, that is, leave this editor‘s main loop. -</p> - </div> - </div> - - <div id="method-M000032" class="method-detail"> - <a name="M000032"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000032.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000032.html');return false;"> - <span class="method-name">read_data</span><span class="method-args">(filename)</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000033" class="method-detail"> - <a name="M000033"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000033.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000033.html');return false;"> - <span class="method-name">select_file</span><span class="method-args">(message)</span> - </a> - </div> - - <div class="method-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> - - <div id="method-M000029" class="method-detail"> - <a name="M000029"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000029.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000029.html');return false;"> - <span class="method-name">store_file</span><span class="method-args">(path)</span> - </a> - </div> - - <div class="method-description"> - <p> -Store the current <a href="JSON.html">JSON</a> document to <em>path</em>. -</p> - </div> - </div> - - <div id="method-M000017" class="method-detail"> - <a name="M000017"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000017.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000017.html');return false;"> - <span class="method-name">unchange</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Sets editor status to unchanged, to indicate that the edited data -doesn‘t containt unsaved changes. -</p> - </div> - </div> - - <div id="method-M000018" class="method-detail"> - <a name="M000018"></a> - - <div class="method-heading"> - <a href="MainWindow.src/M000018.html" target="Code" class="method-signature" - onclick="popupCode('MainWindow.src/M000018.html');return false;"> - <span class="method-name">view_new_model</span><span class="method-args">(model)</span> - </a> - </div> - - <div class="method-description"> - <p> -Puts a <a href="MainWindow.html#M000014">new</a> model <em>model</em> into -the Gtk::TreeView to be edited. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000014.html b/doc/classes/MainWindow.src/M000014.html deleted file mode 100644 index 10cda57..0000000 --- a/doc/classes/MainWindow.src/M000014.html +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1050</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">encoding</span>) - <span class="ruby-ivar">@changed</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-ivar">@encoding</span> = <span class="ruby-identifier">encoding</span> - <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">TOPLEVEL</span>) - <span class="ruby-identifier">display_title</span> - <span class="ruby-identifier">set_default_size</span>(<span class="ruby-value">800</span>, <span class="ruby-value">600</span>) - <span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:delete_event</span>) { <span class="ruby-identifier">quit</span> } - - <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>) - <span class="ruby-identifier">add</span>(<span class="ruby-identifier">vbox</span>) - <span class="ruby-comment cmt">#vbox.border_width = 0</span> - - <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>) - <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'cursor-changed'</span><span class="ruby-value str">'cursor-changed'</span>) <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">display_status</span>(<span class="ruby-value str">''</span>) - <span class="ruby-keyword kw">end</span> - - <span class="ruby-identifier">menu_bar</span> = <span class="ruby-identifier">create_menu_bar</span> - <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>) - - <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>) - <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">shadow_type</span> = <span class="ruby-constant">SHADOW_ETCHED_IN</span> - <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>) - <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>) - <span class="ruby-identifier">sw</span>.<span class="ruby-identifier">add</span>(<span class="ruby-ivar">@treeview</span>) - - <span class="ruby-ivar">@status_bar</span> = <span class="ruby-constant">Statusbar</span>.<span class="ruby-identifier">new</span> - <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>) - - <span class="ruby-ivar">@filename</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span> - <span class="ruby-identifier">data</span> = <span class="ruby-identifier">read_data</span>(<span class="ruby-ivar">@filename</span>) - <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>) - <span class="ruby-keyword kw">end</span> - - <span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">: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> - <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> - <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>) - <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> - <span class="ruby-identifier">location_open</span> <span class="ruby-identifier">url</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">false</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-keyword kw">true</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000015.html b/doc/classes/MainWindow.src/M000015.html deleted file mode 100644 index 8f3e79b..0000000 --- a/doc/classes/MainWindow.src/M000015.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create_menu_bar (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1099</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create_menu_bar</span> - <span class="ruby-identifier">menu_bar</span> = <span class="ruby-constant">MenuBar</span>.<span class="ruby-identifier">new</span> - <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>) - <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> - <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>) - <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> - <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>) - <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> - <span class="ruby-identifier">menu_bar</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000016.html b/doc/classes/MainWindow.src/M000016.html deleted file mode 100644 index 4dd524b..0000000 --- a/doc/classes/MainWindow.src/M000016.html +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>change (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1112</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span> - <span class="ruby-ivar">@changed</span> = <span class="ruby-keyword kw">true</span> - <span class="ruby-identifier">display_title</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000017.html b/doc/classes/MainWindow.src/M000017.html deleted file mode 100644 index 5f4fa8c..0000000 --- a/doc/classes/MainWindow.src/M000017.html +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>unchange (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1119</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unchange</span> - <span class="ruby-ivar">@changed</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-identifier">display_title</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000018.html b/doc/classes/MainWindow.src/M000018.html deleted file mode 100644 index a4cd5e3..0000000 --- a/doc/classes/MainWindow.src/M000018.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>view_new_model (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1125</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">view_new_model</span>(<span class="ruby-identifier">model</span>) - <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">model</span> = <span class="ruby-identifier">model</span> - <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">expanded</span> = <span class="ruby-keyword kw">true</span> - <span class="ruby-ivar">@treeview</span>.<span class="ruby-identifier">expand_all</span> - <span class="ruby-identifier">unchange</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000019.html b/doc/classes/MainWindow.src/M000019.html deleted file mode 100644 index 8d3a121..0000000 --- a/doc/classes/MainWindow.src/M000019.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>display_status (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1133</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display_status</span>(<span class="ruby-identifier">text</span>) - <span class="ruby-ivar">@cid</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword kw">nil</span> - <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> - <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>) - <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>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000020.html b/doc/classes/MainWindow.src/M000020.html deleted file mode 100644 index cd39ecb..0000000 --- a/doc/classes/MainWindow.src/M000020.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ask_save (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1141</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_save</span> - <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>, - <span class="ruby-value str">"Unsaved changes to JSON model. Save?"</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span> - <span class="ruby-identifier">file_save</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">file_save_as</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000021.html b/doc/classes/MainWindow.src/M000021.html deleted file mode 100644 index 92bf330..0000000 --- a/doc/classes/MainWindow.src/M000021.html +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>quit (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1153</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">quit</span> - <span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_level</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span> - <span class="ruby-identifier">destroy</span> - <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000022.html b/doc/classes/MainWindow.src/M000022.html deleted file mode 100644 index ca9d4b2..0000000 --- a/doc/classes/MainWindow.src/M000022.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>display_title (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1163</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">display_title</span> - <span class="ruby-identifier">title</span> = <span class="ruby-constant">TITLE</span>.<span class="ruby-identifier">dup</span> - <span class="ruby-identifier">title</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">": #@filename"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span> - <span class="ruby-identifier">title</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">" *"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000023.html b/doc/classes/MainWindow.src/M000023.html deleted file mode 100644 index a9f187f..0000000 --- a/doc/classes/MainWindow.src/M000023.html +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>clear (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1171</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span> - <span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span> - <span class="ruby-ivar">@filename</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">view_new_model</span> <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000024.html b/doc/classes/MainWindow.src/M000024.html deleted file mode 100644 index 1f91322..0000000 --- a/doc/classes/MainWindow.src/M000024.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>location_open (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1185</span> - <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>) - <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> - <span class="ruby-identifier">uri</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <span class="ruby-identifier">ask_save</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changed</span> - <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> - <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>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000025.html b/doc/classes/MainWindow.src/M000025.html deleted file mode 100644 index 9b80c51..0000000 --- a/doc/classes/MainWindow.src/M000025.html +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>file_open (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1195</span> - <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>) - <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> - <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> - <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>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000026.html b/doc/classes/MainWindow.src/M000026.html deleted file mode 100644 index 2ab3568..0000000 --- a/doc/classes/MainWindow.src/M000026.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>edit (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1202</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">edit</span>(<span class="ruby-identifier">json</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">json</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:read</span> - <span class="ruby-identifier">json</span> = <span class="ruby-identifier">json</span>.<span class="ruby-identifier">read</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">data</span> = <span class="ruby-identifier">parse_json</span> <span class="ruby-identifier">json</span> - <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>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000027.html b/doc/classes/MainWindow.src/M000027.html deleted file mode 100644 index f3296d4..0000000 --- a/doc/classes/MainWindow.src/M000027.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>file_save (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1211</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_save</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@filename</span> - <span class="ruby-identifier">store_file</span>(<span class="ruby-ivar">@filename</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">file_save_as</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000028.html b/doc/classes/MainWindow.src/M000028.html deleted file mode 100644 index 63bdd08..0000000 --- a/doc/classes/MainWindow.src/M000028.html +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>file_save_as (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1220</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_save_as</span> - <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">select_file</span>(<span class="ruby-value str">'Save as a JSON file'</span>) - <span class="ruby-identifier">store_file</span>(<span class="ruby-identifier">filename</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000029.html b/doc/classes/MainWindow.src/M000029.html deleted file mode 100644 index c683cab..0000000 --- a/doc/classes/MainWindow.src/M000029.html +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>store_file (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1226</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">store_file</span>(<span class="ruby-identifier">path</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span> - <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>) - <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> - <span class="ruby-identifier">data</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">break</span> - <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> - <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-identifier">:max_nesting</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>) - <span class="ruby-keyword kw">else</span> - <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-identifier">:max_nesting</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">false</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <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> - <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">path</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Saved data to '#@filename'."</span>) - <span class="ruby-identifier">unchange</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SystemCallError</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span> - <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">"Failed to store JSON file: #{e}!"</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000030.html b/doc/classes/MainWindow.src/M000030.html deleted file mode 100644 index 6d1d76c..0000000 --- a/doc/classes/MainWindow.src/M000030.html +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>load_file (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1247</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_file</span>(<span class="ruby-identifier">filename</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span> - <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>) - <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">"Try to select a JSON file!"</span>) - <span class="ruby-keyword kw">nil</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span> - <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>) - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Loaded data from '#@filename'."</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">display_title</span> - <span class="ruby-identifier">data</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000031.html b/doc/classes/MainWindow.src/M000031.html deleted file mode 100644 index dd9e6a7..0000000 --- a/doc/classes/MainWindow.src/M000031.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>load_location (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1264</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load_location</span>(<span class="ruby-identifier">uri</span>) - <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> - <span class="ruby-ivar">@filename</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">"Loaded data from '#{uri}'."</span>) - <span class="ruby-identifier">display_title</span> - <span class="ruby-identifier">data</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000032.html b/doc/classes/MainWindow.src/M000032.html deleted file mode 100644 index a315d16..0000000 --- a/doc/classes/MainWindow.src/M000032.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>read_data (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1284</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_data</span>(<span class="ruby-identifier">filename</span>) - <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> - <span class="ruby-identifier">json</span> = <span class="ruby-identifier">f</span>.<span class="ruby-identifier">read</span> - <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">parse_json</span>(<span class="ruby-identifier">json</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span> - <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">error_dialog</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-node">"Failed to parse JSON file: #{e}!"</span>) - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000033.html b/doc/classes/MainWindow.src/M000033.html deleted file mode 100644 index cac5cd8..0000000 --- a/doc/classes/MainWindow.src/M000033.html +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>select_file (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1296</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_file</span>(<span class="ruby-identifier">message</span>) - <span class="ruby-identifier">filename</span> = <span class="ruby-keyword kw">nil</span> - <span class="ruby-identifier">fs</span> = <span class="ruby-constant">FileSelection</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">message</span>) - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">set_modal</span>(<span class="ruby-keyword kw">true</span>) - <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> - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">set_filename</span>(<span class="ruby-ivar">@default_dir</span>) - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">set_transient_for</span>(<span class="ruby-keyword kw">self</span>) - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:destroy</span>) { <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span> } - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">ok_button</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:clicked</span>) <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">filename</span> = <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">filename</span> - <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>) - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">destroy</span> - <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">cancel_button</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:clicked</span>) <span class="ruby-keyword kw">do</span> - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">destroy</span> - <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main_quit</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">fs</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main</span> - <span class="ruby-identifier">filename</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MainWindow.src/M000034.html b/doc/classes/MainWindow.src/M000034.html deleted file mode 100644 index 931adae..0000000 --- a/doc/classes/MainWindow.src/M000034.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>ask_for_location (MainWindow)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1320</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ask_for_location</span> - <span class="ruby-identifier">dialog</span> = <span class="ruby-constant">Dialog</span>.<span class="ruby-identifier">new</span>( - <span class="ruby-value str">"Load data from location..."</span>, - <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, - [ <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> ], - [ <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> ] - ) - <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>) - - <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">"Location:"</span>), <span class="ruby-keyword kw">false</span>) - <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>) - <span class="ruby-identifier">location_input</span>.<span class="ruby-identifier">width_chars</span> = <span class="ruby-value">60</span> - <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> - - <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>) - - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'key-press-event'</span><span class="ruby-value str">'key-press-event'</span>, <span class="ruby-operator">&</span><span class="ruby-constant">DEFAULT_DIALOG_KEY_PRESS_HANDLER</span>) - <span class="ruby-identifier">dialog</span>.<span class="ruby-identifier">show_all</span> - <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> - <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> - <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> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">return</span> - <span class="ruby-keyword kw">ensure</span> - <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> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MenuExtension.html b/doc/classes/MenuExtension.html deleted file mode 100644 index 0586edb..0000000 --- a/doc/classes/MenuExtension.html +++ /dev/null @@ -1,251 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>Module: MenuExtension</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Module</strong></td> - <td class="class-name-in-header">MenuExtension</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This module bundles some method, that can be used to <a -href="MenuExtension.html#M000080">create</a> a menu. It should be included -into the class in question. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000079">add_item</a> - <a href="#M000078">add_separator</a> - <a href="#M000080">create</a> - <a href="#M000081">method_missing</a> - <a href="#M000077">new</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="Gtk.html">Gtk</a></span> - </div> - </div> - - <div id="section"> - - - - - - <div id="attribute-list"> - <h3 class="section-bar">Attributes</h3> - - <div class="name-list"> - <table> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">menu</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"> -Returns the menu. - -</td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">treeview</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"> -Returns the Gtk::TreeView of this menu. - -</td> - </tr> - </table> - </div> - </div> - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000077" class="method-detail"> - <a name="M000077"></a> - - <div class="method-heading"> - <a href="MenuExtension.src/M000077.html" target="Code" class="method-signature" - onclick="popupCode('MenuExtension.src/M000077.html');return false;"> - <span class="method-name">new</span><span class="method-args">(treeview)</span> - </a> - </div> - - <div class="method-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> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000079" class="method-detail"> - <a name="M000079"></a> - - <div class="method-heading"> - <a href="MenuExtension.src/M000079.html" target="Code" class="method-signature" - onclick="popupCode('MenuExtension.src/M000079.html');return false;"> - <span class="method-name">add_item</span><span class="method-args">(label, keyval = nil, klass = MenuItem, &callback)</span> - </a> - </div> - - <div class="method-description"> - <p> -Adds a Gtk::MenuItem to this instance‘s menu. <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> - - <div id="method-M000078" class="method-detail"> - <a name="M000078"></a> - - <div class="method-heading"> - <a href="MenuExtension.src/M000078.html" target="Code" class="method-signature" - onclick="popupCode('MenuExtension.src/M000078.html');return false;"> - <span class="method-name">add_separator</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Adds a Gtk::SeparatorMenuItem to this instance‘s menu. -</p> - </div> - </div> - - <div id="method-M000080" class="method-detail"> - <a name="M000080"></a> - - <div class="method-heading"> - <a href="MenuExtension.src/M000080.html" target="Code" class="method-signature" - onclick="popupCode('MenuExtension.src/M000080.html');return false;"> - <span class="method-name">create</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -This method should be implemented in subclasses to <a -href="MenuExtension.html#M000080">create</a> the menu of this instance. It -has to be called after an instance of this class is created, to build the -menu. -</p> - </div> - </div> - - <div id="method-M000081" class="method-detail"> - <a name="M000081"></a> - - <div class="method-heading"> - <a href="MenuExtension.src/M000081.html" target="Code" class="method-signature" - onclick="popupCode('MenuExtension.src/M000081.html');return false;"> - <span class="method-name">method_missing</span><span class="method-args">(*a, &b)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MenuExtension.src/M000077.html b/doc/classes/MenuExtension.src/M000077.html deleted file mode 100644 index aa148d5..0000000 --- a/doc/classes/MenuExtension.src/M000077.html +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>new (MenuExtension)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 212</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">treeview</span>) - <span class="ruby-ivar">@treeview</span> = <span class="ruby-identifier">treeview</span> - <span class="ruby-ivar">@menu</span> = <span class="ruby-constant">Menu</span>.<span class="ruby-identifier">new</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MenuExtension.src/M000078.html b/doc/classes/MenuExtension.src/M000078.html deleted file mode 100644 index d594ce3..0000000 --- a/doc/classes/MenuExtension.src/M000078.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>add_separator (MenuExtension)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 224</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">append</span> <span class="ruby-constant">SeparatorMenuItem</span>.<span class="ruby-identifier">new</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MenuExtension.src/M000079.html b/doc/classes/MenuExtension.src/M000079.html deleted file mode 100644 index d416c54..0000000 --- a/doc/classes/MenuExtension.src/M000079.html +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>add_item (MenuExtension)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 231</span> - <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>, <span class="ruby-operator">&</span><span class="ruby-identifier">callback</span>) - <span class="ruby-identifier">label</span> = <span class="ruby-node">"#{label} (C-#{keyval.chr})"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keyval</span> - <span class="ruby-identifier">item</span> = <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">label</span>) - <span class="ruby-identifier">item</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:activate</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">callback</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">keyval</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">'key-press-event'</span><span class="ruby-value str">'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> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">event</span>.<span class="ruby-identifier">state</span> <span class="ruby-operator">&</span> <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> - <span class="ruby-identifier">event</span>.<span class="ruby-identifier">keyval</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">keyval</span> - <span class="ruby-identifier">callback</span>.<span class="ruby-identifier">call</span> <span class="ruby-identifier">item</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">append</span> <span class="ruby-identifier">item</span> - <span class="ruby-identifier">item</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MenuExtension.src/M000080.html b/doc/classes/MenuExtension.src/M000080.html deleted file mode 100644 index 3e5ca08..0000000 --- a/doc/classes/MenuExtension.src/M000080.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create (MenuExtension)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 250</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/MenuExtension.src/M000081.html b/doc/classes/MenuExtension.src/M000081.html deleted file mode 100644 index 0fa3a50..0000000 --- a/doc/classes/MenuExtension.src/M000081.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>method_missing (MenuExtension)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 254</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) - <span class="ruby-identifier">treeview</span>.<span class="ruby-identifier">__send__</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 69cb3e1..0000000 --- a/doc/classes/Object.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Object</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Object</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/rails_rb.html"> - lib/json/add/rails.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000012">json_create</a> - <a href="#M000013">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000012" class="method-detail"> - <a name="M000012"></a> - - <div class="method-heading"> - <a href="Object.src/M000012.html" target="Code" class="method-signature" - onclick="popupCode('Object.src/M000012.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000013" class="method-detail"> - <a name="M000013"></a> - - <div class="method-heading"> - <a href="Object.src/M000013.html" target="Code" class="method-signature" - onclick="popupCode('Object.src/M000013.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*a)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Object.src/M000012.html b/doc/classes/Object.src/M000012.html deleted file mode 100644 index 3f8ee9c..0000000 --- a/doc/classes/Object.src/M000012.html +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Object)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 10</span> - <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>) - <span class="ruby-identifier">obj</span> = <span class="ruby-identifier">new</span> - <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> - <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> - <span class="ruby-identifier">instance_variable_set</span> <span class="ruby-node">"@#{key}"</span>, <span class="ruby-identifier">value</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">obj</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Object.src/M000013.html b/doc/classes/Object.src/M000013.html deleted file mode 100644 index 213d144..0000000 --- a/doc/classes/Object.src/M000013.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Object)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 19</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-identifier">result</span> = { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span> - } - <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> - <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> - <span class="ruby-identifier">r</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">result</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/OptionsMenu.html b/doc/classes/OptionsMenu.html deleted file mode 100644 index d5b3f0f..0000000 --- a/doc/classes/OptionsMenu.html +++ /dev/null @@ -1,198 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: OptionsMenu</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">OptionsMenu</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000003">collapsed_nodes</a> - <a href="#M000005">create</a> - <a href="#M000004">pretty_saving</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="MenuExtension.html">MenuExtension</a></span> - </div> - </div> - - <div id="section"> - - - - - - <div id="attribute-list"> - <h3 class="section-bar">Attributes</h3> - - <div class="name-list"> - <table> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">pretty_item</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"></td> - </tr> - </table> - </div> - </div> - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000003" class="method-detail"> - <a name="M000003"></a> - - <div class="method-heading"> - <a href="OptionsMenu.src/M000003.html" target="Code" class="method-signature" - onclick="popupCode('OptionsMenu.src/M000003.html');return false;"> - <span class="method-name">collapsed_nodes</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Collapse/Expand all nodes by default. -</p> - </div> - </div> - - <div id="method-M000005" class="method-detail"> - <a name="M000005"></a> - - <div class="method-heading"> - <a href="OptionsMenu.src/M000005.html" target="Code" class="method-signature" - onclick="popupCode('OptionsMenu.src/M000005.html');return false;"> - <span class="method-name">create</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Create the menu. -</p> - </div> - </div> - - <div id="method-M000004" class="method-detail"> - <a name="M000004"></a> - - <div class="method-heading"> - <a href="OptionsMenu.src/M000004.html" target="Code" class="method-signature" - onclick="popupCode('OptionsMenu.src/M000004.html');return false;"> - <span class="method-name">pretty_saving</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Toggle pretty saving mode on/off. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/OptionsMenu.src/M000003.html b/doc/classes/OptionsMenu.src/M000003.html deleted file mode 100644 index bbb4212..0000000 --- a/doc/classes/OptionsMenu.src/M000003.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>collapsed_nodes (OptionsMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 663</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collapsed_nodes</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">expanded</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">expanded</span> = <span class="ruby-keyword kw">false</span> - <span class="ruby-identifier">collapse_all</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">expanded</span> = <span class="ruby-keyword kw">true</span> - <span class="ruby-identifier">expand_all</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/OptionsMenu.src/M000004.html b/doc/classes/OptionsMenu.src/M000004.html deleted file mode 100644 index e7d7294..0000000 --- a/doc/classes/OptionsMenu.src/M000004.html +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>pretty_saving (OptionsMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 674</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty_saving</span>(<span class="ruby-identifier">item</span>) - <span class="ruby-ivar">@pretty_item</span>.<span class="ruby-identifier">toggled</span> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/OptionsMenu.src/M000005.html b/doc/classes/OptionsMenu.src/M000005.html deleted file mode 100644 index a01a882..0000000 --- a/doc/classes/OptionsMenu.src/M000005.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create (OptionsMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 682</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> - <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>) - <span class="ruby-identifier">title</span>.<span class="ruby-identifier">submenu</span> = <span class="ruby-identifier">menu</span> - <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>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:collapsed_nodes</span>)) - <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>, - <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:pretty_saving</span>)) - <span class="ruby-ivar">@pretty_item</span>.<span class="ruby-identifier">active</span> = <span class="ruby-keyword kw">true</span> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">unchange</span> - <span class="ruby-identifier">title</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.html b/doc/classes/PopUpMenu.html deleted file mode 100644 index 68facd0..0000000 --- a/doc/classes/PopUpMenu.html +++ /dev/null @@ -1,302 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: PopUpMenu</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">PopUpMenu</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/editor_rb.html"> - lib/json/editor.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This class creates the popup menu, that opens when clicking onto the -treeview. -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000047">append_new_node</a> - <a href="#M000042">change_node</a> - <a href="#M000049">collapse_expand</a> - <a href="#M000044">copy_node</a> - <a href="#M000050">create</a> - <a href="#M000043">cut_node</a> - <a href="#M000048">insert_new_node</a> - <a href="#M000045">paste_node_appending</a> - <a href="#M000046">paste_node_inserting_before</a> - </div> - </div> - - </div> - - - <!-- if includes --> - <div id="includes"> - <h3 class="section-bar">Included Modules</h3> - - <div id="includes-list"> - <span class="include-name"><a href="MenuExtension.html">MenuExtension</a></span> - </div> - </div> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000047" class="method-detail"> - <a name="M000047"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000047.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000047.html');return false;"> - <span class="method-name">append_new_node</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Append a new node to the selected Hash or Array. -</p> - </div> - </div> - - <div id="method-M000042" class="method-detail"> - <a name="M000042"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000042.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000042.html');return false;"> - <span class="method-name">change_node</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Change the type or content of the selected node. -</p> - </div> - </div> - - <div id="method-M000049" class="method-detail"> - <a name="M000049"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000049.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000049.html');return false;"> - <span class="method-name">collapse_expand</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Recursively collapse/expand a subtree starting from the selected node. -</p> - </div> - </div> - - <div id="method-M000044" class="method-detail"> - <a name="M000044"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000044.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000044.html');return false;"> - <span class="method-name">copy_node</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Copy the selected node and its subtree, and save it into the clipboard. -</p> - </div> - </div> - - <div id="method-M000050" class="method-detail"> - <a name="M000050"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000050.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000050.html');return false;"> - <span class="method-name">create</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Create the menu. -</p> - </div> - </div> - - <div id="method-M000043" class="method-detail"> - <a name="M000043"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000043.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000043.html');return false;"> - <span class="method-name">cut_node</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Cut the selected node and its subtree, and save it into the clipboard. -</p> - </div> - </div> - - <div id="method-M000048" class="method-detail"> - <a name="M000048"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000048.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000048.html');return false;"> - <span class="method-name">insert_new_node</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Insert a new node into an Array before the selected element. -</p> - </div> - </div> - - <div id="method-M000045" class="method-detail"> - <a name="M000045"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000045.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000045.html');return false;"> - <span class="method-name">paste_node_appending</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Paste the data in the clipboard into the selected Array or Hash by -appending it. -</p> - </div> - </div> - - <div id="method-M000046" class="method-detail"> - <a name="M000046"></a> - - <div class="method-heading"> - <a href="PopUpMenu.src/M000046.html" target="Code" class="method-signature" - onclick="popupCode('PopUpMenu.src/M000046.html');return false;"> - <span class="method-name">paste_node_inserting_before</span><span class="method-args">(item)</span> - </a> - </div> - - <div class="method-description"> - <p> -Paste the data in the clipboard into the selected Array inserting it before -the selected element. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000042.html b/doc/classes/PopUpMenu.src/M000042.html deleted file mode 100644 index cf301b2..0000000 --- a/doc/classes/PopUpMenu.src/M000042.html +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>change_node (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 265</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change_node</span>(<span class="ruby-identifier">item</span>) - <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> - <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span> - <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> - <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>) - <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>) - <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>, - <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</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> = <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> - <span class="ruby-identifier">current</span>.<span class="ruby-identifier">remove_subtree</span>(<span class="ruby-identifier">model</span>) - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Changed a node in tree."</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>( - <span class="ruby-node">"Cannot change node of type #{old_type} in tree!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000043.html b/doc/classes/PopUpMenu.src/M000043.html deleted file mode 100644 index d0962ff..0000000 --- a/doc/classes/PopUpMenu.src/M000043.html +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>cut_node (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 288</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cut_node</span>(<span class="ruby-identifier">item</span>) - <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> - <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> - <span class="ruby-ivar">@clipboard_data</span> = { - <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span> =<span class="ruby-operator">></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>) - } - <span class="ruby-keyword kw">else</span> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Cut a node from tree."</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000044.html b/doc/classes/PopUpMenu.src/M000044.html deleted file mode 100644 index 37e966e..0000000 --- a/doc/classes/PopUpMenu.src/M000044.html +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>copy_node (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 305</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">copy_node</span>(<span class="ruby-identifier">item</span>) - <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> - <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> - <span class="ruby-ivar">@clipboard_data</span> = { - <span class="ruby-identifier">current</span>.<span class="ruby-identifier">content</span> =<span class="ruby-operator">></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>) - } - <span class="ruby-keyword kw">else</span> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Copied a node from tree."</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000045.html b/doc/classes/PopUpMenu.src/M000045.html deleted file mode 100644 index b17712e..0000000 --- a/doc/classes/PopUpMenu.src/M000045.html +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>paste_node_appending (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 321</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paste_node_appending</span>(<span class="ruby-identifier">item</span>) - <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> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@clipboard_data</span> - <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">current</span>.<span class="ruby-identifier">type</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span> - <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>) - <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Hash'</span> - <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> - <span class="ruby-identifier">parent</span> = <span class="ruby-identifier">current</span>.<span class="ruby-identifier">parent</span> - <span class="ruby-identifier">hash</span> = <span class="ruby-constant">Editor</span>.<span class="ruby-identifier">model2data</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-identifier">model</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-identifier">hash</span>.<span class="ruby-identifier">update</span>(<span class="ruby-ivar">@clipboard_data</span>) - <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>) - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parent</span> - <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">parent</span>) - <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@expanded</span> - <span class="ruby-identifier">expand_all</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>( - <span class="ruby-node">"Cannot paste non-#{current.type} data into '#{current.type}'!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>( - <span class="ruby-node">"Cannot paste node below '#{current.type}'!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Nothing to paste in clipboard!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Append a node into the root first!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000046.html b/doc/classes/PopUpMenu.src/M000046.html deleted file mode 100644 index ae379e1..0000000 --- a/doc/classes/PopUpMenu.src/M000046.html +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>paste_node_inserting_before (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 359</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paste_node_inserting_before</span>(<span class="ruby-identifier">item</span>) - <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> - <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@clipboard_data</span> - <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> - <span class="ruby-identifier">parent_type</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">type</span> - <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> - <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> - <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> - <span class="ruby-keyword kw">end</span> - <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> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">expand_collapse</span>(<span class="ruby-identifier">current</span>) - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Inserted an element to "</span> <span class="ruby-operator">+</span> - <span class="ruby-node">"'#{parent_type}' before index #{selected_index}."</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>( - <span class="ruby-node">"Cannot insert node below '#{parent_type}'!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Nothing to paste in clipboard!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Append a node into the root first!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000047.html b/doc/classes/PopUpMenu.src/M000047.html deleted file mode 100644 index 2c7af18..0000000 --- a/doc/classes/PopUpMenu.src/M000047.html +++ /dev/null @@ -1,43 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>append_new_node (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 388</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append_new_node</span>(<span class="ruby-identifier">item</span>) - <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> - <span class="ruby-identifier">parent_type</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">type</span> - <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">parent_type</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Hash'</span> - <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>) - <span class="ruby-identifier">key</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <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>) - <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>) - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>( - <span class="ruby-node">"Added a (key, value)-pair to '#{parent_type}'."</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'Array'</span> - <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">type</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <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>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">"Appendend an element to '#{parent_type}'."</span>) - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-node">"Cannot append to '#{parent_type}'!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">type</span>, <span class="ruby-identifier">content</span> = <span class="ruby-identifier">ask_for_element</span> - <span class="ruby-identifier">type</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <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>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000048.html b/doc/classes/PopUpMenu.src/M000048.html deleted file mode 100644 index f054180..0000000 --- a/doc/classes/PopUpMenu.src/M000048.html +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>insert_new_node (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 418</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insert_new_node</span>(<span class="ruby-identifier">item</span>) - <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> - <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> - <span class="ruby-identifier">parent_parent</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">parent</span> - <span class="ruby-identifier">parent_type</span> = <span class="ruby-identifier">parent</span>.<span class="ruby-identifier">type</span> - <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> - <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> - <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> - <span class="ruby-keyword kw">end</span> - <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">type</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> - <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>) - <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> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Inserted an element to "</span> <span class="ruby-operator">+</span> - <span class="ruby-node">"'#{parent_type}' before index #{selected_index}."</span>) - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">change</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>( - <span class="ruby-node">"Cannot insert node below '#{parent_type}'!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Append a node into the root first!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000049.html b/doc/classes/PopUpMenu.src/M000049.html deleted file mode 100644 index 75ddc5b..0000000 --- a/doc/classes/PopUpMenu.src/M000049.html +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>collapse_expand (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 444</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">collapse_expand</span>(<span class="ruby-identifier">item</span>) - <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> - <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>) - <span class="ruby-identifier">collapse_row</span>(<span class="ruby-identifier">current</span>.<span class="ruby-identifier">path</span>) - <span class="ruby-keyword kw">else</span> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">else</span> - <span class="ruby-identifier">toplevel</span>.<span class="ruby-identifier">display_status</span>(<span class="ruby-value str">"Append a node into the root first!"</span>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/PopUpMenu.src/M000050.html b/doc/classes/PopUpMenu.src/M000050.html deleted file mode 100644 index 9e53c65..0000000 --- a/doc/classes/PopUpMenu.src/M000050.html +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>create (PopUpMenu)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 457</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Change node"</span>, <span class="ruby-value">?n</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:change_node</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Cut node"</span>, <span class="ruby-value">?X</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:cut_node</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Copy node"</span>, <span class="ruby-value">?C</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:copy_node</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Paste node (appending)"</span>, <span class="ruby-value">?A</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:paste_node_appending</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Paste node (inserting before)"</span>, <span class="ruby-value">?I</span>, - <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:paste_node_inserting_before</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Append new node"</span>, <span class="ruby-value">?a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:append_new_node</span>)) - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Insert new node before"</span>, <span class="ruby-value">?i</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:insert_new_node</span>)) - <span class="ruby-identifier">add_separator</span> - <span class="ruby-identifier">add_item</span>(<span class="ruby-value str">"Collapse/Expand node (recursively)"</span>, <span class="ruby-value">?e</span>, - <span class="ruby-operator">&</span><span class="ruby-identifier">method</span>(<span class="ruby-identifier">:collapse_expand</span>)) - - <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">: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> - <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> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-identifier">signal_connect</span>(<span class="ruby-identifier">:popup_menu</span>) <span class="ruby-keyword kw">do</span> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</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 b4dfb15..0000000 --- a/doc/classes/Range.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Range</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Range</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000073">json_create</a> - <a href="#M000074">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000073" class="method-detail"> - <a name="M000073"></a> - - <div class="method-heading"> - <a href="Range.src/M000073.html" target="Code" class="method-signature" - onclick="popupCode('Range.src/M000073.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000074" class="method-detail"> - <a name="M000074"></a> - - <div class="method-heading"> - <a href="Range.src/M000074.html" target="Code" class="method-signature" - onclick="popupCode('Range.src/M000074.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Range.src/M000073.html b/doc/classes/Range.src/M000073.html deleted file mode 100644 index cbca52e..0000000 --- a/doc/classes/Range.src/M000073.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Range)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 93</span> - <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>) - <span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">object</span>[<span class="ruby-value str">'a'</span>]) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Range.src/M000074.html b/doc/classes/Range.src/M000074.html deleted file mode 100644 index 21294cd..0000000 --- a/doc/classes/Range.src/M000074.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Range)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 97</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'a'</span> =<span class="ruby-operator">></span> [ <span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>, <span class="ruby-identifier">exclude_end?</span> ] - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 4f18ce1..0000000 --- a/doc/classes/Regexp.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Regexp</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Regexp</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000051">json_create</a> - <a href="#M000052">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000051" class="method-detail"> - <a name="M000051"></a> - - <div class="method-heading"> - <a href="Regexp.src/M000051.html" target="Code" class="method-signature" - onclick="popupCode('Regexp.src/M000051.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000052" class="method-detail"> - <a name="M000052"></a> - - <div class="method-heading"> - <a href="Regexp.src/M000052.html" target="Code" class="method-signature" - onclick="popupCode('Regexp.src/M000052.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Regexp.src/M000051.html b/doc/classes/Regexp.src/M000051.html deleted file mode 100644 index 45de269..0000000 --- a/doc/classes/Regexp.src/M000051.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Regexp)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 137</span> - <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>) - <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>]) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Regexp.src/M000052.html b/doc/classes/Regexp.src/M000052.html deleted file mode 100644 index 92ab747..0000000 --- a/doc/classes/Regexp.src/M000052.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Regexp)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 141</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</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">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'o'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">options</span>, - <span class="ruby-value str">'s'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">source</span>, - }.<span class="ruby-identifier">to_json</span> - <span class="ruby-keyword kw">end</span></pre> -</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 3fd9d16..0000000 --- a/doc/classes/Struct.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Struct</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Struct</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000053">json_create</a> - <a href="#M000054">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000053" class="method-detail"> - <a name="M000053"></a> - - <div class="method-heading"> - <a href="Struct.src/M000053.html" target="Code" class="method-signature" - onclick="popupCode('Struct.src/M000053.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000054" class="method-detail"> - <a name="M000054"></a> - - <div class="method-heading"> - <a href="Struct.src/M000054.html" target="Code" class="method-signature" - onclick="popupCode('Struct.src/M000054.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Struct.src/M000053.html b/doc/classes/Struct.src/M000053.html deleted file mode 100644 index 30b3851..0000000 --- a/doc/classes/Struct.src/M000053.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Struct)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 106</span> - <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>) - <span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">object</span>[<span class="ruby-value str">'v'</span>]) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Struct.src/M000054.html b/doc/classes/Struct.src/M000054.html deleted file mode 100644 index 1dab277..0000000 --- a/doc/classes/Struct.src/M000054.html +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Struct)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 110</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-identifier">klass</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span> - <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword 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">"Only named structs are supported!"</span> - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">klass</span>, - <span class="ruby-value str">'v'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">values</span>, - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</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 67966c2..0000000 --- a/doc/classes/Symbol.html +++ /dev/null @@ -1,175 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Symbol</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Symbol</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/rails_rb.html"> - lib/json/add/rails.rb - </a> - <br /> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000060">json_create</a> - <a href="#M000059">to_json</a> - <a href="#M000058">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000060" class="method-detail"> - <a name="M000060"></a> - - <div class="method-heading"> - <a href="Symbol.src/M000060.html" target="Code" class="method-signature" - onclick="popupCode('Symbol.src/M000060.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(o)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000059" class="method-detail"> - <a name="M000059"></a> - - <div class="method-heading"> - <a href="Symbol.src/M000059.html" target="Code" class="method-signature" - onclick="popupCode('Symbol.src/M000059.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*a)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <div id="method-M000058" class="method-detail"> - <a name="M000058"></a> - - <div class="method-heading"> - <a href="Symbol.src/M000058.html" target="Code" class="method-signature" - onclick="popupCode('Symbol.src/M000058.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*a)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Symbol.src/M000058.html b/doc/classes/Symbol.src/M000058.html deleted file mode 100644 index e18b450..0000000 --- a/doc/classes/Symbol.src/M000058.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Symbol)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/rails.rb, line 32</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Symbol.src/M000059.html b/doc/classes/Symbol.src/M000059.html deleted file mode 100644 index a6c20af..0000000 --- a/doc/classes/Symbol.src/M000059.html +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Symbol)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 11</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'s'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">to_s</span>, - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Symbol.src/M000060.html b/doc/classes/Symbol.src/M000060.html deleted file mode 100644 index dd88271..0000000 --- a/doc/classes/Symbol.src/M000060.html +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Symbol)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 18</span> - <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>) - <span class="ruby-identifier">o</span>[<span class="ruby-value str">'s'</span>].<span class="ruby-identifier">to_sym</span> - <span class="ruby-keyword kw">end</span></pre> -</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 2e2d86a..0000000 --- a/doc/classes/Time.html +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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: Time</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Time</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../files/lib/json/add/core_rb.html"> - lib/json/add/core.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - <a href="Object.html"> - Object - </a> - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000056">json_create</a> - <a href="#M000057">to_json</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000056" class="method-detail"> - <a name="M000056"></a> - - <div class="method-heading"> - <a href="Time.src/M000056.html" target="Code" class="method-signature" - onclick="popupCode('Time.src/M000056.html');return false;"> - <span class="method-name">json_create</span><span class="method-args">(object)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000057" class="method-detail"> - <a name="M000057"></a> - - <div class="method-heading"> - <a href="Time.src/M000057.html" target="Code" class="method-signature" - onclick="popupCode('Time.src/M000057.html');return false;"> - <span class="method-name">to_json</span><span class="method-args">(*args)</span> - </a> - </div> - - <div class="method-description"> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Time.src/M000056.html b/doc/classes/Time.src/M000056.html deleted file mode 100644 index a727ae6..0000000 --- a/doc/classes/Time.src/M000056.html +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>json_create (Time)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 24</span> - <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>) - <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 -> tv_nsec</span> - <span class="ruby-identifier">object</span>[<span class="ruby-value str">'n'</span>] = <span class="ruby-identifier">usec</span> <span class="ruby-operator">*</span> <span class="ruby-value">1000</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:tv_nsec</span>) - <span class="ruby-identifier">at</span>(<span class="ruby-operator">*</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>)) - <span class="ruby-keyword kw">else</span> - <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>) - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/classes/Time.src/M000057.html b/doc/classes/Time.src/M000057.html deleted file mode 100644 index 0201a1a..0000000 --- a/doc/classes/Time.src/M000057.html +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>to_json (Time)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/add/core.rb, line 35</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - { - <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>, - <span class="ruby-value str">'s'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">tv_sec</span>, - <span class="ruby-value str">'n'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">: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-operator">*</span> <span class="ruby-value">1000</span> - }.<span class="ruby-identifier">to_json</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>) - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/created.rid b/doc/created.rid deleted file mode 100644 index 8493c40..0000000 --- a/doc/created.rid +++ /dev/null @@ -1 +0,0 @@ -Fri, 26 Feb 2010 22:50:34 +0100 diff --git a/doc/files/README.html b/doc/files/README.html deleted file mode 100644 index 7690d58..0000000 --- a/doc/files/README.html +++ /dev/null @@ -1,593 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: README</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>README</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>README - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:32 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="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>A pure ruby variant, that relies on the iconv and the stringscan -extensions, which are both part of the ruby standard library. - -</li> -<li>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> -. - -</li> -</ul> -<p> -Both variants of the <a href="../classes/JSON.html">JSON</a> generator -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. This means that generated <a -href="../classes/JSON.html">JSON</a> document is encoded as UTF-8 (because -ASCII is a subset of UTF-8) and at the same time avoids decoding problems -for receiving endpoints, that don‘t expect UTF-8 encoded texts. On -the negative side this may lead to a bit longer strings than necessarry. -</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‘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‘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‘s recommended to use the extension variant of <a -href="../classes/JSON.html">JSON</a>, because it‘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 ‘json’ or -the pure variant ‘json_pure’). If you have installed the -extension variant, you can pick either the extension variant or the pure -variant by typing -</p> -<pre> - require 'json/ext' -</pre> -<p> -or -</p> -<pre> - require 'json/pure' -</pre> -<p> -Now you can parse a <a href="../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‘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 <a -href="../classes/JSON.html">JSON</a>[] 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' => 23 # => "{\"test\":23}" - document = JSON['test'] => 23 # => "{\"test\":23}" -</pre> -<p> -and -</p> -<pre> - data = JSON '{"test":23}' # => {"test"=>23} - data = JSON['{"test":23}'] # => {"test"=>23} -</pre> -<p> -You can choose to load a set of common additions to ruby core‘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) # => 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 "More Examples" -below. -</p> -<p> -To get the best compatibility to rails’ <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 ‘json’ (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#M000098">JSON.generate</a> like that: -</p> -<pre> - json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10] - # => "[1,2,{\"a\":3.141},false,true,null,\"4..10\"]" -</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#M000096">JSON.parse</a> on it: -</p> -<pre> - JSON.parse json - # => [1, 2, {"a"=>3.141}, false, true, nil, "4..10"] -</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‘t support ranges or arbitrary classes. In this case the json -library falls back to call <a -href="../classes/Object.html#M000013">Object#to_json</a>, which is the same -as to_s.to_json. -</p> -<p> -It‘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 to_json 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 to_json) like this (don‘t -forget the *a for all the arguments): -</p> -<pre> - class Range - def to_json(*a) - { - 'json_class' => self.class.name, # = 'Range' - 'data' => [ first, last, exclude_end? ] - }.to_json(*a) - end - end -</pre> -<p> -The hash key ‘json_class’ is the class, that will be asked to -deserialise the <a href="../classes/JSON.html">JSON</a> representation -later. In this case it‘s ‘<a -href="../classes/Range.html">Range</a>’, but any namespace of the -form ‘A::B’ or ’::A::B’ will do. All other keys are -arbitrary and can be used to store the necessary data to configure the -object to be deserialised. -</p> -<p> -If a the key ‘json_class’ is found in a <a -href="../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 <a -href="../classes/Range.html#M000073">Range.json_create</a> like this: -</p> -<pre> - class Range - def self.json_create(o) - new(*o['data']) - end - end -</pre> -<p> -Now it possible to serialise/deserialise ranges as well: -</p> -<pre> - json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10] - # => "[1,2,{\"a\":3.141},false,true,null,{\"json_class\":\"Range\",\"data\":[4,10,false]}]" - JSON.parse json - # => [1, 2, {"a"=>3.141}, false, true, nil, 4..10] -</pre> -<p> -<a href="../classes/JSON.html#M000098">JSON.generate</a> always creates the -shortest possible string representation of a ruby data structure in one -line. This is good for data storage or network protocols, but not so good -for humans to read. Fortunately there‘s also <a -href="../classes/JSON.html#M000100">JSON.pretty_generate</a> (or <a -href="../classes/JSON.html#M000100">JSON.pretty_generate</a>) that creates -a more readable output: -</p> -<pre> - puts JSON.pretty_generate([1, 2, {"a"=>3.141}, false, true, nil, 4..10]) - [ - 1, - 2, - { - "a": 3.141 - }, - false, - true, - null, - { - "json_class": "Range", - "data": [ - 4, - 10, - false - ] - } - ] -</pre> -<p> -There are also the methods Kernel#j for generate, and Kernel#jj for -pretty_generate output to the console, that work analogous to Core -Ruby‘s p and the pp library‘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 <a -href="../classes/JSON.html">JSON</a>-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) -> 21.500x - 0.001805307 - 2 ParserBenchmarkYAML#parser 1000 repeats: - 224.513358139 ( real) -> 8.714x - 0.004454078 - 3 ParserBenchmarkPure#parser 1000 repeats: - 26.755020642 ( real) -> 1.038x - 0.037376163 - 4 ParserBenchmarkRails#parser 1000 repeats: - 25.763381731 ( real) -> 1.000x - 0.038814780 - calls/sec ( time) -> 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 <a -href="../classes/JSON.html">JSON</a>-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) -> 26.936x - 0.001249075 - 2 ParserBenchmarkYAML#parser 1000 repeats: - 271.002390644 ( real) -> 9.118x - 0.003690004 - 3 ParserBenchmarkRails#parser 1000 repeats: - 30.227910865 ( real) -> 1.017x - 0.033082008 - 4 ParserBenchmarkPure#parser 1000 repeats: - 29.722384421 ( real) -> 1.000x - 0.033644676 - calls/sec ( time) -> speed covers - secs/call -</pre> -<p> -I have benchmarked the <a href="../classes/JSON.html">JSON</a>-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) -> 15.090x - 0.001826970 - 2 GeneratorBenchmarkExt#generator_safe 1000 repeats: - 443.968212317 ( real) -> 12.240x - 0.002252414 - 3 GeneratorBenchmarkExt#generator_pretty 900 repeats: - 375.104545883 ( real) -> 10.341x - 0.002665923 - 4 GeneratorBenchmarkPure#generator_fast 1000 repeats: - 49.978706968 ( real) -> 1.378x - 0.020008521 - 5 GeneratorBenchmarkRails#generator 1000 repeats: - 38.531868759 ( real) -> 1.062x - 0.025952543 - 6 GeneratorBenchmarkPure#generator_safe 1000 repeats: - 36.927649925 ( real) -> 1.018x 7 (>=3859) - 0.027079979 - 7 GeneratorBenchmarkPure#generator_pretty 1000 repeats: - 36.272134441 ( real) -> 1.000x 6 (>=3859) - 0.027569373 - calls/sec ( time) -> 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’ sake: -</p> -<pre> - Comparing times (call_time_median): - 1 GeneratorBenchmarkExt#generator_fast 1000 repeats: - 708.258020939 ( real) -> 16.547x - 0.001411915 - 2 GeneratorBenchmarkExt#generator_safe 1000 repeats: - 569.105020353 ( real) -> 13.296x - 0.001757145 - 3 GeneratorBenchmarkExt#generator_pretty 900 repeats: - 482.825371244 ( real) -> 11.280x - 0.002071142 - 4 GeneratorBenchmarkPure#generator_fast 1000 repeats: - 62.717626652 ( real) -> 1.465x - 0.015944481 - 5 GeneratorBenchmarkRails#generator 1000 repeats: - 43.965681162 ( real) -> 1.027x - 0.022745013 - 6 GeneratorBenchmarkPure#generator_safe 1000 repeats: - 43.929073409 ( real) -> 1.026x 7 (>=3859) - 0.022763968 - 7 GeneratorBenchmarkPure#generator_pretty 1000 repeats: - 42.802514491 ( real) -> 1.000x 6 (>=3859) - 0.023363113 - calls/sec ( time) -> 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><a -href="http://rubyforge.org/frs?group_id=953">rubyforge.org/frs?group_id=953</a> - -</li> -</ul> -<p> -Online Documentation should be located at -</p> -<ul> -<li><a href="http://json.rubyforge.org">json.rubyforge.org</a> - -</li> -</ul> - - </div> - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/files/ext/json/ext/generator_c.html b/doc/files/ext/json/ext/generator_c.html deleted file mode 100644 index 0cb27cf..0000000 --- a/doc/files/ext/json/ext/generator_c.html +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: generator.c</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>generator.c</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>ext/json/ext/generator.c - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/files/ext/json/ext/parser_c.html b/doc/files/ext/json/ext/parser_c.html deleted file mode 100644 index d07ac35..0000000 --- a/doc/files/ext/json/ext/parser_c.html +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: parser.c</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>parser.c</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>ext/json/ext/parser.c - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 96ab488..0000000 --- a/doc/files/lib/json/add/core_rb.html +++ /dev/null @@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: core.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>core.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/add/core.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This file contains implementations of ruby core‘s custom objects for -serialisation/deserialisation. -</p> - - </div> - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - json - date - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 aeb7eef..0000000 --- a/doc/files/lib/json/add/rails_rb.html +++ /dev/null @@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: rails.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>rails.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/add/rails.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This file contains implementations of rails custom objects for -serialisation/deserialisation. -</p> - - </div> - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - json - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 c9071f7..0000000 --- a/doc/files/lib/json/common_rb.html +++ /dev/null @@ -1,109 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: common.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>common.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/common.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - json/version - iconv - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 8fde075..0000000 --- a/doc/files/lib/json/editor_rb.html +++ /dev/null @@ -1,172 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: editor.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>editor.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/editor.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -To use the GUI <a href="../../../classes/JSON.html">JSON</a> editor, <a -href="editor_rb.html#M000001">start</a> the edit_json.rb executable script. -It requires ruby-gtk to be installed. -</p> - - </div> - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - gtk2 - iconv - json - rbconfig - open-uri - </div> - </div> - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000002">edit</a> - <a href="#M000001">start</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000002" class="method-detail"> - <a name="M000002"></a> - - <div class="method-heading"> - <a href="editor_rb.src/M000002.html" target="Code" class="method-signature" - onclick="popupCode('editor_rb.src/M000002.html');return false;"> - <span class="method-name">edit</span><span class="method-args">(json, encoding = 'utf8')</span> - </a> - </div> - - <div class="method-description"> - <p> -Edit the string <em>json</em> with encoding <em>encoding</em> in the -editor. -</p> - </div> - </div> - - <div id="method-M000001" class="method-detail"> - <a name="M000001"></a> - - <div class="method-heading"> - <a href="editor_rb.src/M000001.html" target="Code" class="method-signature" - onclick="popupCode('editor_rb.src/M000001.html');return false;"> - <span class="method-name">start</span><span class="method-args">(encoding = 'utf8') {|window| ...}</span> - </a> - </div> - - <div class="method-description"> - <p> -Starts a <a href="../../../classes/JSON.html">JSON</a> <a -href="../../../classes/Editor.html">Editor</a>. If a block was given, it -yields to the <a -href="../../../classes/MainWindow.html">JSON::Editor::MainWindow</a> -instance. -</p> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/files/lib/json/editor_rb.src/M000001.html b/doc/files/lib/json/editor_rb.src/M000001.html deleted file mode 100644 index 35f0fe6..0000000 --- a/doc/files/lib/json/editor_rb.src/M000001.html +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>start (lib/json/editor.rb)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1352</span> - <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> - <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">init</span> - <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>) - <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>) ] - <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> - <span class="ruby-ivar">@window</span>.<span class="ruby-identifier">show_all</span> - <span class="ruby-constant">Gtk</span>.<span class="ruby-identifier">main</span> - <span class="ruby-keyword kw">end</span></pre> -</body> -</html>
\ No newline at end of file diff --git a/doc/files/lib/json/editor_rb.src/M000002.html b/doc/files/lib/json/editor_rb.src/M000002.html deleted file mode 100644 index 8757e5c..0000000 --- a/doc/files/lib/json/editor_rb.src/M000002.html +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html> -<head> - <title>edit (lib/json/editor.rb)</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> -</head> -<body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File lib/json/editor.rb, line 1362</span> - <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>) - <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> - <span class="ruby-identifier">window</span>.<span class="ruby-identifier">edit</span> <span class="ruby-identifier">json</span> - <span class="ruby-keyword kw">end</span> - <span class="ruby-keyword kw">end</span></pre> -</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 a0272ed..0000000 --- a/doc/files/lib/json/ext_rb.html +++ /dev/null @@ -1,110 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: ext.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>ext.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/ext.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - json/common - json/ext/parser - json/ext/generator - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 0aafb07..0000000 --- a/doc/files/lib/json/pure/generator_rb.html +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: generator.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>generator.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/pure/generator.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 5d6274a..0000000 --- a/doc/files/lib/json/pure/parser_rb.html +++ /dev/null @@ -1,108 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: parser.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>parser.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/pure/parser.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - strscan - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 6daaaa2..0000000 --- a/doc/files/lib/json/pure_rb.html +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: pure.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>pure.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/pure.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - json/common - json/pure/parser - json/pure/generator - iconv - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 994040d..0000000 --- a/doc/files/lib/json/version_rb.html +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: version.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>version.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json/version.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:34 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</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 1854c13..0000000 --- a/doc/files/lib/json_rb.html +++ /dev/null @@ -1,111 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!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>File: json.rb</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="fileHeader"> - <h1>json.rb</h1> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Path:</strong></td> - <td>lib/json.rb - </td> - </tr> - <tr class="top-aligned-row"> - <td><strong>Last Update:</strong></td> - <td>Fri Feb 26 22:50:33 +0100 2010</td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - - <div id="requires-list"> - <h3 class="section-bar">Required files</h3> - - <div class="name-list"> - json/common - json/version - json/ext - json/pure - </div> - </div> - - </div> - - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - - - - <!-- if method_list --> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file diff --git a/doc/fr_class_index.html b/doc/fr_class_index.html deleted file mode 100644 index 796c088..0000000 --- a/doc/fr_class_index.html +++ /dev/null @@ -1,85 +0,0 @@ - -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<!-- - - Classes - - --> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <title>Classes</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="rdoc-style.css" type="text/css" /> - <base target="docwin" /> -</head> -<body> -<div id="index"> - <h1 class="section-bar">Classes</h1> - <div id="index-entries"> - <a href="classes/.html"></a><br /> - <a href="classes/Class.html">Class</a><br /> - <a href="classes/Date.html">Date</a><br /> - <a href="classes/DateTime.html">DateTime</a><br /> - <a href="classes/EditMenu.html">EditMenu</a><br /> - <a href="classes/Editor.html">Editor</a><br /> - <a href="classes/Enumerable.html">Enumerable</a><br /> - <a href="classes/Exception.html">Exception</a><br /> - <a href="classes/FileMenu.html">FileMenu</a><br /> - <a href="classes/Gtk.html">Gtk</a><br /> - <a href="classes/Gtk/TreeIter.html">Gtk::TreeIter</a><br /> - <a href="classes/JSON.html">JSON</a><br /> - <a href="classes/JSON/Editor.html">JSON::Editor</a><br /> - <a href="classes/JSON/Ext.html">JSON::Ext</a><br /> - <a href="classes/JSON/Ext/Generator.html">JSON::Ext::Generator</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods.html">JSON::Ext::Generator::GeneratorMethods</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Array.html">JSON::Ext::Generator::GeneratorMethods::Array</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html">JSON::Ext::Generator::GeneratorMethods::FalseClass</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Float.html">JSON::Ext::Generator::GeneratorMethods::Float</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Hash.html">JSON::Ext::Generator::GeneratorMethods::Hash</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Integer.html">JSON::Ext::Generator::GeneratorMethods::Integer</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html">JSON::Ext::Generator::GeneratorMethods::NilClass</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Object.html">JSON::Ext::Generator::GeneratorMethods::Object</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String.html">JSON::Ext::Generator::GeneratorMethods::String</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html">JSON::Ext::Generator::GeneratorMethods::String::Extend</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html">JSON::Ext::Generator::GeneratorMethods::TrueClass</a><br /> - <a href="classes/JSON/Ext/Generator/State.html">JSON::Ext::Generator::State</a><br /> - <a href="classes/JSON/Ext/Parser.html">JSON::Ext::Parser</a><br /> - <a href="classes/JSON/GeneratorError.html">JSON::GeneratorError</a><br /> - <a href="classes/JSON/JSONError.html">JSON::JSONError</a><br /> - <a href="classes/JSON/MissingUnicodeSupport.html">JSON::MissingUnicodeSupport</a><br /> - <a href="classes/JSON/NestingError.html">JSON::NestingError</a><br /> - <a href="classes/JSON/ParserError.html">JSON::ParserError</a><br /> - <a href="classes/JSON/Pure.html">JSON::Pure</a><br /> - <a href="classes/JSON/Pure/Generator.html">JSON::Pure::Generator</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods.html">JSON::Pure::Generator::GeneratorMethods</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Array.html">JSON::Pure::Generator::GeneratorMethods::Array</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html">JSON::Pure::Generator::GeneratorMethods::FalseClass</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Float.html">JSON::Pure::Generator::GeneratorMethods::Float</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Hash.html">JSON::Pure::Generator::GeneratorMethods::Hash</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Integer.html">JSON::Pure::Generator::GeneratorMethods::Integer</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html">JSON::Pure::Generator::GeneratorMethods::NilClass</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Object.html">JSON::Pure::Generator::GeneratorMethods::Object</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String.html">JSON::Pure::Generator::GeneratorMethods::String</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html">JSON::Pure::Generator::GeneratorMethods::String::Extend</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html">JSON::Pure::Generator::GeneratorMethods::TrueClass</a><br /> - <a href="classes/JSON/Pure/Generator/State.html">JSON::Pure::Generator::State</a><br /> - <a href="classes/JSON/Pure/Parser.html">JSON::Pure::Parser</a><br /> - <a href="classes/JSONTreeView.html">JSONTreeView</a><br /> - <a href="classes/MainWindow.html">MainWindow</a><br /> - <a href="classes/MenuExtension.html">MenuExtension</a><br /> - <a href="classes/Object.html">Object</a><br /> - <a href="classes/OptionsMenu.html">OptionsMenu</a><br /> - <a href="classes/PopUpMenu.html">PopUpMenu</a><br /> - <a href="classes/Range.html">Range</a><br /> - <a href="classes/Regexp.html">Regexp</a><br /> - <a href="classes/Struct.html">Struct</a><br /> - <a href="classes/Symbol.html">Symbol</a><br /> - <a href="classes/Time.html">Time</a><br /> - </div> -</div> -</body> -</html>
\ No newline at end of file diff --git a/doc/fr_file_index.html b/doc/fr_file_index.html deleted file mode 100644 index 394e378..0000000 --- a/doc/fr_file_index.html +++ /dev/null @@ -1,39 +0,0 @@ - -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<!-- - - Files - - --> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <title>Files</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="rdoc-style.css" type="text/css" /> - <base target="docwin" /> -</head> -<body> -<div id="index"> - <h1 class="section-bar">Files</h1> - <div id="index-entries"> - <a href="files/README.html">README</a><br /> - <a href="files/ext/json/ext/generator_c.html">ext/json/ext/generator.c</a><br /> - <a href="files/ext/json/ext/parser_c.html">ext/json/ext/parser.c</a><br /> - <a href="files/lib/json_rb.html">lib/json.rb</a><br /> - <a href="files/lib/json/add/core_rb.html">lib/json/add/core.rb</a><br /> - <a href="files/lib/json/add/rails_rb.html">lib/json/add/rails.rb</a><br /> - <a href="files/lib/json/common_rb.html">lib/json/common.rb</a><br /> - <a href="files/lib/json/editor_rb.html">lib/json/editor.rb</a><br /> - <a href="files/lib/json/ext_rb.html">lib/json/ext.rb</a><br /> - <a href="files/lib/json/pure_rb.html">lib/json/pure.rb</a><br /> - <a href="files/lib/json/pure/generator_rb.html">lib/json/pure/generator.rb</a><br /> - <a href="files/lib/json/pure/parser_rb.html">lib/json/pure/parser.rb</a><br /> - <a href="files/lib/json/version_rb.html">lib/json/version.rb</a><br /> - </div> -</div> -</body> -</html>
\ No newline at end of file diff --git a/doc/fr_method_index.html b/doc/fr_method_index.html deleted file mode 100644 index 065f0d8..0000000 --- a/doc/fr_method_index.html +++ /dev/null @@ -1,192 +0,0 @@ - -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<!-- - - Methods - - --> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <title>Methods</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> - <link rel="stylesheet" href="rdoc-style.css" type="text/css" /> - <base target="docwin" /> -</head> -<body> -<div id="index"> - <h1 class="section-bar">Methods</h1> - <div id="index-entries"> - <a href="classes/JSON.html#M000095">[] (JSON)</a><br /> - <a href="classes/MenuExtension.html#M000079">add_item (MenuExtension)</a><br /> - <a href="classes/MenuExtension.html#M000078">add_separator (MenuExtension)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000160">allow_nan? (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000134">allow_nan? (JSON::Ext::Generator::State)</a><br /> - <a href="classes/PopUpMenu.html#M000047">append_new_node (PopUpMenu)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000130">array_nl (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000131">array_nl= (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000135">ascii_only? (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000161">ascii_only? (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSONTreeView.html#M000038">ask_for_element (JSONTreeView)</a><br /> - <a href="classes/JSONTreeView.html#M000040">ask_for_find_term (JSONTreeView)</a><br /> - <a href="classes/JSONTreeView.html#M000037">ask_for_hash_pair (JSONTreeView)</a><br /> - <a href="classes/MainWindow.html#M000034">ask_for_location (MainWindow)</a><br /> - <a href="classes/JSONTreeView.html#M000039">ask_for_order (JSONTreeView)</a><br /> - <a href="classes/MainWindow.html#M000020">ask_save (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000016">change (MainWindow)</a><br /> - <a href="classes/PopUpMenu.html#M000042">change_node (PopUpMenu)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000159">check_circular? (JSON::Pure::Generator::State)</a><br /> - <a href="classes/MainWindow.html#M000023">clear (MainWindow)</a><br /> - <a href="classes/PopUpMenu.html#M000049">collapse_expand (PopUpMenu)</a><br /> - <a href="classes/OptionsMenu.html#M000003">collapsed_nodes (OptionsMenu)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000162">configure (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000136">configure (JSON::Ext::Generator::State)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000092">content (Gtk::TreeIter)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000093">content= (Gtk::TreeIter)</a><br /> - <a href="classes/EditMenu.html#M000006">copy (EditMenu)</a><br /> - <a href="classes/PopUpMenu.html#M000044">copy_node (PopUpMenu)</a><br /> - <a href="classes/FileMenu.html#M000072">create (FileMenu)</a><br /> - <a href="classes/PopUpMenu.html#M000050">create (PopUpMenu)</a><br /> - <a href="classes/EditMenu.html#M000011">create (EditMenu)</a><br /> - <a href="classes/MenuExtension.html#M000080">create (MenuExtension)</a><br /> - <a href="classes/OptionsMenu.html#M000005">create (OptionsMenu)</a><br /> - <a href="classes/MainWindow.html#M000015">create_menu_bar (MainWindow)</a><br /> - <a href="classes/JSONTreeView.html#M000036">create_node (JSONTreeView)</a><br /> - <a href="classes/PopUpMenu.html#M000043">cut_node (PopUpMenu)</a><br /> - <a href="classes/Editor.html#M000086">data2model (Editor)</a><br /> - <a href="classes/MainWindow.html#M000019">display_status (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000022">display_title (MainWindow)</a><br /> - <a href="classes/JSON.html#M000104">dump (JSON)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000087">each (Gtk::TreeIter)</a><br /> - <a href="classes/MainWindow.html#M000026">edit (MainWindow)</a><br /> - <a href="files/lib/json/editor_rb.html#M000002">edit (lib/json/editor.rb)</a><br /> - <a href="classes/Editor.html#M000083">error_dialog (Editor)</a><br /> - <a href="classes/JSONTreeView.html#M000041">expand_collapse (JSONTreeView)</a><br /> - <a href="classes/JSON.html#M000099">fast_generate (JSON)</a><br /> - <a href="classes/Editor.html#M000082">fetch_icon (Editor)</a><br /> - <a href="classes/MainWindow.html#M000025">file_open (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000027">file_save (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000028">file_save_as (MainWindow)</a><br /> - <a href="classes/EditMenu.html#M000008">find (EditMenu)</a><br /> - <a href="classes/EditMenu.html#M000009">find_again (EditMenu)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000119">from_state (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000157">from_state (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000164">generate (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000138">generate (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON.html#M000098">generate (JSON)</a><br /> - <a href="classes/JSON.html#M000105">iconv (JSON)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String.html#M000114">included (JSON::Ext::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String.html#M000153">included (JSON::Pure::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000122">indent (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000123">indent= (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000121">initialize_copy (JSON::Ext::Generator::State)</a><br /> - <a href="classes/PopUpMenu.html#M000048">insert_new_node (PopUpMenu)</a><br /> - <a href="classes/Class.html#M000055">json_creatable? (Class)</a><br /> - <a href="classes/Exception.html#M000063">json_create (Exception)</a><br /> - <a href="classes/Date.html#M000061">json_create (Date)</a><br /> - <a href="classes/Symbol.html#M000060">json_create (Symbol)</a><br /> - <a href="classes/Object.html#M000012">json_create (Object)</a><br /> - <a href="classes/Time.html#M000056">json_create (Time)</a><br /> - <a href="classes/Struct.html#M000053">json_create (Struct)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String/Extend.html#M000156">json_create (JSON::Pure::Generator::GeneratorMethods::String::Extend)</a><br /> - <a href="classes/Range.html#M000073">json_create (Range)</a><br /> - <a href="classes/Regexp.html#M000051">json_create (Regexp)</a><br /> - <a href="classes/DateTime.html#M000075">json_create (DateTime)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String/Extend.html#M000118">json_create (JSON::Ext::Generator::GeneratorMethods::String::Extend)</a><br /> - <a href="classes/JSON.html#M000101">load (JSON)</a><br /> - <a href="classes/MainWindow.html#M000030">load_file (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000031">load_location (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000024">location_open (MainWindow)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000132">max_nesting (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000133">max_nesting= (JSON::Ext::Generator::State)</a><br /> - <a href="classes/MenuExtension.html#M000081">method_missing (MenuExtension)</a><br /> - <a href="classes/Editor.html#M000085">model2data (Editor)</a><br /> - <a href="classes/MenuExtension.html#M000077">new (MenuExtension)</a><br /> - <a href="classes/JSON/Ext/Parser.html#M000140">new (JSON::Ext::Parser)</a><br /> - <a href="classes/MainWindow.html#M000014">new (MainWindow)</a><br /> - <a href="classes/FileMenu.html#M000065">new (FileMenu)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000120">new (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Pure/Parser.html#M000165">new (JSON::Pure::Parser)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000158">new (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSONTreeView.html#M000035">new (JSONTreeView)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000128">object_nl (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000129">object_nl= (JSON::Ext::Generator::State)</a><br /> - <a href="classes/FileMenu.html#M000066">open (FileMenu)</a><br /> - <a href="classes/FileMenu.html#M000067">open_location (FileMenu)</a><br /> - <a href="classes/JSON/Pure/Parser.html#M000166">parse (JSON::Pure::Parser)</a><br /> - <a href="classes/JSON.html#M000096">parse (JSON)</a><br /> - <a href="classes/JSON/Ext/Parser.html#M000141">parse (JSON::Ext::Parser)</a><br /> - <a href="classes/JSON.html#M000097">parse! (JSON)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000139">partial_generate (JSON::Ext::Generator::State)</a><br /> - <a href="classes/EditMenu.html#M000007">paste (EditMenu)</a><br /> - <a href="classes/PopUpMenu.html#M000045">paste_node_appending (PopUpMenu)</a><br /> - <a href="classes/PopUpMenu.html#M000046">paste_node_inserting_before (PopUpMenu)</a><br /> - <a href="classes/JSON.html#M000100">pretty_generate (JSON)</a><br /> - <a href="classes/OptionsMenu.html#M000004">pretty_saving (OptionsMenu)</a><br /> - <a href="classes/Editor.html#M000084">question_dialog (Editor)</a><br /> - <a href="classes/MainWindow.html#M000021">quit (MainWindow)</a><br /> - <a href="classes/FileMenu.html#M000071">quit (FileMenu)</a><br /> - <a href="classes/MainWindow.html#M000032">read_data (MainWindow)</a><br /> - <a href="classes/JSON.html#M000102">recurse_proc (JSON)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000088">recursive_each (Gtk::TreeIter)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000089">remove_subtree (Gtk::TreeIter)</a><br /> - <a href="classes/JSON.html#M000103">restore (JSON)</a><br /> - <a href="classes/FileMenu.html#M000068">revert (FileMenu)</a><br /> - <a href="classes/FileMenu.html#M000069">save (FileMenu)</a><br /> - <a href="classes/FileMenu.html#M000070">save_as (FileMenu)</a><br /> - <a href="classes/MainWindow.html#M000033">select_file (MainWindow)</a><br /> - <a href="classes/EditMenu.html#M000010">sort (EditMenu)</a><br /> - <a href="classes/JSON/Ext/Parser.html#M000142">source (JSON::Ext::Parser)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000124">space (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000125">space= (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000126">space_before (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000127">space_before= (JSON::Ext::Generator::State)</a><br /> - <a href="files/lib/json/editor_rb.html#M000001">start (lib/json/editor.rb)</a><br /> - <a href="classes/MainWindow.html#M000029">store_file (MainWindow)</a><br /> - <a href="classes/JSON/Pure/Generator/State.html#M000163">to_h (JSON::Pure::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/State.html#M000137">to_h (JSON::Ext::Generator::State)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/FalseClass.html#M000108">to_json (JSON::Ext::Generator::GeneratorMethods::FalseClass)</a><br /> - <a href="classes/DateTime.html#M000076">to_json (DateTime)</a><br /> - <a href="classes/Range.html#M000074">to_json (Range)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Array.html#M000109">to_json (JSON::Ext::Generator::GeneratorMethods::Array)</a><br /> - <a href="classes/Enumerable.html#M000094">to_json (Enumerable)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Object.html#M000106">to_json (JSON::Ext::Generator::GeneratorMethods::Object)</a><br /> - <a href="classes/Object.html#M000013">to_json (Object)</a><br /> - <a href="classes/Exception.html#M000064">to_json (Exception)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Hash.html#M000110">to_json (JSON::Ext::Generator::GeneratorMethods::Hash)</a><br /> - <a href="classes/Date.html#M000062">to_json (Date)</a><br /> - <a href="classes/Symbol.html#M000059">to_json (Symbol)</a><br /> - <a href="classes/Symbol.html#M000058">to_json (Symbol)</a><br /> - <a href="classes/Time.html#M000057">to_json (Time)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String.html#M000115">to_json (JSON::Ext::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Object.html#M000143">to_json (JSON::Pure::Generator::GeneratorMethods::Object)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Integer.html#M000144">to_json (JSON::Pure::Generator::GeneratorMethods::Integer)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/FalseClass.html#M000145">to_json (JSON::Pure::Generator::GeneratorMethods::FalseClass)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Array.html#M000146">to_json (JSON::Pure::Generator::GeneratorMethods::Array)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Hash.html#M000147">to_json (JSON::Pure::Generator::GeneratorMethods::Hash)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.html#M000113">to_json (JSON::Ext::Generator::GeneratorMethods::TrueClass)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/NilClass.html#M000149">to_json (JSON::Pure::Generator::GeneratorMethods::NilClass)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/TrueClass.html#M000150">to_json (JSON::Pure::Generator::GeneratorMethods::TrueClass)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String.html#M000151">to_json (JSON::Pure::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String.html#M000152">to_json (JSON::Pure::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/Struct.html#M000054">to_json (Struct)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Float.html#M000111">to_json (JSON::Ext::Generator::GeneratorMethods::Float)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/NilClass.html#M000112">to_json (JSON::Ext::Generator::GeneratorMethods::NilClass)</a><br /> - <a href="classes/Regexp.html#M000052">to_json (Regexp)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/Integer.html#M000107">to_json (JSON::Ext::Generator::GeneratorMethods::Integer)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/Float.html#M000148">to_json (JSON::Pure::Generator::GeneratorMethods::Float)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String.html#M000155">to_json_raw (JSON::Pure::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String.html#M000116">to_json_raw (JSON::Ext::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Ext/Generator/GeneratorMethods/String.html#M000117">to_json_raw_object (JSON::Ext::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/JSON/Pure/Generator/GeneratorMethods/String.html#M000154">to_json_raw_object (JSON::Pure::Generator::GeneratorMethods::String)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000090">type (Gtk::TreeIter)</a><br /> - <a href="classes/Gtk/TreeIter.html#M000091">type= (Gtk::TreeIter)</a><br /> - <a href="classes/MainWindow.html#M000017">unchange (MainWindow)</a><br /> - <a href="classes/MainWindow.html#M000018">view_new_model (MainWindow)</a><br /> - </div> -</div> -</body> -</html>
\ No newline at end of file diff --git a/doc/index.html b/doc/index.html deleted file mode 100644 index cf5bb70..0000000 --- a/doc/index.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> - -<!-- - - JSON Implementation for Ruby - - --> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <title>JSON Implementation for Ruby</title> - <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> -</head> -<frameset rows="20%, 80%"> - <frameset cols="25%,35%,45%"> - <frame src="fr_file_index.html" title="Files" name="Files" /> - <frame src="fr_class_index.html" name="Classes" /> - <frame src="fr_method_index.html" name="Methods" /> - </frameset> - <frame src="files/README.html" name="docwin" /> -</frameset> -</html>
\ No newline at end of file diff --git a/doc/rdoc-style.css b/doc/rdoc-style.css deleted file mode 100644 index 44c7b3d..0000000 --- a/doc/rdoc-style.css +++ /dev/null @@ -1,208 +0,0 @@ - -body { - font-family: Verdana,Arial,Helvetica,sans-serif; - font-size: 90%; - margin: 0; - margin-left: 40px; - padding: 0; - background: white; -} - -h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; } -h1 { font-size: 150%; } -h2,h3,h4 { margin-top: 1em; } - -a { background: #eef; color: #039; text-decoration: none; } -a:hover { background: #039; color: #eef; } - -/* Override the base stylesheet's Anchor inside a table cell */ -td > a { - background: transparent; - color: #039; - text-decoration: none; -} - -/* and inside a section title */ -.section-title > a { - background: transparent; - color: #eee; - text-decoration: none; -} - -/* === Structural elements =================================== */ - -div#index { - margin: 0; - margin-left: -40px; - padding: 0; - font-size: 90%; -} - - -div#index a { - margin-left: 0.7em; -} - -div#index .section-bar { - margin-left: 0px; - padding-left: 0.7em; - background: #ccc; - font-size: small; -} - - -div#classHeader, div#fileHeader { - width: auto; - color: white; - padding: 0.5em 1.5em 0.5em 1.5em; - margin: 0; - margin-left: -40px; - border-bottom: 3px solid #006; -} - -div#classHeader a, div#fileHeader a { - background: inherit; - color: white; -} - -div#classHeader td, div#fileHeader td { - background: inherit; - color: white; -} - - -div#fileHeader { - background: #057; -} - -div#classHeader { - background: #048; -} - - -.class-name-in-header { - font-size: 180%; - font-weight: bold; -} - - -div#bodyContent { - padding: 0 1.5em 0 1.5em; -} - -div#description { - padding: 0.5em 1.5em; - background: #efefef; - border: 1px dotted #999; -} - -div#description h1,h2,h3,h4,h5,h6 { - color: #125;; - background: transparent; -} - -div#validator-badges { - text-align: center; -} -div#validator-badges img { border: 0; } - -div#copyright { - color: #333; - background: #efefef; - font: 0.75em sans-serif; - margin-top: 5em; - margin-bottom: 0; - padding: 0.5em 2em; -} - - -/* === Classes =================================== */ - -table.header-table { - color: white; - font-size: small; -} - -.type-note { - font-size: small; - color: #DEDEDE; -} - -.xxsection-bar { - background: #eee; - color: #333; - padding: 3px; -} - -.section-bar { - color: #333; - border-bottom: 1px solid #999; - margin-left: -20px; -} - - -.section-title { - background: #79a; - color: #eee; - padding: 3px; - margin-top: 2em; - margin-left: -30px; - border: 1px solid #999; -} - -.top-aligned-row { vertical-align: top } -.bottom-aligned-row { vertical-align: bottom } - -/* --- Context section classes ----------------------- */ - -.context-row { } -.context-item-name { font-family: monospace; font-weight: bold; color: black; } -.context-item-value { font-size: small; color: #448; } -.context-item-desc { color: #333; padding-left: 2em; } - -/* --- Method classes -------------------------- */ -.method-detail { - background: #efefef; - padding: 0; - margin-top: 0.5em; - margin-bottom: 1em; - border: 1px dotted #ccc; -} -.method-heading { - color: black; - background: #ccc; - border-bottom: 1px solid #666; - padding: 0.2em 0.5em 0 0.5em; -} -.method-signature { color: black; background: inherit; } -.method-name { font-weight: bold; } -.method-args { font-style: italic; } -.method-description { padding: 0 0.5em 0 0.5em; } - -/* --- Source code sections -------------------- */ - -a.source-toggle { font-size: 90%; } -div.method-source-code { - background: #262626; - color: #ffdead; - margin: 1em; - padding: 0.5em; - border: 1px dashed #999; - overflow: hidden; -} - -div.method-source-code pre { color: #ffdead; overflow: hidden; } - -/* --- Ruby keyword styles --------------------- */ - -.standalone-code { background: #221111; color: #ffdead; overflow: hidden; } - -.ruby-constant { color: #7fffd4; background: transparent; } -.ruby-keyword { color: #00ffff; background: transparent; } -.ruby-ivar { color: #eedd82; background: transparent; } -.ruby-operator { color: #00ffee; background: transparent; } -.ruby-identifier { color: #ffdead; background: transparent; } -.ruby-node { color: #ffa07a; background: transparent; } -.ruby-comment { color: #b22222; font-weight: bold; background: transparent; } -.ruby-regexp { color: #ffa07a; background: transparent; } -.ruby-value { color: #7fffd4; background: transparent; }
\ No newline at end of file |