summaryrefslogtreecommitdiff
path: root/doc/classes/JSON/Ext/Generator/GeneratorMethods/TrueClass.src/M000113.html
blob: e039a641095c930839b6c953eae38332e8579ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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, &quot;02&quot;, &amp;state, &amp;depth);
    state = cState_from_state_s(cState, state);
    return cState_partial_generate(state, self, depth);
}</pre>
</body>
</html>