inochi 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,230 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
7
+ <link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
8
+
9
+ <script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
10
+ <script src="../app.js" type="text/javascript" charset="utf-8"></script>
11
+ <title>Module: Inochi::Manual</title>
12
+ </head>
13
+ <body>
14
+ <div id="content">
15
+ <div class="section module Inochi_Manual">
16
+ <h1 class="title">Module: Inochi::Manual</h1>
17
+ <div class="section constants">
18
+
19
+ </div> <div class="section visibilitygroup public">
20
+ <h1>Public Visibility</h1>
21
+ <div class="section methodsummary instance public">
22
+ <h1>Public Instance Method Summary</h1>
23
+ <table class="summary">
24
+
25
+ <tr>
26
+ <th class="signature">
27
+ <span class='name'><a title="#project_history" href="#project_history-instance_method">#project_history</a></span><span class='args'></span>
28
+ <span class='block'></span>
29
+
30
+ </th>
31
+ <td class="docstring">
32
+ <p>
33
+ Contains release notes for all project releases.
34
+ </p>
35
+
36
+
37
+ </td>
38
+ </tr>
39
+
40
+ <tr>
41
+ <th class="signature">
42
+ <span class='name'><a title="#project_summary" href="#project_summary-instance_method">#project_summary</a></span><span class='args'></span>
43
+ <span class='block'></span>
44
+
45
+ </th>
46
+ <td class="docstring">
47
+ <p>
48
+ Defines a brief summary of this project.
49
+ </p>
50
+
51
+
52
+ </td>
53
+ </tr>
54
+
55
+ </table>
56
+ </div>
57
+ <div class="section methoddetails instance public">
58
+ <h1>Public Instance Method Details</h1>
59
+
60
+ <div class="method">
61
+ <div class="method_header">
62
+ <h3>project_history</h3>
63
+ </div><div id="project_history-instance_method" class="section method">
64
+ <div class="details_title">
65
+ <div class='section methodsignature'>
66
+ <tt class='def'>
67
+ <span class='visibility'>public</span>
68
+ <span class='return_types'></span>
69
+ <span class='name'>project_history</span><span class='args'></span>
70
+ <span class='block'></span>
71
+ </tt>
72
+ </div>
73
+
74
+ </div><div class="section docstring">
75
+ <p>
76
+ Contains release notes for all project releases.
77
+ </p>
78
+
79
+ </div><div class="section tags">
80
+ <h2>Meta Tags</h2>
81
+ <div class="param">
82
+ <h3>Parameters:</h3>
83
+ <dl>
84
+
85
+ </dl>
86
+ </div><div class="raise">
87
+ <h3>Raises:</h3>
88
+ <dl>
89
+
90
+ <dt>
91
+
92
+ <span class='type'>[<tt>ArgumentError</tt>]</span>
93
+
94
+
95
+
96
+ </dt>
97
+ <dd>
98
+ <span class='desc'></span>
99
+ </dd>
100
+
101
+ </dl>
102
+ </div>
103
+
104
+ </div><div class="section source">
105
+ <span>[<a class="source_link" href="#">View source</a>]</span>
106
+ <div class="source_code">
107
+ <table>
108
+ <tr>
109
+ <td>
110
+ <pre class="lines">
111
+
112
+
113
+ 75
114
+ 76
115
+ 77
116
+ 78
117
+ 79
118
+ 80
119
+ 81
120
+ 82</pre>
121
+ </td>
122
+ <td>
123
+ <pre class="code"><span class="info file"># File 'lib/inochi/book.rb', line 75</span>
124
+
125
+ <span class='def def kw'>def</span> <span class='project_history identifier id'>project_history</span>
126
+ <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>'block must be given'</span> <span class='unless unless_mod kw'>unless</span> <span class='block_given? fid id'>block_given?</span>
127
+
128
+ <span class='node identifier id'>node</span> <span class='do do kw'>do</span>
129
+ <span class='$project_history_node gvar id'>$project_history_node</span> <span class='assign token'>=</span> <span class='@nodes ivar id'>@nodes</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
130
+ <span class='yield yield kw'>yield</span>
131
+ <span class='end end kw'>end</span>
132
+ <span class='end end kw'>end</span>
133
+ </pre>
134
+ </td>
135
+ </tr>
136
+ </table>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </div>
141
+
142
+ <div class="method">
143
+ <div class="method_header">
144
+ <h3>project_summary</h3>
145
+ </div><div id="project_summary-instance_method" class="section method">
146
+ <div class="details_title">
147
+ <div class='section methodsignature'>
148
+ <tt class='def'>
149
+ <span class='visibility'>public</span>
150
+ <span class='return_types'></span>
151
+ <span class='name'>project_summary</span><span class='args'></span>
152
+ <span class='block'></span>
153
+ </tt>
154
+ </div>
155
+
156
+ </div><div class="section docstring">
157
+ <p>
158
+ Defines a brief summary of this project.
159
+ </p>
160
+
161
+ </div><div class="section tags">
162
+ <h2>Meta Tags</h2>
163
+ <div class="param">
164
+ <h3>Parameters:</h3>
165
+ <dl>
166
+
167
+ </dl>
168
+ </div><div class="raise">
169
+ <h3>Raises:</h3>
170
+ <dl>
171
+
172
+ <dt>
173
+
174
+ <span class='type'>[<tt>ArgumentError</tt>]</span>
175
+
176
+
177
+
178
+ </dt>
179
+ <dd>
180
+ <span class='desc'></span>
181
+ </dd>
182
+
183
+ </dl>
184
+ </div>
185
+
186
+ </div><div class="section source">
187
+ <span>[<a class="source_link" href="#">View source</a>]</span>
188
+ <div class="source_code">
189
+ <table>
190
+ <tr>
191
+ <td>
192
+ <pre class="lines">
193
+
194
+
195
+ 63
196
+ 64
197
+ 65
198
+ 66
199
+ 67
200
+ 68
201
+ 69
202
+ 70</pre>
203
+ </td>
204
+ <td>
205
+ <pre class="code"><span class="info file"># File 'lib/inochi/book.rb', line 63</span>
206
+
207
+ <span class='def def kw'>def</span> <span class='project_summary identifier id'>project_summary</span>
208
+ <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>'block must be given'</span> <span class='unless unless_mod kw'>unless</span> <span class='block_given? fid id'>block_given?</span>
209
+
210
+ <span class='node identifier id'>node</span> <span class='do do kw'>do</span>
211
+ <span class='$project_summary_node gvar id'>$project_summary_node</span> <span class='assign token'>=</span> <span class='@nodes ivar id'>@nodes</span><span class='dot token'>.</span><span class='last identifier id'>last</span>
212
+ <span class='yield yield kw'>yield</span>
213
+ <span class='end end kw'>end</span>
214
+ <span class='end end kw'>end</span>
215
+ </pre>
216
+ </td>
217
+ </tr>
218
+ </table>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+ </div>
225
+ </div>
226
+
227
+ </div>
228
+ </div>
229
+ </body>
230
+ </html>
@@ -0,0 +1,409 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
7
+ <link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
8
+
9
+ <script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
10
+ <script src="../app.js" type="text/javascript" charset="utf-8"></script>
11
+ <title>Class: Inochi::Phrases</title>
12
+ </head>
13
+ <body>
14
+ <div id="content">
15
+ <div class="section class Inochi_Phrases">
16
+ <h1 class="title">Class: Inochi::Phrases</h1>
17
+ <div class="section docstring">
18
+ <p>
19
+ Interface to translations of human text used in a project.
20
+ </p>
21
+
22
+ </div><div class="section attributes">
23
+ <h1>Attributes</h1>
24
+
25
+
26
+ <div class="instance">
27
+ <h2>Instance Attributes</h2>
28
+ <table>
29
+
30
+ <tr>
31
+ <th class="name">locale</td>
32
+ <td class="readwrite">
33
+ [RW]
34
+ </td>
35
+ <td class="visibility">
36
+ public
37
+ </td>
38
+ <td class="docstring">
39
+ <p>
40
+ The locale into which the #[] method will translate phrases.
41
+ </p>
42
+
43
+
44
+ </td>
45
+ </tr>
46
+
47
+ </table>
48
+ </div>
49
+
50
+ </div><div class="section constants">
51
+
52
+ </div><div class="section constructor">
53
+ <h1>Constructor Summary</h1>
54
+ <div id="initialize-instance_method" class="section method">
55
+ <div class="details_title">
56
+ <div class='section methodsignature'>
57
+ <tt class='def'>
58
+ <span class='visibility'>public</span>
59
+ <span class='return_types'></span>
60
+ <span class='name'>initialize</span><span class='args'>(project_install_dir)</span>
61
+ <span class='block'></span>
62
+ </tt>
63
+ </div>
64
+
65
+ </div><div class="section source">
66
+ <span>[<a class="source_link" href="#">View source</a>]</span>
67
+ <div class="source_code">
68
+ <table>
69
+ <tr>
70
+ <td>
71
+ <pre class="lines">
72
+
73
+
74
+ 158
75
+ 159
76
+ 160
77
+ 161
78
+ 162
79
+ 163
80
+ 164
81
+ 165
82
+ 166
83
+ 167
84
+ 168
85
+ 169
86
+ 170
87
+ 171
88
+ 172
89
+ 173
90
+ 174
91
+ 175
92
+ 176</pre>
93
+ </td>
94
+ <td>
95
+ <pre class="code"><span class="info file"># File 'lib/inochi/init.rb', line 158</span>
96
+
97
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span> <span class='project_install_dir identifier id'>project_install_dir</span>
98
+ <span class='comment val'># load language translations dynamically</span>
99
+ <span class='lang_dir identifier id'>lang_dir</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='project_install_dir identifier id'>project_install_dir</span><span class='comma token'>,</span> <span class='string val'>'lang'</span><span class='rparen token'>)</span>
100
+
101
+ <span class='@phrases_by_language ivar id'>@phrases_by_language</span> <span class='assign token'>=</span> <span class='Hash constant id'>Hash</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='cache identifier id'>cache</span><span class='comma token'>,</span> <span class='language identifier id'>language</span><span class='bitor op'>|</span>
102
+ <span class='comment val'># store the phrase upon failure so that</span>
103
+ <span class='comment val'># the phrases() method will know about it</span>
104
+ <span class='phrases identifier id'>phrases</span> <span class='assign token'>=</span> <span class='Hash constant id'>Hash</span><span class='dot token'>.</span><span class='new identifier id'>new</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='h identifier id'>h</span><span class='comma token'>,</span><span class='k identifier id'>k</span><span class='bitor op'>|</span> <span class='h identifier id'>h</span><span class='lbrack token'>[</span><span class='k identifier id'>k</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='nil nil kw'>nil</span> <span class='rbrace token'>}</span>
105
+
106
+ <span class='lang_file identifier id'>lang_file</span> <span class='assign token'>=</span> <span class='File constant id'>File</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='lang_dir identifier id'>lang_dir</span><span class='comma token'>,</span> <span class='dstring node'>&quot;#{language}.yaml&quot;</span><span class='rparen token'>)</span>
107
+ <span class='lang_data identifier id'>lang_data</span> <span class='assign token'>=</span> <span class='YAML constant id'>YAML</span><span class='dot token'>.</span><span class='load_file identifier id'>load_file</span><span class='lparen token'>(</span><span class='lang_file identifier id'>lang_file</span><span class='rparen token'>)</span> <span class='rescue rescue kw'>rescue</span> <span class='nil nil kw'>nil</span>
108
+ <span class='phrases identifier id'>phrases</span><span class='dot token'>.</span><span class='merge! fid id'>merge!</span> <span class='lang_data identifier id'>lang_data</span> <span class='if if_mod kw'>if</span> <span class='lang_data identifier id'>lang_data</span>
109
+
110
+ <span class='cache identifier id'>cache</span><span class='lbrack token'>[</span><span class='language identifier id'>language</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='phrases identifier id'>phrases</span>
111
+ <span class='end end kw'>end</span>
112
+
113
+ <span class='comment val'># detect user's preferred locale</span>
114
+ <span class='self self kw'>self</span><span class='dot token'>.</span><span class='locale identifier id'>locale</span> <span class='assign token'>=</span> <span class='ENV constant id'>ENV</span><span class='lbrack token'>[</span><span class='string val'>'LC_ALL'</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='ENV constant id'>ENV</span><span class='lbrack token'>[</span><span class='string val'>'LC_MESSAGES'</span><span class='rbrack token'>]</span> <span class='orop op'>||</span> <span class='ENV constant id'>ENV</span><span class='lbrack token'>[</span><span class='string val'>'LANG'</span><span class='rbrack token'>]</span>
115
+ <span class='end end kw'>end</span>
116
+ </pre>
117
+ </td>
118
+ </tr>
119
+ </table>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </div><div class="section methodmissing">
124
+ <h1>Dynamic Method Handling</h1>
125
+
126
+ <p class="note">
127
+ This class handles dynamic methods through the <tt>method_missing</tt> method
128
+
129
+ </p>
130
+
131
+ <div id="method_missing-instance_method" class="section method">
132
+ <div class="details_title">
133
+ <div class='section methodsignature'>
134
+ <tt class='def'>
135
+ <span class='visibility'>public</span>
136
+ <span class='return_types'></span>
137
+ <span class='name'>method_missing</span><span class='args'>(meth, *args)</span>
138
+ <span class='block'></span>
139
+ </tt>
140
+ </div>
141
+
142
+ </div><div class="section docstring">
143
+ <p>
144
+ Provides access to translations in any language, regardless of the target
145
+ locale (see #locale and #locale=).
146
+ </p>
147
+ <p>
148
+ For example, you can access Japanese translations via the #jp method even
149
+ if the target locale is French.
150
+ </p>
151
+
152
+ </div><div class="section source">
153
+ <span>[<a class="source_link" href="#">View source</a>]</span>
154
+ <div class="source_code">
155
+ <table>
156
+ <tr>
157
+ <td>
158
+ <pre class="lines">
159
+
160
+
161
+ 217
162
+ 218
163
+ 219
164
+ 220
165
+ 221
166
+ 222
167
+ 223
168
+ 224</pre>
169
+ </td>
170
+ <td>
171
+ <pre class="code"><span class="info file"># File 'lib/inochi/init.rb', line 217</span>
172
+
173
+ <span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span> <span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span>
174
+ <span class='comment val'># ISO 639 language codes come in alpha-2 and alpha-3 forms</span>
175
+ <span class='if if kw'>if</span> <span class='meth identifier id'>meth</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span> <span class='match op'>=~</span> <span class='regexp val'>/^[a-z]{2,3}$/</span>
176
+ <span class='translate identifier id'>translate</span> <span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span>
177
+ <span class='else else kw'>else</span>
178
+ <span class='super super kw'>super</span>
179
+ <span class='end end kw'>end</span>
180
+ <span class='end end kw'>end</span>
181
+ </pre>
182
+ </td>
183
+ </tr>
184
+ </table>
185
+ </div>
186
+ </div>
187
+ </div>
188
+ </div> <div class="section visibilitygroup public">
189
+ <h1>Public Visibility</h1>
190
+ <div class="section methodsummary instance public">
191
+ <h1>Public Instance Method Summary</h1>
192
+ <table class="summary">
193
+
194
+ <tr>
195
+ <th class="signature">
196
+ <span class='name'><a title="#[]" href="#%5B%5D-instance_method">#[]</a></span><span class='args'>(phrase, *words)</span>
197
+ <span class='block'></span>
198
+
199
+ </th>
200
+ <td class="docstring">
201
+ <p>
202
+ Translates the given phrase into the target locale (see #locale and
203
+ #locale=) and then substitutes the given placeholder arguments into the
204
+ translation (see Kernel#sprintf).
205
+ </p>
206
+
207
+
208
+ </td>
209
+ </tr>
210
+
211
+ <tr>
212
+ <th class="signature">
213
+ <span class='name'><a title="#locale" href="#locale-instance_method">#locale</a></span><span class='args'></span>
214
+ <span class='block'></span>
215
+
216
+ </th>
217
+ <td class="docstring">
218
+ <p>
219
+ The locale into which the #[] method will translate phrases..
220
+ </p>
221
+
222
+
223
+ </td>
224
+ </tr>
225
+
226
+ <tr>
227
+ <th class="signature">
228
+ <span class='name'><a title="#phrases" href="#phrases-instance_method">#phrases</a></span><span class='args'></span>
229
+ <span class='block'></span>
230
+
231
+ </th>
232
+ <td class="docstring">
233
+ <p>
234
+ Returns all phrases that underwent (or attempted) translation via this
235
+ object.
236
+ </p>
237
+
238
+
239
+ </td>
240
+ </tr>
241
+
242
+ </table>
243
+ </div>
244
+ <div class="section methoddetails instance public">
245
+ <h1>Public Instance Method Details</h1>
246
+
247
+ <div class="method">
248
+ <div class="method_header">
249
+ <h3>[]</h3>
250
+ </div><div id="%5B%5D-instance_method" class="section method">
251
+ <div class="details_title">
252
+ <div class='section methodsignature'>
253
+ <tt class='def'>
254
+ <span class='visibility'>public</span>
255
+ <span class='return_types'></span>
256
+ <span class='name'>[]</span><span class='args'>(phrase, *words)</span>
257
+ <span class='block'></span>
258
+ </tt>
259
+ </div>
260
+
261
+ </div><div class="section docstring">
262
+ <p>
263
+ Translates the given phrase into the target locale (see #locale and
264
+ #locale=) and then substitutes the given placeholder arguments into the
265
+ translation (see Kernel#sprintf).
266
+ </p>
267
+ <p>
268
+ If a translation is not available for the given phrase, then the given
269
+ phrase will be used as-is, untranslated.
270
+ </p>
271
+
272
+ </div><div class="section source">
273
+ <span>[<a class="source_link" href="#">View source</a>]</span>
274
+ <div class="source_code">
275
+ <table>
276
+ <tr>
277
+ <td>
278
+ <pre class="lines">
279
+
280
+
281
+ 206
282
+ 207
283
+ 208</pre>
284
+ </td>
285
+ <td>
286
+ <pre class="code"><span class="info file"># File 'lib/inochi/init.rb', line 206</span>
287
+
288
+ <span class='def def kw'>def</span> <span class='aref op'>[]</span> <span class='phrase identifier id'>phrase</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='words identifier id'>words</span>
289
+ <span class='translate identifier id'>translate</span> <span class='@language ivar id'>@language</span><span class='comma token'>,</span> <span class='phrase identifier id'>phrase</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='words identifier id'>words</span>
290
+ <span class='end end kw'>end</span>
291
+ </pre>
292
+ </td>
293
+ </tr>
294
+ </table>
295
+ </div>
296
+ </div>
297
+ </div>
298
+ </div>
299
+
300
+ <div class="method">
301
+ <div class="method_header">
302
+ <h3>locale</h3>
303
+ </div><div id="locale-instance_method" class="section method">
304
+ <div class="details_title">
305
+ <div class='section methodsignature'>
306
+ <tt class='def'>
307
+ <span class='visibility'>public</span>
308
+ <span class='return_types'></span>
309
+ <span class='name'>locale</span><span class='args'></span>
310
+ <span class='block'></span>
311
+ </tt>
312
+ </div>
313
+
314
+ </div><div class="section docstring">
315
+ <p>
316
+ The locale into which the #[] method will translate phrases.
317
+ </p>
318
+
319
+ </div><div class="section source">
320
+ <span>[<a class="source_link" href="#">View source</a>]</span>
321
+ <div class="source_code">
322
+ <table>
323
+ <tr>
324
+ <td>
325
+ <pre class="lines">
326
+
327
+
328
+ 181
329
+ 182
330
+ 183
331
+ 184
332
+ 185
333
+ 186
334
+ 187</pre>
335
+ </td>
336
+ <td>
337
+ <pre class="code"><span class="info file"># File 'lib/inochi/init.rb', line 181</span>
338
+
339
+ <span class='def def kw'>def</span> <span class='locale= identifier id'>locale=</span> <span class='locale identifier id'>locale</span>
340
+ <span class='@locale ivar id'>@locale</span> <span class='assign token'>=</span> <span class='locale identifier id'>locale</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
341
+
342
+ <span class='comment val'># extract the language portion of the locale</span>
343
+ <span class='language identifier id'>language</span> <span class='assign token'>=</span> <span class='@locale ivar id'>@locale</span><span class='lbrack token'>[</span><span class='regexp val'>/^[[:alpha:]]+/</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
344
+ <span class='@language ivar id'>@language</span> <span class='assign token'>=</span> <span class='language identifier id'>language</span> <span class='match op'>=~</span> <span class='regexp val'>/^(C|POSIX)?$/i</span> <span class='question op'>?</span> <span class='symbol val'>:en</span> <span class='colon op'>:</span> <span class='language identifier id'>language</span><span class='dot token'>.</span><span class='downcase identifier id'>downcase</span><span class='dot token'>.</span><span class='to_sym identifier id'>to_sym</span>
345
+ <span class='end end kw'>end</span>
346
+ </pre>
347
+ </td>
348
+ </tr>
349
+ </table>
350
+ </div>
351
+ </div>
352
+ </div>
353
+ </div>
354
+
355
+ <div class="method">
356
+ <div class="method_header">
357
+ <h3>phrases</h3>
358
+ </div><div id="phrases-instance_method" class="section method">
359
+ <div class="details_title">
360
+ <div class='section methodsignature'>
361
+ <tt class='def'>
362
+ <span class='visibility'>public</span>
363
+ <span class='return_types'></span>
364
+ <span class='name'>phrases</span><span class='args'></span>
365
+ <span class='block'></span>
366
+ </tt>
367
+ </div>
368
+
369
+ </div><div class="section docstring">
370
+ <p>
371
+ Returns all phrases that underwent (or attempted) translation via this
372
+ object.
373
+ </p>
374
+
375
+ </div><div class="section source">
376
+ <span>[<a class="source_link" href="#">View source</a>]</span>
377
+ <div class="source_code">
378
+ <table>
379
+ <tr>
380
+ <td>
381
+ <pre class="lines">
382
+
383
+
384
+ 193
385
+ 194
386
+ 195</pre>
387
+ </td>
388
+ <td>
389
+ <pre class="code"><span class="info file"># File 'lib/inochi/init.rb', line 193</span>
390
+
391
+ <span class='def def kw'>def</span> <span class='phrases identifier id'>phrases</span>
392
+ <span class='@phrases_by_language ivar id'>@phrases_by_language</span><span class='dot token'>.</span><span class='values identifier id'>values</span><span class='dot token'>.</span><span class='map identifier id'>map</span> <span class='lbrace token'>{</span><span class='bitor op'>|</span><span class='h identifier id'>h</span><span class='bitor op'>|</span> <span class='h identifier id'>h</span><span class='dot token'>.</span><span class='keys identifier id'>keys</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='flatten identifier id'>flatten</span><span class='dot token'>.</span><span class='uniq identifier id'>uniq</span><span class='dot token'>.</span><span class='sort identifier id'>sort</span>
393
+ <span class='end end kw'>end</span>
394
+ </pre>
395
+ </td>
396
+ </tr>
397
+ </table>
398
+ </div>
399
+ </div>
400
+ </div>
401
+ </div>
402
+
403
+ </div>
404
+ </div>
405
+
406
+ </div>
407
+ </div>
408
+ </body>
409
+ </html>