mack-localization 0.6.1.1 → 0.6.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/doc/classes/Mack/Localization/Configuration.html +118 -0
  2. data/doc/classes/Mack/Localization/ContentCache.html +111 -0
  3. data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +217 -0
  4. data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +237 -0
  5. data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +217 -0
  6. data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +218 -0
  7. data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +217 -0
  8. data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +217 -0
  9. data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +217 -0
  10. data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +153 -0
  11. data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +146 -0
  12. data/doc/classes/Mack/Localization/Errors/InvalidConfiguration.html +117 -0
  13. data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +153 -0
  14. data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +152 -0
  15. data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +153 -0
  16. data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +153 -0
  17. data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +152 -0
  18. data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +153 -0
  19. data/doc/classes/Mack/Localization/FormatEngineRegistry.html +245 -0
  20. data/doc/classes/Mack/Localization/Formatter.html +392 -0
  21. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +196 -0
  22. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +250 -0
  23. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +196 -0
  24. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +196 -0
  25. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +196 -0
  26. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +196 -0
  27. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +196 -0
  28. data/doc/classes/Mack/Localization/Translator.html +275 -0
  29. data/doc/classes/Mack/ViewHelpers/L10NHelpers/Context.html +278 -0
  30. data/doc/classes/Mack/ViewHelpers/L10NHelpers.html +402 -0
  31. data/doc/classes/Mack.html +194 -0
  32. data/doc/classes/Object.html +236 -0
  33. data/doc/created.rid +1 -0
  34. data/doc/files/README.html +107 -0
  35. data/doc/files/lib/mack-localization/configuration_rb.html +110 -0
  36. data/doc/files/lib/mack-localization/content_cache_rb.html +101 -0
  37. data/doc/files/lib/mack-localization/errors_rb.html +101 -0
  38. data/doc/files/lib/mack-localization/format_engine/df_engines/base_rb.html +101 -0
  39. data/doc/files/lib/mack-localization/format_engine/df_engines/bp_rb.html +101 -0
  40. data/doc/files/lib/mack-localization/format_engine/df_engines/de_rb.html +101 -0
  41. data/doc/files/lib/mack-localization/format_engine/df_engines/en_rb.html +101 -0
  42. data/doc/files/lib/mack-localization/format_engine/df_engines/es_rb.html +101 -0
  43. data/doc/files/lib/mack-localization/format_engine/df_engines/fr_rb.html +101 -0
  44. data/doc/files/lib/mack-localization/format_engine/df_engines/it_rb.html +101 -0
  45. data/doc/files/lib/mack-localization/format_engine/engine_registry_rb.html +101 -0
  46. data/doc/files/lib/mack-localization/format_engine/nc_engines/base_rb.html +101 -0
  47. data/doc/files/lib/mack-localization/format_engine/nc_engines/bp_rb.html +101 -0
  48. data/doc/files/lib/mack-localization/format_engine/nc_engines/de_rb.html +101 -0
  49. data/doc/files/lib/mack-localization/format_engine/nc_engines/en_rb.html +101 -0
  50. data/doc/files/lib/mack-localization/format_engine/nc_engines/es_rb.html +101 -0
  51. data/doc/files/lib/mack-localization/format_engine/nc_engines/fr_rb.html +101 -0
  52. data/doc/files/lib/mack-localization/format_engine/nc_engines/it_rb.html +101 -0
  53. data/doc/files/lib/mack-localization/formatter_rb.html +101 -0
  54. data/doc/files/lib/mack-localization/helpers/view_helpers/l10n_helpers_rb.html +101 -0
  55. data/doc/files/lib/mack-localization/translator_rb.html +101 -0
  56. data/doc/files/lib/mack-localization_rb.html +109 -0
  57. data/doc/fr_class_index.html +58 -0
  58. data/doc/fr_file_index.html +49 -0
  59. data/doc/fr_method_index.html +108 -0
  60. data/doc/index.html +24 -0
  61. data/doc/rdoc-style.css +208 -0
  62. metadata +63 -2
