student_mvp 0.1.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.
Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +35 -0
  3. data/Rakefile +4 -0
  4. data/doc/Add_student_presenter.html +238 -0
  5. data/doc/App_logger.html +386 -0
  6. data/doc/Base_presenter.html +265 -0
  7. data/doc/Binary_tree.html +300 -0
  8. data/doc/Binary_tree_iterator.html +217 -0
  9. data/doc/Contact_sort_decorator.html +219 -0
  10. data/doc/DB_client.html +252 -0
  11. data/doc/Data_list.html +625 -0
  12. data/doc/Data_list_student_short.html +148 -0
  13. data/doc/Data_storage_strategy.html +178 -0
  14. data/doc/Data_table.html +264 -0
  15. data/doc/Deep_dup.html +152 -0
  16. data/doc/Edit_contacts_presenter.html +199 -0
  17. data/doc/Edit_git_presenter.html +192 -0
  18. data/doc/Edit_student_presenter.html +464 -0
  19. data/doc/Field_filter_decorator.html +219 -0
  20. data/doc/Filter.html +148 -0
  21. data/doc/Filter_decorator.html +209 -0
  22. data/doc/Full_name_filter_decorator.html +211 -0
  23. data/doc/Full_name_sort_decorator.html +217 -0
  24. data/doc/Gemfile.html +98 -0
  25. data/doc/Git_sort_decorator.html +220 -0
  26. data/doc/Has_not_field_filter_decorator.html +209 -0
  27. data/doc/JSON_storage_strategy.html +183 -0
  28. data/doc/Person.html +511 -0
  29. data/doc/README_md.html +147 -0
  30. data/doc/Rakefile.html +94 -0
  31. data/doc/Replace_student_presenter.html +204 -0
  32. data/doc/Sort_decorator.html +214 -0
  33. data/doc/Student.html +755 -0
  34. data/doc/StudentMvp/Error.html +105 -0
  35. data/doc/StudentMvp.html +111 -0
  36. data/doc/Student_list_presenter.html +667 -0
  37. data/doc/Student_short.html +398 -0
  38. data/doc/Students_list.html +341 -0
  39. data/doc/Students_list_DB.html +361 -0
  40. data/doc/Students_list_file.html +460 -0
  41. data/doc/Students_list_file_adapter.html +341 -0
  42. data/doc/Students_list_interface.html +298 -0
  43. data/doc/YAML_storage_strategy.html +183 -0
  44. data/doc/bin/setup.html +96 -0
  45. data/doc/created.rid +44 -0
  46. data/doc/css/fonts.css +167 -0
  47. data/doc/css/rdoc.css +662 -0
  48. data/doc/fonts/Lato-Light.ttf +0 -0
  49. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  50. data/doc/fonts/Lato-Regular.ttf +0 -0
  51. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  52. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  53. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  54. data/doc/images/add.png +0 -0
  55. data/doc/images/arrow_up.png +0 -0
  56. data/doc/images/brick.png +0 -0
  57. data/doc/images/brick_link.png +0 -0
  58. data/doc/images/bug.png +0 -0
  59. data/doc/images/bullet_black.png +0 -0
  60. data/doc/images/bullet_toggle_minus.png +0 -0
  61. data/doc/images/bullet_toggle_plus.png +0 -0
  62. data/doc/images/date.png +0 -0
  63. data/doc/images/delete.png +0 -0
  64. data/doc/images/find.png +0 -0
  65. data/doc/images/loadingAnimation.gif +0 -0
  66. data/doc/images/macFFBgHack.png +0 -0
  67. data/doc/images/package.png +0 -0
  68. data/doc/images/page_green.png +0 -0
  69. data/doc/images/page_white_text.png +0 -0
  70. data/doc/images/page_white_width.png +0 -0
  71. data/doc/images/plugin.png +0 -0
  72. data/doc/images/ruby.png +0 -0
  73. data/doc/images/tag_blue.png +0 -0
  74. data/doc/images/tag_green.png +0 -0
  75. data/doc/images/transparent.png +0 -0
  76. data/doc/images/wrench.png +0 -0
  77. data/doc/images/wrench_orange.png +0 -0
  78. data/doc/images/zoom.png +0 -0
  79. data/doc/index.html +174 -0
  80. data/doc/js/darkfish.js +114 -0
  81. data/doc/js/navigation.js +105 -0
  82. data/doc/js/navigation.js.gz +0 -0
  83. data/doc/js/search.js +110 -0
  84. data/doc/js/search_index.js +1 -0
  85. data/doc/js/search_index.js.gz +0 -0
  86. data/doc/js/searcher.js +229 -0
  87. data/doc/js/searcher.js.gz +0 -0
  88. data/doc/table_of_contents.html +1047 -0
  89. data/lib/data_access/DB_client/DB_client.rb +26 -0
  90. data/lib/deep_dup/deep_dup.rb +14 -0
  91. data/lib/logger/logger.rb +64 -0
  92. data/lib/models/binary_tree/binary_tree.rb +163 -0
  93. data/lib/models/binary_tree/binary_tree_iterator.rb +36 -0
  94. data/lib/models/data_list/data_list.rb +97 -0
  95. data/lib/models/data_list/data_list_student_short.rb +16 -0
  96. data/lib/models/data_storage_strategy/JSON_storage_strategy.rb +20 -0
  97. data/lib/models/data_storage_strategy/YAML_storage_strategy.rb +20 -0
  98. data/lib/models/data_storage_strategy/data_storage_strategy.rb +11 -0
  99. data/lib/models/data_table/data_table.rb +52 -0
  100. data/lib/models/filter/filter.rb +5 -0
  101. data/lib/models/filter/filter_decorator.rb +14 -0
  102. data/lib/models/filter/sort_decorator.rb +15 -0
  103. data/lib/models/filter/student_filters/contact_sort_decorator.rb +50 -0
  104. data/lib/models/filter/student_filters/field_filter_decorator.rb +34 -0
  105. data/lib/models/filter/student_filters/full_name_filter_decorator.rb +26 -0
  106. data/lib/models/filter/student_filters/full_name_sort_decorator.rb +32 -0
  107. data/lib/models/filter/student_filters/git_sort_decorator.rb +35 -0
  108. data/lib/models/filter/student_filters/has_not_field_filter_decorator.rb +24 -0
  109. data/lib/models/person/person.rb +72 -0
  110. data/lib/models/student/student.rb +204 -0
  111. data/lib/models/student_short/student_short.rb +98 -0
  112. data/lib/models/students_list/students_list.rb +32 -0
  113. data/lib/models/students_list/students_list_DB.rb +95 -0
  114. data/lib/models/students_list/students_list_file.rb +134 -0
  115. data/lib/models/students_list/students_list_file_adapter.rb +45 -0
  116. data/lib/models/students_list/students_list_interface.rb +25 -0
  117. data/lib/presenters/base_presenters/base_presenter.rb +26 -0
  118. data/lib/presenters/base_presenters/student_list_presenter.rb +273 -0
  119. data/lib/presenters/edit_student/add_student_presenter.rb +46 -0
  120. data/lib/presenters/edit_student/edit_contacts_presenter.rb +36 -0
  121. data/lib/presenters/edit_student/edit_git_presenter.rb +28 -0
  122. data/lib/presenters/edit_student/edit_student_presenter.rb +109 -0
  123. data/lib/presenters/edit_student/replace_student_presenter.rb +37 -0
  124. data/lib/student_mvp/version.rb +5 -0
  125. data/lib/student_mvp.rb +8 -0
  126. data/sig/student_mvp.rbs +4 -0
  127. metadata +253 -0
