Dogeku 1.0.1

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.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +39 -0
  4. data/app/Historique/Action.rb +29 -0
  5. data/app/Historique/ChangerCase.rb +44 -0
  6. data/app/Historique/HistoriqueAction.rb +114 -0
  7. data/app/components/CaseDessin.rb +325 -0
  8. data/app/components/GrilleDessin.rb +235 -0
  9. data/app/components/Header.rb +194 -0
  10. data/app/config/app.yml +0 -0
  11. data/app/config/database.yml +2 -0
  12. data/app/controller/ApprentissageControleur.rb +75 -0
  13. data/app/controller/ChargerControleur.rb +41 -0
  14. data/app/controller/JeuLibreControleur.rb +244 -0
  15. data/app/controller/MenuControleur.rb +57 -0
  16. data/app/controller/NiveauControleur.rb +54 -0
  17. data/app/controller/NouvellePartieControleur.rb +34 -0
  18. data/app/controller/PrincipaleControleur.rb +30 -0
  19. data/app/controller/PseudoControleur.rb +95 -0
  20. data/app/controller/ReglagesControleur.rb +86 -0
  21. data/app/controller/ReglesControleur.rb +34 -0
  22. data/app/controller/ScoresControleur.rb +42 -0
  23. data/app/controller/StatistiquesControleur.rb +64 -0
  24. data/app/core/Conf.rb +26 -0
  25. data/app/core/Controller.rb +180 -0
  26. data/app/core/Core.rb +186 -0
  27. data/app/core/Model.rb +159 -0
  28. data/app/core/View.rb +56 -0
  29. data/app/db/main.sqlite3 +0 -0
  30. data/app/model/Configuration.rb +180 -0
  31. data/app/model/Grille.rb +180 -0
  32. data/app/model/Jeu.rb +74 -0
  33. data/app/model/Score.rb +100 -0
  34. data/app/model/Utilisateur.rb +113 -0
  35. data/app/utils/DSubset.rb +98 -0
  36. data/app/utils/Generateur.rb +171 -0
  37. data/app/utils/HPTriple.rb +75 -0
  38. data/app/utils/Peche.rb +46 -0
  39. data/app/utils/SCandidate.rb +86 -0
  40. data/app/utils/SCell.rb +73 -0
  41. data/app/utils/Technique.rb +202 -0
  42. data/app/utils/TechniqueUsine.rb +25 -0
  43. data/app/utils/XWing.rb +203 -0
  44. data/app/view/Fenetre.rb +424 -0
  45. data/app/view/FenetreApprentissage.rb +272 -0
  46. data/app/view/FenetreCharger.rb +31 -0
  47. data/app/view/FenetreJeuLibre.rb +468 -0
  48. data/app/view/FenetreMenu.rb +198 -0
  49. data/app/view/FenetreNiveau.rb +105 -0
  50. data/app/view/FenetreNouvellePartie.rb +92 -0
  51. data/app/view/FenetrePrincipale.rb +45 -0
  52. data/app/view/FenetrePseudo.rb +115 -0
  53. data/app/view/FenetreReglages.rb +209 -0
  54. data/app/view/FenetreRegles.rb +111 -0
  55. data/app/view/FenetreScores.rb +120 -0
  56. data/app/view/FenetreStatistiques.rb +134 -0
  57. data/assets/css/style.css +69 -0
  58. data/assets/img/eraser.png +0 -0
  59. data/assets/img/fond.jpg +0 -0
  60. data/assets/img/iconApp.png +0 -0
  61. data/assets/img/logoS.jpeg +0 -0
  62. data/assets/img/sudokuIntro.jpg +0 -0
  63. data/assets/img/user.png +0 -0
  64. data/bin/dogeku +19 -0
  65. data/doc/Action.html +309 -0
  66. data/doc/ApprentissageControleur.html +568 -0
  67. data/doc/CaseDessin.html +2405 -0
  68. data/doc/ChangerCase.html +405 -0
  69. data/doc/ChargerControleur.html +342 -0
  70. data/doc/Conf.html +378 -0
  71. data/doc/Configuration.html +1115 -0
  72. data/doc/Controller.html +1008 -0
  73. data/doc/Core.html +1191 -0
  74. data/doc/DSubset.html +647 -0
  75. data/doc/Fenetre.html +2631 -0
  76. data/doc/FenetreApprentissage.html +1175 -0
  77. data/doc/FenetreCharger.html +343 -0
  78. data/doc/FenetreJeuLibre.html +1859 -0
  79. data/doc/FenetreMenu.html +900 -0
  80. data/doc/FenetreNiveau.html +626 -0
  81. data/doc/FenetreNouvellePartie.html +602 -0
  82. data/doc/FenetrePrincipale.html +371 -0
  83. data/doc/FenetrePseudo.html +695 -0
  84. data/doc/FenetreReglages.html +946 -0
  85. data/doc/FenetreRegles.html +636 -0
  86. data/doc/FenetreScores.html +650 -0
  87. data/doc/FenetreStatistiques.html +672 -0
  88. data/doc/Generateur.html +1015 -0
  89. data/doc/Grille.html +1348 -0
  90. data/doc/GrilleDessin.html +1281 -0
  91. data/doc/HPTriple.html +593 -0
  92. data/doc/Header.html +1253 -0
  93. data/doc/HistoriqueAction.html +792 -0
  94. data/doc/Jeu.html +923 -0
  95. data/doc/JeuLibreControleur.html +1445 -0
  96. data/doc/MenuControleur.html +522 -0
  97. data/doc/Model.html +996 -0
  98. data/doc/NiveauControleur.html +451 -0
  99. data/doc/NouvellePartieControleur.html +330 -0
  100. data/doc/Peche.html +396 -0
  101. data/doc/PrincipaleControleur.html +320 -0
  102. data/doc/PseudoControleur.html +695 -0
  103. data/doc/ReglagesControleur.html +747 -0
  104. data/doc/ReglesControleur.html +330 -0
  105. data/doc/SCandidate.html +617 -0
  106. data/doc/SCell.html +587 -0
  107. data/doc/Score.html +926 -0
  108. data/doc/ScoresControleur.html +346 -0
  109. data/doc/StatistiquesControleur.html +390 -0
  110. data/doc/Technique.html +543 -0
  111. data/doc/TechniqueUsine.html +252 -0
  112. data/doc/Utilisateur.html +806 -0
  113. data/doc/View.html +844 -0
  114. data/doc/XWing.html +1031 -0
  115. data/doc/_index.html +478 -0
  116. data/doc/class_list.html +51 -0
  117. data/doc/css/common.css +1 -0
  118. data/doc/css/full_list.css +58 -0
  119. data/doc/css/style.css +492 -0
  120. data/doc/file.README.html +141 -0
  121. data/doc/file_list.html +56 -0
  122. data/doc/frames.html +17 -0
  123. data/doc/index.html +141 -0
  124. data/doc/js/app.js +243 -0
  125. data/doc/js/full_list.js +216 -0
  126. data/doc/js/jquery.js +4 -0
  127. data/doc/method_list.html +2523 -0
  128. data/doc/top-level-namespace.html +112 -0
  129. data/test/Generateur/grilleCorrecte.rb +198 -0
  130. data/test/Model/scoreCorrecte.rb +55 -0
  131. data/test/Model/utilisateurCorrecte.rb +68 -0
  132. data/test/test_helper.rb +2 -0
  133. data/test/unitTest.rb +72 -0
  134. metadata +187 -0
