doc/classes/Locale.html in gettext-1.91.0 vs doc/classes/Locale.html in gettext-1.92.0

- old
+ new

@@ -113,27 +113,27 @@ <div id="method-list"> <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000082">cgi</a>&nbsp;&nbsp; - <a href="#M000081">cgi=</a>&nbsp;&nbsp; - <a href="#M000093">charset</a>&nbsp;&nbsp; - <a href="#M000095">clear</a>&nbsp;&nbsp; - <a href="#M000092">codeset</a>&nbsp;&nbsp; - <a href="#M000087">current</a>&nbsp;&nbsp; - <a href="#M000089">current=</a>&nbsp;&nbsp; - <a href="#M000094">current_charset</a>&nbsp;&nbsp; - <a href="#M000086">default</a>&nbsp;&nbsp; - <a href="#M000084">default=</a>&nbsp;&nbsp; - <a href="#M000091">get</a>&nbsp;&nbsp; - <a href="#M000090">set</a>&nbsp;&nbsp; - <a href="#M000080">set_cgi</a>&nbsp;&nbsp; - <a href="#M000088">set_current</a>&nbsp;&nbsp; - <a href="#M000083">set_default</a>&nbsp;&nbsp; - <a href="#M000085">system</a>&nbsp;&nbsp; - <a href="#M000096">system_module</a>&nbsp;&nbsp; + <a href="#M000028">cgi</a>&nbsp;&nbsp; + <a href="#M000027">cgi=</a>&nbsp;&nbsp; + <a href="#M000039">charset</a>&nbsp;&nbsp; + <a href="#M000041">clear</a>&nbsp;&nbsp; + <a href="#M000038">codeset</a>&nbsp;&nbsp; + <a href="#M000033">current</a>&nbsp;&nbsp; + <a href="#M000035">current=</a>&nbsp;&nbsp; + <a href="#M000040">current_charset</a>&nbsp;&nbsp; + <a href="#M000032">default</a>&nbsp;&nbsp; + <a href="#M000030">default=</a>&nbsp;&nbsp; + <a href="#M000037">get</a>&nbsp;&nbsp; + <a href="#M000036">set</a>&nbsp;&nbsp; + <a href="#M000026">set_cgi</a>&nbsp;&nbsp; + <a href="#M000034">set_current</a>&nbsp;&nbsp; + <a href="#M000029">set_default</a>&nbsp;&nbsp; + <a href="#M000031">system</a>&nbsp;&nbsp; + <a href="#M000042">system_module</a>&nbsp;&nbsp; </div> </div> </div> @@ -163,15 +163,15 @@ <!-- if method_list --> <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000082" class="method-detail"> - <a name="M000082"></a> + <div id="method-M000028" class="method-detail"> + <a name="M000028"></a> <div class="method-heading"> - <a href="#M000082" class="method-signature"> + <a href="#M000028" class="method-signature"> <span class="method-name">cgi</span><span class="method-args">()</span> </a> </div> <div class="method-description"> @@ -182,27 +182,27 @@ <li>Returns: the CGI object </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000082-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000082-source"> + onclick="toggleCode('M000028-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000028-source"> <pre> <span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 100</span> 100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi</span> 101: <span class="ruby-ivar">@@locale_system_module</span>.<span class="ruby-identifier">cgi</span> 102: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000081" class="method-detail"> - <a name="M000081"></a> + <div id="method-M000027" class="method-detail"> + <a name="M000027"></a> <div class="method-heading"> - <a href="#M000081" class="method-signature"> + <a href="#M000027" class="method-signature"> <span class="method-name">cgi=</span><span class="method-args">(cgi_)</span> </a> </div> <div class="method-description"> @@ -216,12 +216,12 @@ <li>Returns: cgi_ </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000081-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000081-source"> + onclick="toggleCode('M000027-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000027-source"> <pre> <span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 93</span> 93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cgi=</span>(<span class="ruby-identifier">cgi_</span>) 94: <span class="ruby-identifier">set_cgi</span>(<span class="ruby-identifier">cgi_</span>) 95: <span class="ruby-identifier">cgi_</span> @@ -229,49 +229,49 @@ </pre> </div> </div> </div> - <div id="method-M000093" class="method-detail"> - <a name="M000093"></a> + <div id="method-M000039" class="method-detail"> + <a name="M000039"></a> <div class="method-heading"> - <a href="#M000093" class="method-signature"> + <a href="#M000039" class="method-signature"> <span class="method-name">charset</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Gets the <a href="Locale.html#M000093">charset</a> of the <a -href="Locale.html#M000087">current</a> locale. +Gets the <a href="Locale.html#M000039">charset</a> of the <a +href="Locale.html#M000033">current</a> locale. </p> <ul> -<li>Returns: the <a href="Locale.html#M000093">charset</a> of the <a -href="Locale.html#M000087">current</a> locale (<a +<li>Returns: the <a href="Locale.html#M000039">charset</a> of the <a +href="Locale.html#M000033">current</a> locale (<a href="String.html">String</a>) </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000093-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000093-source"> + onclick="toggleCode('M000039-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000039-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 161</span> 161: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">charset</span> 162: <span class="ruby-identifier">codeset</span> 163: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000095" class="method-detail"> - <a name="M000095"></a> + <div id="method-M000041" class="method-detail"> + <a name="M000041"></a> <div class="method-heading"> - <a href="#M000095" class="method-signature"> + <a href="#M000041" class="method-signature"> <span class="method-name">clear</span><span class="method-args">()</span> </a> </div> <div class="method-description"> @@ -282,12 +282,12 @@ <li>Returns: self </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000095-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000095-source"> + onclick="toggleCode('M000041-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000041-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 172</span> 172: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear</span> 173: <span class="ruby-identifier">set</span>(<span class="ruby-keyword kw">nil</span>) 174: <span class="ruby-identifier">set_current</span>(<span class="ruby-keyword kw">nil</span>) @@ -296,73 +296,73 @@ </pre> </div> </div> </div> - <div id="method-M000092" class="method-detail"> - <a name="M000092"></a> + <div id="method-M000038" class="method-detail"> + <a name="M000038"></a> <div class="method-heading"> - <a href="#M000092" class="method-signature"> + <a href="#M000038" class="method-signature"> <span class="method-name">codeset</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Same as <a href="Locale.html#M000093">charset</a>. Gets the <a -href="Locale.html#M000093">charset</a> of the <a -href="Locale.html#M000087">current</a> locale. +Same as <a href="Locale.html#M000039">charset</a>. Gets the <a +href="Locale.html#M000039">charset</a> of the <a +href="Locale.html#M000033">current</a> locale. </p> <ul> -<li>Returns: the <a href="Locale.html#M000093">charset</a> of the <a -href="Locale.html#M000087">current</a> locale (<a +<li>Returns: the <a href="Locale.html#M000039">charset</a> of the <a +href="Locale.html#M000033">current</a> locale (<a href="String.html">String</a>) </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000092-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000092-source"> + onclick="toggleCode('M000038-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000038-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 155</span> 155: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">codeset</span> 156: <span class="ruby-identifier">current</span>.<span class="ruby-identifier">charset</span> 157: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000087" class="method-detail"> - <a name="M000087"></a> + <div id="method-M000033" class="method-detail"> + <a name="M000033"></a> <div class="method-heading"> - <a href="#M000087" class="method-signature"> + <a href="#M000033" class="method-signature"> <span class="method-name">current</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Gets the <a href="Locale.html#M000087">current</a> locale (<a +Gets the <a href="Locale.html#M000033">current</a> locale (<a href="Locale/Object.html">Locale::Object</a>). </p> <p> -If the <a href="Locale.html#M000087">current</a> locale is not <a -href="Locale.html#M000090">set</a>, this returns <a -href="Locale.html#M000086">default</a> locale. +If the <a href="Locale.html#M000033">current</a> locale is not <a +href="Locale.html#M000036">set</a>, this returns <a +href="Locale.html#M000032">default</a> locale. </p> <ul> -<li>Returns: the <a href="Locale.html#M000087">current</a> locale (<a +<li>Returns: the <a href="Locale.html#M000033">current</a> locale (<a href="Locale/Object.html">Locale::Object</a>). </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000087-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000087-source"> + onclick="toggleCode('M000033-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000033-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 72</span> 72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current</span> 73: <span class="ruby-ivar">@@current</span> = <span class="ruby-identifier">default</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@current</span> 74: <span class="ruby-ivar">@@current</span> @@ -370,40 +370,40 @@ </pre> </div> </div> </div> - <div id="method-M000089" class="method-detail"> - <a name="M000089"></a> + <div id="method-M000035" class="method-detail"> + <a name="M000035"></a> <div class="method-heading"> - <a href="#M000089" class="method-signature"> + <a href="#M000035" class="method-signature"> <span class="method-name">current=</span><span class="method-args">(lang)</span> </a> </div> <div class="method-description"> <p> -Sets a <a href="Locale.html#M000087">current</a> locale. This is a single -argument version of <a href="Locale.html#M000088">Locale.set_current</a>. +Sets a <a href="Locale.html#M000033">current</a> locale. This is a single +argument version of <a href="Locale.html#M000034">Locale.set_current</a>. </p> <ul> <li>lang: the <a href="Locale/Object.html">Locale::Object</a> </li> -<li>Returns: the <a href="Locale.html#M000087">current</a> locale (<a +<li>Returns: the <a href="Locale.html#M000033">current</a> locale (<a href="Locale/Object.html">Locale::Object</a>). <pre> Locale.current = &quot;ja_JP.eucJP&quot; Locale.current = Locale::Object.new(&quot;ja&quot;, &quot;JP&quot;, &quot;eucJP&quot;) </pre> </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000089-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000089-source"> + onclick="toggleCode('M000035-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000035-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 111</span> 111: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current=</span>(<span class="ruby-identifier">lang</span>) 112: <span class="ruby-identifier">set_current</span>(<span class="ruby-identifier">lang</span>) 113: <span class="ruby-ivar">@@current</span> @@ -411,107 +411,107 @@ </pre> </div> </div> </div> - <div id="method-M000094" class="method-detail"> - <a name="M000094"></a> + <div id="method-M000040" class="method-detail"> + <a name="M000040"></a> <div class="method-heading"> - <a href="#M000094" class="method-signature"> + <a href="#M000040" class="method-signature"> <span class="method-name">current_charset</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Same as <a href="Locale.html#M000092">codeset</a>. Returns the <a -href="Locale.html#M000093">charset</a> of the <a -href="Locale.html#M000087">current</a> locale. +Same as <a href="Locale.html#M000038">codeset</a>. Returns the <a +href="Locale.html#M000039">charset</a> of the <a +href="Locale.html#M000033">current</a> locale. </p> <ul> -<li>Returns: the <a href="Locale.html#M000093">charset</a> of the <a -href="Locale.html#M000087">current</a> locale (<a +<li>Returns: the <a href="Locale.html#M000039">charset</a> of the <a +href="Locale.html#M000033">current</a> locale (<a href="String.html">String</a>) </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000094-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000094-source"> + onclick="toggleCode('M000040-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000040-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 166</span> 166: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_charset</span> 167: <span class="ruby-identifier">codeset</span> 168: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000086" class="method-detail"> - <a name="M000086"></a> + <div id="method-M000032" class="method-detail"> + <a name="M000032"></a> <div class="method-heading"> - <a href="#M000086" class="method-signature"> + <a href="#M000032" class="method-signature"> <span class="method-name">default</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Gets the <a href="Locale.html#M000086">default</a> locale. +Gets the <a href="Locale.html#M000032">default</a> locale. </p> <p> -If the <a href="Locale.html#M000086">default</a> locale not <a -href="Locale.html#M000090">set</a>, this returns <a -href="Locale.html#M000085">system</a> locale. +If the <a href="Locale.html#M000032">default</a> locale not <a +href="Locale.html#M000036">set</a>, this returns <a +href="Locale.html#M000031">system</a> locale. </p> <ul> -<li>Returns: the <a href="Locale.html#M000086">default</a> locale (<a +<li>Returns: the <a href="Locale.html#M000032">default</a> locale (<a href="Locale/Object.html">Locale::Object</a>). </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000086-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000086-source"> + onclick="toggleCode('M000032-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000032-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 64</span> 64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default</span> 65: <span class="ruby-ivar">@@default</span> <span class="ruby-operator">?</span> <span class="ruby-ivar">@@default</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">system</span> 66: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000084" class="method-detail"> - <a name="M000084"></a> + <div id="method-M000030" class="method-detail"> + <a name="M000030"></a> <div class="method-heading"> - <a href="#M000084" class="method-signature"> + <a href="#M000030" class="method-signature"> <span class="method-name">default=</span><span class="method-args">(locale)</span> </a> </div> <div class="method-description"> <p> -Same as <a href="Locale.html#M000083">Locale.set_default</a>. +Same as <a href="Locale.html#M000029">Locale.set_default</a>. </p> <ul> -<li>locale: the <a href="Locale.html#M000086">default</a> locale (<a +<li>locale: the <a href="Locale.html#M000032">default</a> locale (<a href="Locale/Object.html">Locale::Object</a>). </li> <li>Returns: locale. </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000084-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000084-source"> + onclick="toggleCode('M000030-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000030-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 49</span> 49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default=</span>(<span class="ruby-identifier">locale</span>) 50: <span class="ruby-identifier">set_default</span>(<span class="ruby-identifier">locale</span>) 51: <span class="ruby-ivar">@@default</span> @@ -519,34 +519,34 @@ </pre> </div> </div> </div> - <div id="method-M000091" class="method-detail"> - <a name="M000091"></a> + <div id="method-M000037" class="method-detail"> + <a name="M000037"></a> <div class="method-heading"> - <a href="#M000091" class="method-signature"> + <a href="#M000037" class="method-signature"> <span class="method-name">current<br /> get<br /> </span> </a> </div> <div class="method-description"> <ul> -<li>Returns: the <a href="Locale.html#M000087">current</a> locale (<a +<li>Returns: the <a href="Locale.html#M000033">current</a> locale (<a href="Locale/Object.html">Locale::Object</a>). </li> </ul> <p> <b>Notice</b>: lctype is deprecated. Use this with no parameter instead. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000091-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000091-source"> + onclick="toggleCode('M000037-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000037-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 148</span> 148: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span> 149: <span class="ruby-ivar">@@current</span> = <span class="ruby-identifier">default</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@@current</span> 150: <span class="ruby-ivar">@@current</span> @@ -554,15 +554,15 @@ </pre> </div> </div> </div> - <div id="method-M000090" class="method-detail"> - <a name="M000090"></a> + <div id="method-M000036" class="method-detail"> + <a name="M000036"></a> <div class="method-heading"> - <a href="#M000090" class="method-signature"> + <a href="#M000036" class="method-signature"> <span class="method-name">set(lang)<br /> set(lang, country = nil, charset = nil)<br /> </span> </a> </div> @@ -574,31 +574,31 @@ </li> <li>country: country as <a href="String.html">String</a> or nil </li> -<li><a href="Locale.html#M000093">charset</a>: <a -href="Locale.html#M000093">charset</a> as <a href="String.html">String</a> +<li><a href="Locale.html#M000039">charset</a>: <a +href="Locale.html#M000039">charset</a> as <a href="String.html">String</a> or nil </li> <li>Returns: a <a href="Locale/Object.html">Locale::Object</a>. </li> </ul> <p> -Sets a <a href="Locale.html#M000086">default</a> locale. This function is -an alias of <a href="Locale.html#M000083">Locale.set_default</a> with -calling <a href="Locale.html#M000088">set_current</a>(nil). +Sets a <a href="Locale.html#M000032">default</a> locale. This function is +an alias of <a href="Locale.html#M000029">Locale.set_default</a> with +calling <a href="Locale.html#M000034">set_current</a>(nil). </p> <p> -<b>Notice</b>: <a href="Locale.html#M000090">Locale.set</a>(lctype, locale) +<b>Notice</b>: <a href="Locale.html#M000036">Locale.set</a>(lctype, locale) is deprecated. </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000090-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000090-source"> + onclick="toggleCode('M000036-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000036-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 129</span> 129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">country</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">charset</span> = <span class="ruby-keyword kw">nil</span>) 130: <span class="ruby-identifier">set_current</span>(<span class="ruby-keyword kw">nil</span>) 131: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lang</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">String</span> @@ -613,15 +613,15 @@ </pre> </div> </div> </div> - <div id="method-M000080" class="method-detail"> - <a name="M000080"></a> + <div id="method-M000026" class="method-detail"> + <a name="M000026"></a> <div class="method-heading"> - <a href="#M000080" class="method-signature"> + <a href="#M000026" class="method-signature"> <span class="method-name">set_cgi</span><span class="method-args">(cgi_)</span> </a> </div> <div class="method-description"> @@ -635,12 +635,12 @@ <li>Returns: self </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000080-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000080-source"> + onclick="toggleCode('M000026-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000026-source"> <pre> <span class="ruby-comment cmt"># File lib/locale/cgi.rb, line 85</span> 85: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_cgi</span>(<span class="ruby-identifier">cgi_</span>) 86: <span class="ruby-ivar">@@locale_system_module</span>.<span class="ruby-identifier">set_cgi</span>(<span class="ruby-identifier">cgi_</span>) 87: <span class="ruby-keyword kw">self</span> @@ -648,39 +648,39 @@ </pre> </div> </div> </div> - <div id="method-M000088" class="method-detail"> - <a name="M000088"></a> + <div id="method-M000034" class="method-detail"> + <a name="M000034"></a> <div class="method-heading"> - <a href="#M000088" class="method-signature"> + <a href="#M000034" class="method-signature"> <span class="method-name">set_current</span><span class="method-args">(lang, country = nil, charset = nil)</span> </a> </div> <div class="method-description"> <p> -Sets a locale as the <a href="Locale.html#M000087">current</a> locale. +Sets a locale as the <a href="Locale.html#M000033">current</a> locale. </p> <p> -This returns the <a href="Locale.html#M000087">current</a> <a +This returns the <a href="Locale.html#M000033">current</a> <a href="Locale/Object.html">Locale::Object</a>. </p> <ul> <li>lang: <a href="Locale/Object.html">Locale::Object</a> or locale name(<a href="String.html">String</a>), or language name. </li> <li>country: the country code(<a href="String.html">String</a>) </li> -<li><a href="Locale.html#M000093">charset</a>: the <a -href="Locale.html#M000093">charset</a>(override the <a -href="Locale.html#M000093">charset</a> even if the locale name has <a -href="Locale.html#M000093">charset</a>). +<li><a href="Locale.html#M000039">charset</a>: the <a +href="Locale.html#M000039">charset</a>(override the <a +href="Locale.html#M000039">charset</a> even if the locale name has <a +href="Locale.html#M000039">charset</a>). </li> <li>Returns: self <pre> @@ -691,12 +691,12 @@ Locale.set_current(Locale::Object.new(&quot;ja&quot;, &quot;JP&quot;, &quot;eucJP&quot;)) </pre> </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000088-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000088-source"> + onclick="toggleCode('M000034-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000034-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 90</span> 90: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_current</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">country</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">charset</span> = <span class="ruby-keyword kw">nil</span>) 91: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">lang</span> <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span> 92: <span class="ruby-ivar">@@current</span> = <span class="ruby-keyword kw">nil</span> @@ -713,36 +713,36 @@ </pre> </div> </div> </div> - <div id="method-M000083" class="method-detail"> - <a name="M000083"></a> + <div id="method-M000029" class="method-detail"> + <a name="M000029"></a> <div class="method-heading"> - <a href="#M000083" class="method-signature"> + <a href="#M000029" class="method-signature"> <span class="method-name">set_default</span><span class="method-args">(locale)</span> </a> </div> <div class="method-description"> <p> -Sets the <a href="Locale.html#M000086">default</a> locale (<a +Sets the <a href="Locale.html#M000032">default</a> locale (<a href="Locale/Object.html">Locale::Object</a> or <a href="String.html">String</a>(such as ja_JP.eucJP)). </p> <ul> -<li>locale: the <a href="Locale.html#M000086">default</a> locale +<li>locale: the <a href="Locale.html#M000032">default</a> locale </li> <li>Returns: self. </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000083-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000083-source"> + onclick="toggleCode('M000029-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000029-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 32</span> 32: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_default</span>(<span class="ruby-identifier">locale</span>) 33: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span> 34: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">locale</span>.<span class="ruby-identifier">kind_of?</span> <span class="ruby-constant">Locale</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span> @@ -759,63 +759,63 @@ </pre> </div> </div> </div> - <div id="method-M000085" class="method-detail"> - <a name="M000085"></a> + <div id="method-M000031" class="method-detail"> + <a name="M000031"></a> <div class="method-heading"> - <a href="#M000085" class="method-signature"> + <a href="#M000031" class="method-signature"> <span class="method-name">system</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Gets the <a href="Locale.html#M000085">system</a> locale. +Gets the <a href="Locale.html#M000031">system</a> locale. </p> <ul> -<li>Returns: the <a href="Locale.html#M000085">system</a> locale (<a +<li>Returns: the <a href="Locale.html#M000031">system</a> locale (<a href="Locale/Object.html">Locale::Object</a>). </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000085-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000085-source"> + onclick="toggleCode('M000031-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000031-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 56</span> 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system</span> 57: <span class="ruby-ivar">@@locale_system_module</span>.<span class="ruby-identifier">system</span> 58: <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000096" class="method-detail"> - <a name="M000096"></a> + <div id="method-M000042" class="method-detail"> + <a name="M000042"></a> <div class="method-heading"> - <a href="#M000096" class="method-signature"> + <a href="#M000042" class="method-signature"> <span class="method-name">system_module</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -Gets the <a href="Locale.html#M000087">current</a> <a -href="Locale.html#M000085">system</a> module. This is used for debugging. +Gets the <a href="Locale.html#M000033">current</a> <a +href="Locale.html#M000031">system</a> module. This is used for debugging. </p> <ul> -<li>Returns: the <a href="Locale.html#M000085">system</a> module. +<li>Returns: the <a href="Locale.html#M000031">system</a> module. </li> </ul> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000096-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000096-source"> + onclick="toggleCode('M000042-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000042-source"> <pre> <span class="ruby-comment cmt"># File lib/locale.rb, line 180</span> 180: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">system_module</span> 181: <span class="ruby-ivar">@@locale_system_module</span> 182: <span class="ruby-keyword kw">end</span> \ No newline at end of file