@@ -0,0 +1,300 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+
8
+ <title>class Binary_tree - RDoc Documentation</title>
9
+
10
+ <meta name="keywords" content="ruby,class,Binary_tree">
11
+
12
+ <meta name="description" content="Documentation for the Binary_tree class">
13
+
14
+ <script type="text/javascript">
15
+ var rdoc_rel_prefix = "./";
16
+ var index_rel_prefix = "./";
17
+ </script>
18
+
19
+ <script src="./js/navigation.js" defer></script>
20
+ <script src="./js/search.js" defer></script>
21
+ <script src="./js/search_index.js" defer></script>
22
+ <script src="./js/searcher.js" defer></script>
23
+ <script src="./js/darkfish.js" defer></script>
24
+
25
+ <link href="./css/fonts.css" rel="stylesheet">
26
+ <link href="./css/rdoc.css" rel="stylesheet">
27
+
28
+
29
+ <body id="top" role="document" class="class">
30
+ <div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
31
+ <span aria-hidden="true">&#9776;</span>
32
+ </div>
33
+
34
+
35
+ <nav id="navigation" role="navigation">
36
+ <div id="project-navigation">
37
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
38
+ <h2>
39
+ <a href="./index.html" rel="home">Home</a>
40
+ </h2>
41
+
42
+ <div id="table-of-contents-navigation">
43
+ <a href="./table_of_contents.html#pages">Pages</a>
44
+ <a href="./table_of_contents.html#classes">Classes</a>
45
+ <a href="./table_of_contents.html#methods">Methods</a>
46
+ </div>
47
+ </div>
48
+
49
+ <div id="search-section" role="search" class="project-section initially-hidden">
50
+ <form action="#" method="get" accept-charset="utf-8">
51
+ <div id="search-field-wrapper">
52
+ <input id="search-field" role="combobox" aria-label="Search"
53
+ aria-autocomplete="list" aria-controls="search-results"
54
+ type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
55
+ title="Type to search, Up and Down to navigate, Enter to load">
56
+ </div>
57
+
58
+ <ul id="search-results" aria-label="Search Results"
59
+ aria-busy="false" aria-expanded="false"
60
+ aria-atomic="false" class="initially-hidden"></ul>
61
+ </form>
62
+ </div>
63
+
64
+ </div>
65
+
66
+
67
+
68
+ <div id="parent-class-section" class="nav-section">
69
+ <h3>Ancestors</h3>
70
+ <ul><li>Object</li></ul>
71
+ </div>
72
+
73
+
74
+ <div id="includes-section" class="nav-section">
75
+ <h3>Included Modules</h3>
76
+
77
+ <ul class="link-list">
78
+ <li><span class="include">Enumerable</span>
79
+ </ul>
80
+ </div>
81
+
82
+
83
+
84
+ <div class="nav-section">
85
+ <h3>Class Methods</h3>
86
+ <ul class="link-list" role="directory">
87
+ <li ><a href="#method-c-new">new</a></li>
88
+ </ul>
89
+ </div>
90
+
91
+
92
+
93
+ <div class="nav-section">
94
+ <h3>Instance Methods</h3>
95
+ <ul class="link-list" role="directory">
96
+ <li ><a href="#method-i-add">add</a></li>
97
+ <li ><a href="#method-i-each">each</a></li>
98
+ <li ><a href="#method-i-find">find</a></li>
99
+ </ul>
100
+ </div>
101
+
102
+
103
+
104
+ <footer id="validator-badges" role="contentinfo">
105
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
106
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
107
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
108
+ </footer>
109
+
110
+ </nav>
111
+
112
+ <main role="main" aria-labelledby="class-Binary_tree">
113
+ <h1 id="class-Binary_tree" class="anchor-link class">
114
+ class Binary_tree
115
+ </h1>
116
+
117
+ <section class="description">
118
+
119
+ </section>
120
+
121
+ <section id="5Buntitled-5D" class="documentation-section anchor-link">
122
+
123
+
124
+ <section class="constants-list">
125
+ <header>
126
+ <h3>Constants</h3>
127
+ </header>
128
+ <dl>
129
+ <dt id="BLACK">BLACK
130
+ <dd>
131
+
132
+ <dt id="RED">RED
133
+ <dd>
134
+
135
+ </dl>
136
+ </section>
137
+
138
+ <section class="attribute-method-details" class="method-section">
139
+ <header>
140
+ <h3>Attributes</h3>
141
+ </header>
142
+
143
+ <div id="attribute-i-root" class="method-detail anchor-link">
144
+ <div class="method-heading attribute-method-heading">
145
+ <a href="#attribute-i-root" title="Link to this attribute">
146
+ <span class="method-name">root</span>
147
+ <span class="attribute-access-type">[RW]</span>
148
+ </a>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+
153
+ </div>
154
+ </div>
155
+ </section>
156
+
157
+
158
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
159
+ <header>
160
+ <h3>Public Class Methods</h3>
161
+ </header>
162
+
163
+ <div id="method-c-new" class="method-detail anchor-link ">
164
+ <div class="method-header">
165
+ <div class="method-heading">
166
+ <a href="#method-c-new" title="Link to this method">
167
+ <span class="method-name">new</span>
168
+ <span class="method-args">()</span>
169
+ </a>
170
+ </div>
171
+ </div>
172
+
173
+ <div class="method-controls">
174
+ <details class="method-source-toggle">
175
+ <summary>Source</summary>
176
+ </details>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+ <div class="method-source-code" id="new-source">
181
+ <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree.rb, line 23</span>
182
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
183
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span> = <span class="ruby-keyword">nil</span>
184
+ <span class="ruby-keyword">end</span></pre>
185
+ </div>
186
+
187
+ </div>
188
+
189
+
190
+ </div>
191
+
192
+ </section>
193
+
194
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
195
+ <header>
196
+ <h3>Public Instance Methods</h3>
197
+ </header>
198
+
199
+ <div id="method-i-add" class="method-detail anchor-link ">
200
+ <div class="method-header">
201
+ <div class="method-heading">
202
+ <a href="#method-i-add" title="Link to this method">
203
+ <span class="method-name">add</span>
204
+ <span class="method-args">(value)</span>
205
+ </a>
206
+ </div>
207
+ </div>
208
+
209
+ <div class="method-controls">
210
+ <details class="method-source-toggle">
211
+ <summary>Source</summary>
212
+ </details>
213
+ </div>
214
+
215
+ <div class="method-description">
216
+ <div class="method-source-code" id="add-source">
217
+ <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree.rb, line 27</span>
218
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add</span>(<span class="ruby-identifier">value</span>)
219
+ <span class="ruby-identifier">new_node</span> = <span class="ruby-constant">Node</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">value</span>)
220
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span> = <span class="ruby-identifier">insert</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span>, <span class="ruby-identifier">new_node</span>)
221
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">balance</span>(<span class="ruby-identifier">new_node</span>)
222
+ <span class="ruby-keyword">end</span></pre>
223
+ </div>
224
+
225
+ </div>
226
+
227
+
228
+ </div>
229
+
230
+ <div id="method-i-each" class="method-detail anchor-link ">
231
+ <div class="method-header">
232
+ <div class="method-heading">
233
+ <a href="#method-i-each" title="Link to this method">
234
+ <span class="method-name">each</span>
235
+ <span class="method-args">(&amp;block)</span>
236
+ </a>
237
+ </div>
238
+ </div>
239
+
240
+ <div class="method-controls">
241
+ <details class="method-source-toggle">
242
+ <summary>Source</summary>
243
+ </details>
244
+ </div>
245
+
246
+ <div class="method-description">
247
+ <div class="method-source-code" id="each-source">
248
+ <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree.rb, line 33</span>
249
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
250
+ <span class="ruby-identifier">iterator</span> = <span class="ruby-constant">Binary_tree_iterator</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span>)
251
+ <span class="ruby-identifier">iterator</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
252
+ <span class="ruby-keyword">end</span></pre>
253
+ </div>
254
+
255
+ </div>
256
+
257
+
258
+ </div>
259
+
260
+ <div id="method-i-find" class="method-detail anchor-link ">
261
+ <div class="method-header">
262
+ <div class="method-heading">
263
+ <a href="#method-i-find" title="Link to this method">
264
+ <span class="method-name">find</span>
265
+ <span class="method-args">(key)</span>
266
+ </a>
267
+ </div>
268
+ </div>
269
+
270
+ <div class="method-controls">
271
+ <details class="method-source-toggle">
272
+ <summary>Source</summary>
273
+ </details>
274
+ </div>
275
+
276
+ <div class="method-description">
277
+ <div class="method-source-code" id="find-source">
278
+ <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree.rb, line 38</span>
279
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">find</span>(<span class="ruby-identifier">key</span>)
280
+ <span class="ruby-identifier">result</span> = <span class="ruby-keyword">nil</span>
281
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
282
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">key</span>
283
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">value</span>
284
+ <span class="ruby-keyword">break</span>
285
+ <span class="ruby-keyword">end</span>
286
+ <span class="ruby-keyword">end</span>
287
+ <span class="ruby-identifier">result</span>
288
+ <span class="ruby-keyword">end</span></pre>
289
+ </div>
290
+
291
+ </div>
292
+
293
+
294
+ </div>
295
+
296
+ </section>
297
+
298
+ </section>
299
+ </main>
300
+
@@ -0,0 +1,217 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+
8
+ <title>class Binary_tree_iterator - RDoc Documentation</title>
9
+
10
+ <meta name="keywords" content="ruby,class,Binary_tree_iterator">
11
+
12
+ <meta name="description" content="Documentation for the Binary_tree_iterator class">
13
+
14
+ <script type="text/javascript">
15
+ var rdoc_rel_prefix = "./";
16
+ var index_rel_prefix = "./";
17
+ </script>
18
+
19
+ <script src="./js/navigation.js" defer></script>
20
+ <script src="./js/search.js" defer></script>
21
+ <script src="./js/search_index.js" defer></script>
22
+ <script src="./js/searcher.js" defer></script>
23
+ <script src="./js/darkfish.js" defer></script>
24
+
25
+ <link href="./css/fonts.css" rel="stylesheet">
26
+ <link href="./css/rdoc.css" rel="stylesheet">
27
+
28
+
29
+ <body id="top" role="document" class="class">
30
+ <div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation">
31
+ <span aria-hidden="true">&#9776;</span>
32
+ </div>
33
+
34
+
35
+ <nav id="navigation" role="navigation">
36
+ <div id="project-navigation">
37
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
38
+ <h2>
39
+ <a href="./index.html" rel="home">Home</a>
40
+ </h2>
41
+
42
+ <div id="table-of-contents-navigation">
43
+ <a href="./table_of_contents.html#pages">Pages</a>
44
+ <a href="./table_of_contents.html#classes">Classes</a>
45
+ <a href="./table_of_contents.html#methods">Methods</a>
46
+ </div>
47
+ </div>
48
+
49
+ <div id="search-section" role="search" class="project-section initially-hidden">
50
+ <form action="#" method="get" accept-charset="utf-8">
51
+ <div id="search-field-wrapper">
52
+ <input id="search-field" role="combobox" aria-label="Search"
53
+ aria-autocomplete="list" aria-controls="search-results"
54
+ type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false"
55
+ title="Type to search, Up and Down to navigate, Enter to load">
56
+ </div>
57
+
58
+ <ul id="search-results" aria-label="Search Results"
59
+ aria-busy="false" aria-expanded="false"
60
+ aria-atomic="false" class="initially-hidden"></ul>
61
+ </form>
62
+ </div>
63
+
64
+ </div>
65
+
66
+
67
+
68
+ <div id="parent-class-section" class="nav-section">
69
+ <h3>Ancestors</h3>
70
+ <ul><li>Object</li></ul>
71
+ </div>
72
+
73
+
74
+ <div id="includes-section" class="nav-section">
75
+ <h3>Included Modules</h3>
76
+
77
+ <ul class="link-list">
78
+ <li><span class="include">Enumerable</span>
79
+ </ul>
80
+ </div>
81
+
82
+
83
+
84
+ <div class="nav-section">
85
+ <h3>Class Methods</h3>
86
+ <ul class="link-list" role="directory">
87
+ <li ><a href="#method-c-new">new</a></li>
88
+ </ul>
89
+ </div>
90
+
91
+
92
+
93
+ <div class="nav-section">
94
+ <h3>Instance Methods</h3>
95
+ <ul class="link-list" role="directory">
96
+ <li ><a href="#method-i-each">each</a></li>
97
+ </ul>
98
+ </div>
99
+
100
+
101
+
102
+ <footer id="validator-badges" role="contentinfo">
103
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
104
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
105
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
106
+ </footer>
107
+
108
+ </nav>
109
+
110
+ <main role="main" aria-labelledby="class-Binary_tree_iterator">
111
+ <h1 id="class-Binary_tree_iterator" class="anchor-link class">
112
+ class Binary_tree_iterator
113
+ </h1>
114
+
115
+ <section class="description">
116
+
117
+ </section>
118
+
119
+ <section id="5Buntitled-5D" class="documentation-section anchor-link">
120
+
121
+
122
+
123
+ <section class="attribute-method-details" class="method-section">
124
+ <header>
125
+ <h3>Attributes</h3>
126
+ </header>
127
+
128
+ <div id="attribute-i-root" class="method-detail anchor-link">
129
+ <div class="method-heading attribute-method-heading">
130
+ <a href="#attribute-i-root" title="Link to this attribute">
131
+ <span class="method-name">root</span>
132
+ <span class="attribute-access-type">[RW]</span>
133
+ </a>
134
+ </div>
135
+
136
+ <div class="method-description">
137
+
138
+ </div>
139
+ </div>
140
+ </section>
141
+
142
+
143
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
144
+ <header>
145
+ <h3>Public Class Methods</h3>
146
+ </header>
147
+
148
+ <div id="method-c-new" class="method-detail anchor-link ">
149
+ <div class="method-header">
150
+ <div class="method-heading">
151
+ <a href="#method-c-new" title="Link to this method">
152
+ <span class="method-name">new</span>
153
+ <span class="method-args">(root)</span>
154
+ </a>
155
+ </div>
156
+ </div>
157
+
158
+ <div class="method-controls">
159
+ <details class="method-source-toggle">
160
+ <summary>Source</summary>
161
+ </details>
162
+ </div>
163
+
164
+ <div class="method-description">
165
+ <div class="method-source-code" id="new-source">
166
+ <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree_iterator.rb, line 6</span>
167
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">root</span>)
168
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">root</span> = <span class="ruby-identifier">root</span>
169
+ <span class="ruby-keyword">end</span></pre>
170
+ </div>
171
+
172
+ </div>
173
+
174
+
175
+ </div>
176
+
177
+ </section>
178
+
179
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
180
+ <header>
181
+ <h3>Public Instance Methods</h3>
182
+ </header>
183
+
184
+ <div id="method-i-each" class="method-detail anchor-link ">
185
+ <div class="method-header">
186
+ <div class="method-heading">
187
+ <a href="#method-i-each" title="Link to this method">
188
+ <span class="method-name">each</span>
189
+ <span class="method-args">(&amp;block)</span>
190
+ </a>
191
+ </div>
192
+ </div>
193
+
194
+ <div class="method-controls">
195
+ <details class="method-source-toggle">
196
+ <summary>Source</summary>
197
+ </details>
198
+ </div>
199
+
200
+ <div class="method-description">
201
+ <div class="method-source-code" id="each-source">
202
+ <pre><span class="ruby-comment"># File lib/models/binary_tree/binary_tree_iterator.rb, line 10</span>
203
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
204
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">enumerator</span>.<span class="ruby-identifier">each</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
205
+ <span class="ruby-keyword">end</span></pre>
206
+ </div>
207
+
208
+ </div>
209
+
210
+
211
+ </div>
212
+
213
+ </section>
214
+
215
+ </section>
216
+ </main>
217
+