@@ -0,0 +1,152 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Mack::Localization::Errors::UnsupportedFeature</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Mack::Localization::Errors::UnsupportedFeature</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/mack-localization/errors_rb.html">
59
+ lib/mack-localization/errors.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ StandardError
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Raise this error if the method called is not yet implemented
84
+ </p>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+ <div id="method-list">
92
+ <h3 class="section-bar">Methods</h3>
93
+
94
+ <div class="name-list">
95
+ <a href="#M000039">new</a>&nbsp;&nbsp;
96
+ </div>
97
+ </div>
98
+
99
+ </div>
100
+
101
+
102
+ <!-- if includes -->
103
+
104
+ <div id="section">
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <!-- if method_list -->
114
+ <div id="methods">
115
+ <h3 class="section-bar">Public Class methods</h3>
116
+
117
+ <div id="method-M000039" class="method-detail">
118
+ <a name="M000039"></a>
119
+
120
+ <div class="method-heading">
121
+ <a href="#M000039" class="method-signature">
122
+ <span class="method-name">new</span><span class="method-args">(feature)</span>
123
+ </a>
124
+ </div>
125
+
126
+ <div class="method-description">
127
+ <p><a class="source-toggle" href="#"
128
+ onclick="toggleCode('M000039-source');return false;">[Source]</a></p>
129
+ <div class="method-source-code" id="M000039-source">
130
+ <pre>
131
+ <span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 29</span>
132
+ 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">feature</span>)
133
+ 30: <span class="ruby-keyword kw">super</span>(<span class="ruby-node">&quot;Feature: #{feature} is currently unsupported&quot;</span>)
134
+ 31: <span class="ruby-keyword kw">end</span>
135
+ </pre>
136
+ </div>
137
+ </div>
138
+ </div>
139
+
140
+
141
+ </div>
142
+
143
+
144
+ </div>
145
+
146
+
147
+ <div id="validator-badges">
148
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
149
+ </div>
150
+
151
+ </body>
152
+ </html>
@@ -0,0 +1,153 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Mack::Localization::Errors::UnsupportedLanguage</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Mack::Localization::Errors::UnsupportedLanguage</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/mack-localization/errors_rb.html">
59
+ lib/mack-localization/errors.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ StandardError
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Raise this error when caller specified unsupported language. Supported
84
+ language is defined in configuration as an array of language codes.
85
+ </p>
86
+
87
+ </div>
88
+
89
+
90
+ </div>
91
+
92
+ <div id="method-list">
93
+ <h3 class="section-bar">Methods</h3>
94
+
95
+ <div class="name-list">
96
+ <a href="#M000042">new</a>&nbsp;&nbsp;
97
+ </div>
98
+ </div>
99
+
100
+ </div>
101
+
102
+
103
+ <!-- if includes -->
104
+
105
+ <div id="section">
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ <!-- if method_list -->
115
+ <div id="methods">
116
+ <h3 class="section-bar">Public Class methods</h3>
117
+
118
+ <div id="method-M000042" class="method-detail">
119
+ <a name="M000042"></a>
120
+
121
+ <div class="method-heading">
122
+ <a href="#M000042" class="method-signature">
123
+ <span class="method-name">new</span><span class="method-args">(lang)</span>
124
+ </a>
125
+ </div>
126
+
127
+ <div class="method-description">
128
+ <p><a class="source-toggle" href="#"
129
+ onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
130
+ <div class="method-source-code" id="M000042-source">
131
+ <pre>
132
+ <span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 10</span>
133
+ 10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">lang</span>)
134
+ 11: <span class="ruby-keyword kw">super</span>(<span class="ruby-node">&quot;Locale: #{lang} is not currently supported.&quot;</span>)
135
+ 12: <span class="ruby-keyword kw">end</span>
136
+ </pre>
137
+ </div>
138
+ </div>
139
+ </div>
140
+
141
+
142
+ </div>
143
+
144
+
145
+ </div>
146
+
147
+
148
+ <div id="validator-badges">
149
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
150
+ </div>
151
+
152
+ </body>
153
+ </html>
@@ -0,0 +1,245 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Mack::Localization::FormatEngineRegistry</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Mack::Localization::FormatEngineRegistry</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/mack-localization/format_engine/engine_registry_rb.html">
59
+ lib/mack-localization/format_engine/engine_registry.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="../../Object.html">
69
+ Object
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000072">get_engine</a>&nbsp;&nbsp;
92
+ <a href="#M000070">new</a>&nbsp;&nbsp;
93
+ <a href="#M000071">register</a>&nbsp;&nbsp;
94
+ </div>
95
+ </div>
96
+
97
+ </div>
98
+
99
+
100
+ <!-- if includes -->
101
+ <div id="includes">
102
+ <h3 class="section-bar">Included Modules</h3>
103
+
104
+ <div id="includes-list">
105
+ <span class="include-name">Singleton</span>
106
+ </div>
107
+ </div>
108
+
109
+ <div id="section">
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ <!-- if method_list -->
119
+ <div id="methods">
120
+ <h3 class="section-bar">Public Class methods</h3>
121
+
122
+ <div id="method-M000070" class="method-detail">
123
+ <a name="M000070"></a>
124
+
125
+ <div class="method-heading">
126
+ <a href="#M000070" class="method-signature">
127
+ <span class="method-name">new</span><span class="method-args">()</span>
128
+ </a>
129
+ </div>
130
+
131
+ <div class="method-description">
132
+ <p><a class="source-toggle" href="#"
133
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
134
+ <div class="method-source-code" id="M000070-source">
135
+ <pre>
136
+ <span class="ruby-comment cmt"># File lib/mack-localization/format_engine/engine_registry.rb, line 6</span>
137
+ 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
138
+ 7: <span class="ruby-comment cmt"># { </span>
139
+ 8: <span class="ruby-comment cmt"># :en =&gt; {:date =&gt; {...}, :num_currency =&gt; {...}},</span>
140
+ 9: <span class="ruby-comment cmt"># :fr =&gt; ...</span>
141
+ 10: <span class="ruby-comment cmt"># }</span>
142
+ 11: <span class="ruby-ivar">@reg</span> = {}
143
+ 12: <span class="ruby-keyword kw">end</span>
144
+ </pre>
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+ <h3 class="section-bar">Public Instance methods</h3>
150
+
151
+ <div id="method-M000072" class="method-detail">
152
+ <a name="M000072"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="#M000072" class="method-signature">
156
+ <span class="method-name">get_engine</span><span class="method-args">(lang, type)</span>
157
+ </a>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+ <p>
162
+ Retrieve a registered engine
163
+ </p>
164
+ <p>
165
+ params:
166
+ </p>
167
+ <pre>
168
+ lang - the language
169
+ type - either l10n_formatter.date_format_registry_key or l10n_formatter.currency_format_registry_key
170
+ </pre>
171
+ <p>
172
+ returns the registered engine, or nil if no engine is registered for that
173
+ type/lang
174
+ </p>
175
+ <p><a class="source-toggle" href="#"
176
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
177
+ <div class="method-source-code" id="M000072-source">
178
+ <pre>
179
+ <span class="ruby-comment cmt"># File lib/mack-localization/format_engine/engine_registry.rb, line 42</span>
180
+ 42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_engine</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">type</span>)
181
+ 43: <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">lang</span>.<span class="ruby-identifier">to_sym</span>
182
+ 44: <span class="ruby-identifier">type</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_sym</span>
183
+ 45: <span class="ruby-identifier">type_reg</span> = <span class="ruby-ivar">@reg</span>[<span class="ruby-identifier">lang</span>]
184
+ 46: <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">type_reg</span>.<span class="ruby-identifier">nil?</span>
185
+ 47: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">type_reg</span>[<span class="ruby-identifier">type</span>]
186
+ 48: <span class="ruby-keyword kw">end</span>
187
+ </pre>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <div id="method-M000071" class="method-detail">
193
+ <a name="M000071"></a>
194
+
195
+ <div class="method-heading">
196
+ <a href="#M000071" class="method-signature">
197
+ <span class="method-name">register</span><span class="method-args">(lang, type, obj, overwrite = false)</span>
198
+ </a>
199
+ </div>
200
+
201
+ <div class="method-description">
202
+ <p>
203
+ Register a format engine
204
+ </p>
205
+ <p>
206
+ params:
207
+ </p>
208
+ <pre>
209
+ lang - the language of the engine
210
+ type - either l10n_formatter.date_format_registry_key or l10n_formatter.currency_format_registry_key
211
+ overwrite - whether or not to overwrite the formatter if it's already registered. default == false
212
+ </pre>
213
+ <p><a class="source-toggle" href="#"
214
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
215
+ <div class="method-source-code" id="M000071-source">
216
+ <pre>
217
+ <span class="ruby-comment cmt"># File lib/mack-localization/format_engine/engine_registry.rb, line 22</span>
218
+ 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">obj</span>, <span class="ruby-identifier">overwrite</span> = <span class="ruby-keyword kw">false</span>)
219
+ 23: <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">lang</span>.<span class="ruby-identifier">to_sym</span>
220
+ 24: <span class="ruby-identifier">type</span> = <span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_sym</span>
221
+ 25: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@reg</span>[<span class="ruby-identifier">lang</span>].<span class="ruby-identifier">nil?</span>
222
+ 26: <span class="ruby-ivar">@reg</span>[<span class="ruby-identifier">lang</span>] = {<span class="ruby-identifier">type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">obj</span>}
223
+ 27: <span class="ruby-keyword kw">else</span>
224
+ 28: <span class="ruby-identifier">type_reg</span> = <span class="ruby-ivar">@reg</span>[<span class="ruby-identifier">lang</span>]
225
+ 29: <span class="ruby-identifier">type_reg</span>[<span class="ruby-identifier">type</span>] = <span class="ruby-identifier">obj</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type_reg</span>[<span class="ruby-identifier">type</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-keyword kw">or</span> (<span class="ruby-identifier">overwrite</span> <span class="ruby-keyword kw">and</span> <span class="ruby-operator">!</span><span class="ruby-identifier">type_reg</span>[<span class="ruby-identifier">type</span>].<span class="ruby-identifier">nil?</span>)
226
+ 30: <span class="ruby-keyword kw">end</span>
227
+ 31: <span class="ruby-keyword kw">end</span>
228
+ </pre>
229
+ </div>
230
+ </div>
231
+ </div>
232
+
233
+
234
+ </div>
235
+
236
+
237
+ </div>
238
+
239
+
240
+ <div id="validator-badges">
241
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
242
+ </div>
243
+
244
+ </body>
245
+ </html>