data/doc/View.html ADDED
@@ -0,0 +1,844 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: View
8
+
9
+ &mdash; Documentation by YARD 0.9.8
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "View";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (V)</a> &raquo;
40
+
41
+
42
+ <span class="title">View</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: View
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">View</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <dl>
91
+ <dt>Includes:</dt>
92
+ <dd><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></dd>
93
+ </dl>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Defined in:</dt>
102
+ <dd>app/core/View.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+ <h2>Overview</h2><div class="docstring">
108
+ <div class="discussion">
109
+
110
+ <h1 id="label-Visualization+of+the+data+that+model+contains.">Visualization of the data that model contains.</h1>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+
118
+ </div><div id="subclasses">
119
+ <h2>Direct Known Subclasses</h2>
120
+ <p class="children"><span class='object_link'><a href="FenetreApprentissage.html" title="FenetreApprentissage (class)">FenetreApprentissage</a></span>, <span class='object_link'><a href="FenetreCharger.html" title="FenetreCharger (class)">FenetreCharger</a></span>, <span class='object_link'><a href="FenetreJeuLibre.html" title="FenetreJeuLibre (class)">FenetreJeuLibre</a></span>, <span class='object_link'><a href="FenetreMenu.html" title="FenetreMenu (class)">FenetreMenu</a></span>, <span class='object_link'><a href="FenetreNiveau.html" title="FenetreNiveau (class)">FenetreNiveau</a></span>, <span class='object_link'><a href="FenetreNouvellePartie.html" title="FenetreNouvellePartie (class)">FenetreNouvellePartie</a></span>, <span class='object_link'><a href="FenetrePrincipale.html" title="FenetrePrincipale (class)">FenetrePrincipale</a></span>, <span class='object_link'><a href="FenetrePseudo.html" title="FenetrePseudo (class)">FenetrePseudo</a></span>, <span class='object_link'><a href="FenetreReglages.html" title="FenetreReglages (class)">FenetreReglages</a></span>, <span class='object_link'><a href="FenetreRegles.html" title="FenetreRegles (class)">FenetreRegles</a></span>, <span class='object_link'><a href="FenetreScores.html" title="FenetreScores (class)">FenetreScores</a></span>, <span class='object_link'><a href="FenetreStatistiques.html" title="FenetreStatistiques (class)">FenetreStatistiques</a></span></p>
121
+ </div>
122
+
123
+
124
+
125
+ <h2>Constant Summary</h2>
126
+
127
+ <h3 class="inherited">Constants included
128
+ from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
129
+ <p class="inherited"><span class='object_link'><a href="Fenetre.html#COULEUR_BLANC-constant" title="Fenetre::COULEUR_BLANC (constant)">Fenetre::COULEUR_BLANC</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_BLEU-constant" title="Fenetre::COULEUR_BLEU (constant)">Fenetre::COULEUR_BLEU</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_JAUNE-constant" title="Fenetre::COULEUR_JAUNE (constant)">Fenetre::COULEUR_JAUNE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_ORANGE-constant" title="Fenetre::COULEUR_ORANGE (constant)">Fenetre::COULEUR_ORANGE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_ROUGE-constant" title="Fenetre::COULEUR_ROUGE (constant)">Fenetre::COULEUR_ROUGE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_VERT-constant" title="Fenetre::COULEUR_VERT (constant)">Fenetre::COULEUR_VERT</a></span>, <span class='object_link'><a href="Fenetre.html#FONT_MENU-constant" title="Fenetre::FONT_MENU (constant)">Fenetre::FONT_MENU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_AUTRE_JEU-constant" title="Fenetre::SIZE_AUTRE_JEU (constant)">Fenetre::SIZE_AUTRE_JEU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_REGLE-constant" title="Fenetre::SIZE_CONTENU_REGLE (constant)">Fenetre::SIZE_CONTENU_REGLE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_SCORE-constant" title="Fenetre::SIZE_CONTENU_SCORE (constant)">Fenetre::SIZE_CONTENU_SCORE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_STAT-constant" title="Fenetre::SIZE_CONTENU_STAT (constant)">Fenetre::SIZE_CONTENU_STAT</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_LABEL_BOUTON-constant" title="Fenetre::SIZE_LABEL_BOUTON (constant)">Fenetre::SIZE_LABEL_BOUTON</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_PSEUDO-constant" title="Fenetre::SIZE_PSEUDO (constant)">Fenetre::SIZE_PSEUDO</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE-constant" title="Fenetre::SIZE_TITRE (constant)">Fenetre::SIZE_TITRE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_JEU-constant" title="Fenetre::SIZE_TITRE_JEU (constant)">Fenetre::SIZE_TITRE_JEU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLAGE-constant" title="Fenetre::SIZE_TITRE_REGLAGE (constant)">Fenetre::SIZE_TITRE_REGLAGE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLE-constant" title="Fenetre::SIZE_TITRE_REGLE (constant)">Fenetre::SIZE_TITRE_REGLE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_SCORE-constant" title="Fenetre::SIZE_TITRE_SCORE (constant)">Fenetre::SIZE_TITRE_SCORE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_STAT-constant" title="Fenetre::SIZE_TITRE_STAT (constant)">Fenetre::SIZE_TITRE_STAT</a></span></p>
130
+
131
+
132
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
133
+ <ul class="summary">
134
+
135
+ <li class="public ">
136
+ <span class="summary_signature">
137
+
138
+ <a href="#content=-instance_method" title="#content= (instance method)">#<strong>content</strong> &#x21d2; Object </a>
139
+
140
+
141
+
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+ <span class="note title writeonly">writeonly</span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <span class="summary_desc"><div class='inline'>
158
+ <p>Sets the attribute content.</p>
159
+ </div></span>
160
+
161
+ </li>
162
+
163
+
164
+ <li class="public ">
165
+ <span class="summary_signature">
166
+
167
+ <a href="#controller-instance_method" title="#controller (instance method)">#<strong>controller</strong> &#x21d2; Object </a>
168
+
169
+
170
+
171
+ </span>
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <span class="summary_desc"><div class='inline'>
185
+ <p>Returns the value of attribute controller.</p>
186
+ </div></span>
187
+
188
+ </li>
189
+
190
+
191
+ <li class="public ">
192
+ <span class="summary_signature">
193
+
194
+ <a href="#headerBar-instance_method" title="#headerBar (instance method)">#<strong>headerBar</strong> &#x21d2; Object </a>
195
+
196
+
197
+
198
+ </span>
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ <span class="summary_desc"><div class='inline'>
212
+ <p>Returns the value of attribute headerBar.</p>
213
+ </div></span>
214
+
215
+ </li>
216
+
217
+
218
+ <li class="public ">
219
+ <span class="summary_signature">
220
+
221
+ <a href="#window-instance_method" title="#window (instance method)">#<strong>window</strong> &#x21d2; Object </a>
222
+
223
+
224
+
225
+ </span>
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+ <span class="summary_desc"><div class='inline'>
239
+ <p>Returns the value of attribute window.</p>
240
+ </div></span>
241
+
242
+ </li>
243
+
244
+
245
+ </ul>
246
+
247
+
248
+
249
+
250
+
251
+ <h2>
252
+ Class Method Summary
253
+ <small><a href="#" class="summary_toggle">collapse</a></small>
254
+ </h2>
255
+
256
+ <ul class="summary">
257
+
258
+ <li class="public ">
259
+ <span class="summary_signature">
260
+
261
+ <a href="#inherited-class_method" title="inherited (class method)">.<strong>inherited</strong>(subclass) &#x21d2; Object </a>
262
+
263
+
264
+
265
+ </span>
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <span class="summary_desc"><div class='inline'>
276
+ <p>Invoke methods when inherited.</p>
277
+ </div></span>
278
+
279
+ </li>
280
+
281
+
282
+ </ul>
283
+
284
+ <h2>
285
+ Instance Method Summary
286
+ <small><a href="#" class="summary_toggle">collapse</a></small>
287
+ </h2>
288
+
289
+ <ul class="summary">
290
+
291
+ <li class="public ">
292
+ <span class="summary_signature">
293
+
294
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; View </a>
295
+
296
+
297
+
298
+ </span>
299
+
300
+
301
+ <span class="note title constructor">constructor</span>
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+ <span class="summary_desc"><div class='inline'>
311
+ <p>A new instance of View.</p>
312
+ </div></span>
313
+
314
+ </li>
315
+
316
+
317
+ <li class="public ">
318
+ <span class="summary_signature">
319
+
320
+ <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> &#x21d2; Object </a>
321
+
322
+
323
+
324
+ </span>
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+ <span class="summary_desc"><div class='inline'>
335
+ <p>Invoke all methods from view.</p>
336
+ </div></span>
337
+
338
+ </li>
339
+
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#setInstanceVars-instance_method" title="#setInstanceVars (instance method)">#<strong>setInstanceVars</strong> &#x21d2; Object </a>
345
+
346
+
347
+
348
+ </span>
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+ <span class="summary_desc"><div class='inline'>
359
+ <p>Create instance variables from @content provided by controller.</p>
360
+ </div></span>
361
+
362
+ </li>
363
+
364
+
365
+ </ul>
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
378
+ <p class="inherited"><span class='object_link'><a href="Fenetre.html#appliquerStyle-class_method" title="Fenetre.appliquerStyle (method)">appliquerStyle</a></span>, <span class='object_link'><a href="Fenetre.html#boutonAnnuler_barre-class_method" title="Fenetre.boutonAnnuler_barre (method)">boutonAnnuler_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonMenu_barre-class_method" title="Fenetre.boutonMenu_barre (method)">boutonMenu_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonPauseChrono_barre-class_method" title="Fenetre.boutonPauseChrono_barre (method)">boutonPauseChrono_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonPlayChrono_barre-class_method" title="Fenetre.boutonPlayChrono_barre (method)">boutonPlayChrono_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonQuitter_barre-class_method" title="Fenetre.boutonQuitter_barre (method)">boutonQuitter_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonReinit_barre-class_method" title="Fenetre.boutonReinit_barre (method)">boutonReinit_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonRetablir_barre-class_method" title="Fenetre.boutonRetablir_barre (method)">boutonRetablir_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonRetour-class_method" title="Fenetre.boutonRetour (method)">boutonRetour</a></span>, <span class='object_link'><a href="Fenetre.html#boutonSauvegarder_barre-class_method" title="Fenetre.boutonSauvegarder_barre (method)">boutonSauvegarder_barre</a></span>, <span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span>, <span class='object_link'><a href="Fenetre.html#creerBarreMenu-class_method" title="Fenetre.creerBarreMenu (method)">creerBarreMenu</a></span>, <span class='object_link'><a href="Fenetre.html#creerBoxBottom-class_method" title="Fenetre.creerBoxBottom (method)">creerBoxBottom</a></span>, <span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span>, <span class='object_link'><a href="Fenetre.html#creerPopup-class_method" title="Fenetre.creerPopup (method)">creerPopup</a></span>, <span class='object_link'><a href="Fenetre.html#css-class_method" title="Fenetre.css (method)">css</a></span>, <span class='object_link'><a href="Fenetre.html#detruire-class_method" title="Fenetre.detruire (method)">detruire</a></span>, <span class='object_link'><a href="Fenetre.html#enteteFenetre-class_method" title="Fenetre.enteteFenetre (method)">enteteFenetre</a></span>, <span class='object_link'><a href="Fenetre.html#fenetre-class_method" title="Fenetre.fenetre (method)">fenetre</a></span>, <span class='object_link'><a href="Fenetre.html#fenetrePrecedente-class_method" title="Fenetre.fenetrePrecedente (method)">fenetrePrecedente</a></span>, <span class='object_link'><a href="Fenetre.html#fenetrePrecedente=-class_method" title="Fenetre.fenetrePrecedente= (method)">fenetrePrecedente=</a></span>, <span class='object_link'><a href="Fenetre.html#fenetreStyle-class_method" title="Fenetre.fenetreStyle (method)">fenetreStyle</a></span>, <span class='object_link'><a href="Fenetre.html#viderFenetre-class_method" title="Fenetre.viderFenetre (method)">viderFenetre</a></span></p>
379
+ <div id="constructor_details" class="method_details_list">
380
+ <h2>Constructor Details</h2>
381
+
382
+ <div class="method_details first">
383
+ <h3 class="signature first" id="initialize-instance_method">
384
+
385
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="View (class)">View</a></span></tt>
386
+
387
+
388
+
389
+
390
+
391
+ </h3><div class="docstring">
392
+ <div class="discussion">
393
+
394
+ <p>Returns a new instance of View</p>
395
+
396
+
397
+ </div>
398
+ </div>
399
+ <div class="tags">
400
+
401
+
402
+ </div><table class="source_code">
403
+ <tr>
404
+ <td>
405
+ <pre class="lines">
406
+
407
+
408
+ 15
409
+ 16
410
+ 17
411
+ 18
412
+ 19
413
+ 20</pre>
414
+ </td>
415
+ <td>
416
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 15</span>
417
+
418
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
419
+ <span class='ivar'>@content</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span>
420
+ <span class='ivar'>@controller</span> <span class='op'>=</span> <span class='kw'>nil</span>
421
+ <span class='ivar'>@window</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_fenetre'><span class='object_link'><a href="Fenetre.html#fenetre-class_method" title="Fenetre.fenetre (method)">fenetre</a></span></span>
422
+ <span class='ivar'>@headerBar</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_enteteFenetre'><span class='object_link'><a href="Fenetre.html#enteteFenetre-class_method" title="Fenetre.enteteFenetre (method)">enteteFenetre</a></span></span>
423
+ <span class='kw'>end</span></pre>
424
+ </td>
425
+ </tr>
426
+ </table>
427
+ </div>
428
+
429
+ </div>
430
+
431
+ <div id="instance_attr_details" class="attr_details">
432
+ <h2>Instance Attribute Details</h2>
433
+
434
+
435
+ <span id=""></span>
436
+ <div class="method_details first">
437
+ <h3 class="signature first" id="content=-instance_method">
438
+
439
+ #<strong>content=</strong>(value) &#x21d2; <tt>Object</tt> <span class="extras">(writeonly)</span>
440
+
441
+
442
+
443
+
444
+
445
+ </h3><div class="docstring">
446
+ <div class="discussion">
447
+
448
+ <p>Sets the attribute content</p>
449
+
450
+
451
+ </div>
452
+ </div>
453
+ <div class="tags">
454
+ <p class="tag_title">Parameters:</p>
455
+ <ul class="param">
456
+
457
+ <li>
458
+
459
+ <span class='name'>value</span>
460
+
461
+
462
+ <span class='type'></span>
463
+
464
+
465
+
466
+ &mdash;
467
+ <div class='inline'>
468
+ <p>the value to set the attribute content to.</p>
469
+ </div>
470
+
471
+ </li>
472
+
473
+ </ul>
474
+
475
+
476
+ </div><table class="source_code">
477
+ <tr>
478
+ <td>
479
+ <pre class="lines">
480
+
481
+
482
+ 13
483
+ 14
484
+ 15</pre>
485
+ </td>
486
+ <td>
487
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 13</span>
488
+
489
+ <span class='kw'>def</span> <span class='id identifier rubyid_content='>content=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
490
+ <span class='ivar'>@content</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
491
+ <span class='kw'>end</span></pre>
492
+ </td>
493
+ </tr>
494
+ </table>
495
+ </div>
496
+
497
+
498
+ <span id="controller=-instance_method"></span>
499
+ <div class="method_details ">
500
+ <h3 class="signature " id="controller-instance_method">
501
+
502
+ #<strong>controller</strong> &#x21d2; <tt>Object</tt>
503
+
504
+
505
+
506
+
507
+
508
+ </h3><div class="docstring">
509
+ <div class="discussion">
510
+
511
+ <p>Returns the value of attribute controller</p>
512
+
513
+
514
+ </div>
515
+ </div>
516
+ <div class="tags">
517
+
518
+
519
+ </div><table class="source_code">
520
+ <tr>
521
+ <td>
522
+ <pre class="lines">
523
+
524
+
525
+ 12
526
+ 13
527
+ 14</pre>
528
+ </td>
529
+ <td>
530
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 12</span>
531
+
532
+ <span class='kw'>def</span> <span class='id identifier rubyid_controller'>controller</span>
533
+ <span class='ivar'>@controller</span>
534
+ <span class='kw'>end</span></pre>
535
+ </td>
536
+ </tr>
537
+ </table>
538
+ </div>
539
+
540
+
541
+ <span id="headerBar=-instance_method"></span>
542
+ <div class="method_details ">
543
+ <h3 class="signature " id="headerBar-instance_method">
544
+
545
+ #<strong>headerBar</strong> &#x21d2; <tt>Object</tt>
546
+
547
+
548
+
549
+
550
+
551
+ </h3><div class="docstring">
552
+ <div class="discussion">
553
+
554
+ <p>Returns the value of attribute headerBar</p>
555
+
556
+
557
+ </div>
558
+ </div>
559
+ <div class="tags">
560
+
561
+
562
+ </div><table class="source_code">
563
+ <tr>
564
+ <td>
565
+ <pre class="lines">
566
+
567
+
568
+ 12
569
+ 13
570
+ 14</pre>
571
+ </td>
572
+ <td>
573
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 12</span>
574
+
575
+ <span class='kw'>def</span> <span class='id identifier rubyid_headerBar'>headerBar</span>
576
+ <span class='ivar'>@headerBar</span>
577
+ <span class='kw'>end</span></pre>
578
+ </td>
579
+ </tr>
580
+ </table>
581
+ </div>
582
+
583
+
584
+ <span id="window=-instance_method"></span>
585
+ <div class="method_details ">
586
+ <h3 class="signature " id="window-instance_method">
587
+
588
+ #<strong>window</strong> &#x21d2; <tt>Object</tt>
589
+
590
+
591
+
592
+
593
+
594
+ </h3><div class="docstring">
595
+ <div class="discussion">
596
+
597
+ <p>Returns the value of attribute window</p>
598
+
599
+
600
+ </div>
601
+ </div>
602
+ <div class="tags">
603
+
604
+
605
+ </div><table class="source_code">
606
+ <tr>
607
+ <td>
608
+ <pre class="lines">
609
+
610
+
611
+ 12
612
+ 13
613
+ 14</pre>
614
+ </td>
615
+ <td>
616
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 12</span>
617
+
618
+ <span class='kw'>def</span> <span class='id identifier rubyid_window'>window</span>
619
+ <span class='ivar'>@window</span>
620
+ <span class='kw'>end</span></pre>
621
+ </td>
622
+ </tr>
623
+ </table>
624
+ </div>
625
+
626
+ </div>
627
+
628
+
629
+ <div id="class_method_details" class="method_details_list">
630
+ <h2>Class Method Details</h2>
631
+
632
+
633
+ <div class="method_details first">
634
+ <h3 class="signature first" id="inherited-class_method">
635
+
636
+ .<strong>inherited</strong>(subclass) &#x21d2; <tt>Object</tt>
637
+
638
+
639
+
640
+
641
+
642
+ </h3><div class="docstring">
643
+ <div class="discussion">
644
+
645
+ <p>Invoke methods when inherited</p>
646
+
647
+
648
+ </div>
649
+ </div>
650
+ <div class="tags">
651
+ <p class="tag_title">Parameters:</p>
652
+ <ul class="param">
653
+
654
+ <li>
655
+
656
+ <span class='name'>subclass</span>
657
+
658
+
659
+ <span class='type'></span>
660
+
661
+
662
+
663
+ &mdash;
664
+ <div class='inline'>
665
+ <p>The subclass</p>
666
+ </div>
667
+
668
+ </li>
669
+
670
+ </ul>
671
+
672
+ <p class="tag_title">Returns:</p>
673
+ <ul class="return">
674
+
675
+ <li>
676
+
677
+
678
+ <span class='type'></span>
679
+
680
+
681
+
682
+
683
+ <div class='inline'>
684
+ <p>Itself</p>
685
+ </div>
686
+
687
+ </li>
688
+
689
+ </ul>
690
+
691
+ </div><table class="source_code">
692
+ <tr>
693
+ <td>
694
+ <pre class="lines">
695
+
696
+
697
+ 29
698
+ 30
699
+ 31
700
+ 32
701
+ 33
702
+ 34</pre>
703
+ </td>
704
+ <td>
705
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 29</span>
706
+
707
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_inherited'>inherited</span><span class='lparen'>(</span><span class='id identifier rubyid_subclass'>subclass</span><span class='rparen'>)</span>
708
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='rparen'>)</span>
709
+ <span class='kw'>super</span>
710
+
711
+ <span class='kw'>return</span> <span class='kw'>self</span>
712
+ <span class='kw'>end</span></pre>
713
+ </td>
714
+ </tr>
715
+ </table>
716
+ </div>
717
+
718
+ </div>
719
+
720
+ <div id="instance_method_details" class="method_details_list">
721
+ <h2>Instance Method Details</h2>
722
+
723
+
724
+ <div class="method_details first">
725
+ <h3 class="signature first" id="run-instance_method">
726
+
727
+ #<strong>run</strong> &#x21d2; <tt>Object</tt>
728
+
729
+
730
+
731
+
732
+
733
+ </h3><div class="docstring">
734
+ <div class="discussion">
735
+
736
+ <p>Invoke all methods from view</p>
737
+
738
+
739
+ </div>
740
+ </div>
741
+ <div class="tags">
742
+
743
+
744
+ </div><table class="source_code">
745
+ <tr>
746
+ <td>
747
+ <pre class="lines">
748
+
749
+
750
+ 50
751
+ 51
752
+ 52
753
+ 53
754
+ 54</pre>
755
+ </td>
756
+ <td>
757
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 50</span>
758
+
759
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='rparen'>)</span>
760
+ <span class='kw'>if</span> <span class='const'><span class='object_link'><a href="Core.html" title="Core (module)">Core</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Core.html#DEBUG-constant" title="Core::DEBUG (constant)">DEBUG</a></span></span>
761
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>View </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_content'> can&#39;t be build because run method is not redefined.</span><span class='tstring_end'>&quot;</span></span>
762
+ <span class='kw'>end</span>
763
+ <span class='kw'>end</span></pre>
764
+ </td>
765
+ </tr>
766
+ </table>
767
+ </div>
768
+
769
+ <div class="method_details ">
770
+ <h3 class="signature " id="setInstanceVars-instance_method">
771
+
772
+ #<strong>setInstanceVars</strong> &#x21d2; <tt>Object</tt>
773
+
774
+
775
+
776
+
777
+
778
+ </h3><div class="docstring">
779
+ <div class="discussion">
780
+
781
+ <p>Create instance variables from @content provided by controller.</p>
782
+
783
+
784
+ </div>
785
+ </div>
786
+ <div class="tags">
787
+
788
+ <p class="tag_title">Returns:</p>
789
+ <ul class="return">
790
+
791
+ <li>
792
+
793
+
794
+ <span class='type'></span>
795
+
796
+
797
+
798
+
799
+ <div class='inline'>
800
+ <p>Itself</p>
801
+ </div>
802
+
803
+ </li>
804
+
805
+ </ul>
806
+
807
+ </div><table class="source_code">
808
+ <tr>
809
+ <td>
810
+ <pre class="lines">
811
+
812
+
813
+ 40
814
+ 41
815
+ 42
816
+ 43
817
+ 44</pre>
818
+ </td>
819
+ <td>
820
+ <pre class="code"><span class="info file"># File 'app/core/View.rb', line 40</span>
821
+
822
+ <span class='kw'>def</span> <span class='id identifier rubyid_setInstanceVars'>setInstanceVars</span> <span class='lparen'>(</span><span class='rparen'>)</span>
823
+ <span class='ivar'>@content</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='op'>|</span> <span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>@</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
824
+
825
+ <span class='kw'>return</span> <span class='kw'>self</span>
826
+ <span class='kw'>end</span></pre>
827
+ </td>
828
+ </tr>
829
+ </table>
830
+ </div>
831
+
832
+ </div>
833
+
834
+ </div>
835
+
836
+ <div id="footer">
837
+ Generated on Sat Apr 22 22:47:30 2017 by
838
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
839
+ 0.9.8 (ruby-2.3.3).
840
+ </div>
841
+
842
+ </div>
843
+ </body>
844
+ </html>