summaryrefslogtreecommitdiff
path: root/doc/classes/Date.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/Date.html')
-rw-r--r--doc/classes/Date.html143
1 files changed, 143 insertions, 0 deletions
diff --git a/doc/classes/Date.html b/doc/classes/Date.html
new file mode 100644
index 0000000..1025f72
--- /dev/null
+++ b/doc/classes/Date.html
@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Date</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
+ <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
+ <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
+ <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
+ <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
+</head>
+
+<body>
+ <div class="banner">
+ <h1>
+ <span class="type">Class</span>
+ Date
+
+ <span class="parent">&lt;
+
+ <a href="Object.html">Object</a>
+
+ </span>
+
+ </h1>
+ <ul class="files">
+
+ <li><a href="../files/lib/json/add/core_rb.html">lib/json/add/core.rb</a></li>
+
+ </ul>
+ </div>
+ <div id="bodyContent">
+ <div id="content">
+
+
+
+
+
+
+
+
+
+ <div class="sectiontitle">Methods</div>
+ <dl class="methods">
+
+ <dt>J</dt>
+ <dd>
+ <ul>
+
+ <li><a href="#method-c-json_create">json_create</a></li>
+
+ </ul>
+ </dd>
+
+ <dt>T</dt>
+ <dd>
+ <ul>
+
+ <li><a href="#method-i-to_json">to_json</a></li>
+
+ </ul>
+ </dd>
+
+ </dl>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <div class="sectiontitle">Class Public methods</div>
+
+ <div class="method">
+ <div class="title" id="method-c-json_create">
+
+ <a name="method-c-json_create"></a><b>json_create</b>(object)
+
+ </div>
+
+
+
+
+ <div class="sourcecode">
+ <p class="source-link">
+ Source: <a href="javascript:toggleSource('method-c-json_create_source')" id="l_method-c-json_create_source">show</a>
+
+ </p>
+ <div id="method-c-json_create_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 45</span>
+45: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">json_create</span>(<span class="ruby-identifier">object</span>)
+46: <span class="ruby-identifier">civil</span>(*<span class="ruby-identifier">object</span>.<span class="ruby-identifier">values_at</span>(<span class="ruby-value str">'y'</span>, <span class="ruby-value str">'m'</span>, <span class="ruby-value str">'d'</span>, <span class="ruby-value str">'sg'</span>))
+47: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+
+ </div>
+
+ <div class="sectiontitle">Instance Public methods</div>
+
+ <div class="method">
+ <div class="title" id="method-i-to_json">
+
+ <a name="method-i-to_json"></a><b>to_json</b>(*args)
+
+ </div>
+
+
+
+
+ <div class="sourcecode">
+ <p class="source-link">
+ Source: <a href="javascript:toggleSource('method-i-to_json_source')" id="l_method-i-to_json_source">show</a>
+
+ </p>
+ <div id="method-i-to_json_source" class="dyn-source">
+ <pre> <span class="ruby-comment cmt"># File lib/json/add/core.rb, line 51</span>
+51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
+52: {
+53: <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">create_id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">name</span>,
+54: <span class="ruby-value str">'y'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">year</span>,
+55: <span class="ruby-value str">'m'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">month</span>,
+56: <span class="ruby-value str">'d'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">day</span>,
+57: <span class="ruby-value str">'sg'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">start</span>,
+58: }.<span class="ruby-identifier">to_json</span>(*<span class="ruby-identifier">args</span>)
+59: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+
+ </div>
+
+</div>
+ </div>
+ </body>
+</html> \ No newline at end of file