student_mvp 0.1.8 → 0.1.9
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.
- checksums.yaml +4 -4
- data/doc/App_logger.html +47 -33
- data/doc/DB_client.html +20 -10
- data/doc/created.rid +10 -44
- data/doc/index.html +2 -81
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/table_of_contents.html +9 -697
- data/lib/data_access/DB_client/DB_client.rb +20 -1
- data/lib/logger/logger.rb +35 -0
- data/lib/student_mvp/version.rb +1 -1
- metadata +55 -34
- data/doc/Binary_tree.html +0 -300
- data/doc/Binary_tree_iterator.html +0 -217
- data/doc/Contact_sort_decorator.html +0 -219
- data/doc/Data_list.html +0 -625
- data/doc/Data_list_student_short.html +0 -148
- data/doc/Data_storage_strategy.html +0 -178
- data/doc/Data_table.html +0 -264
- data/doc/Deep_dup.html +0 -152
- data/doc/Field_filter_decorator.html +0 -219
- data/doc/Filter.html +0 -148
- data/doc/Filter_decorator.html +0 -209
- data/doc/Full_name_filter_decorator.html +0 -211
- data/doc/Full_name_sort_decorator.html +0 -217
- data/doc/Gemfile.html +0 -98
- data/doc/Git_sort_decorator.html +0 -220
- data/doc/Has_not_field_filter_decorator.html +0 -209
- data/doc/JSON_storage_strategy.html +0 -183
- data/doc/Person.html +0 -511
- data/doc/README_md.html +0 -147
- data/doc/Rakefile.html +0 -94
- data/doc/Sort_decorator.html +0 -214
- data/doc/Student.html +0 -755
- data/doc/StudentMvp/Error.html +0 -105
- data/doc/StudentMvp.html +0 -111
- data/doc/Student_short.html +0 -398
- data/doc/Students_list.html +0 -341
- data/doc/Students_list_DB.html +0 -361
- data/doc/Students_list_file.html +0 -460
- data/doc/Students_list_file_adapter.html +0 -341
- data/doc/Students_list_interface.html +0 -298
- data/doc/YAML_storage_strategy.html +0 -183
- data/doc/bin/setup.html +0 -96
@@ -1,148 +0,0 @@
|
|
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 Data_list_student_short - RDoc Documentation</title>
|
9
|
-
|
10
|
-
<meta name="keywords" content="ruby,class,Data_list_student_short">
|
11
|
-
|
12
|
-
<meta name="description" content="Documentation for the Data_list_student_short 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">☰</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><a href="Data_list.html">Data_list</a><ul><li>Object</li></ul></li></ul>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<div class="nav-section">
|
79
|
-
<h3>Instance Methods</h3>
|
80
|
-
<ul class="link-list" role="directory">
|
81
|
-
<li ><a href="#method-i-get_names">get_names</a></li>
|
82
|
-
</ul>
|
83
|
-
</div>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
<footer id="validator-badges" role="contentinfo">
|
88
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
89
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
|
90
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
91
|
-
</footer>
|
92
|
-
|
93
|
-
</nav>
|
94
|
-
|
95
|
-
<main role="main" aria-labelledby="class-Data_list_student_short">
|
96
|
-
<h1 id="class-Data_list_student_short" class="anchor-link class">
|
97
|
-
class Data_list_student_short
|
98
|
-
</h1>
|
99
|
-
|
100
|
-
<section class="description">
|
101
|
-
|
102
|
-
</section>
|
103
|
-
|
104
|
-
<section id="5Buntitled-5D" class="documentation-section anchor-link">
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
|
111
|
-
<header>
|
112
|
-
<h3>Public Instance Methods</h3>
|
113
|
-
</header>
|
114
|
-
|
115
|
-
<div id="method-i-get_names" class="method-detail anchor-link ">
|
116
|
-
<div class="method-header">
|
117
|
-
<div class="method-heading">
|
118
|
-
<a href="#method-i-get_names" title="Link to this method">
|
119
|
-
<span class="method-name">get_names</span>
|
120
|
-
<span class="method-args">()</span>
|
121
|
-
</a>
|
122
|
-
</div>
|
123
|
-
</div>
|
124
|
-
|
125
|
-
<div class="method-controls">
|
126
|
-
<details class="method-source-toggle">
|
127
|
-
<summary>Source</summary>
|
128
|
-
</details>
|
129
|
-
</div>
|
130
|
-
|
131
|
-
<div class="method-description">
|
132
|
-
<div class="method-source-code" id="get_names-source">
|
133
|
-
<pre><span class="ruby-comment"># File lib/models/data_list/data_list_student_short.rb, line 6</span>
|
134
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_names</span>
|
135
|
-
[<span class="ruby-string">"№"</span>, <span class="ruby-string">"full name"</span>, <span class="ruby-string">"git"</span>, <span class="ruby-string">"contact"</span>]
|
136
|
-
<span class="ruby-keyword">end</span></pre>
|
137
|
-
</div>
|
138
|
-
<p><a href="Data_list_student_short.html#method-i-get_names"><code>get_names</code></a> for student short</p>
|
139
|
-
</div>
|
140
|
-
|
141
|
-
|
142
|
-
</div>
|
143
|
-
|
144
|
-
</section>
|
145
|
-
|
146
|
-
</section>
|
147
|
-
</main>
|
148
|
-
|
@@ -1,178 +0,0 @@
|
|
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 Data_storage_strategy - RDoc Documentation</title>
|
9
|
-
|
10
|
-
<meta name="keywords" content="ruby,class,Data_storage_strategy">
|
11
|
-
|
12
|
-
<meta name="description" content="Documentation for the Data_storage_strategy 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">☰</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
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<div class="nav-section">
|
79
|
-
<h3>Instance Methods</h3>
|
80
|
-
<ul class="link-list" role="directory">
|
81
|
-
<li ><a href="#method-i-read">read</a></li>
|
82
|
-
<li ><a href="#method-i-write">write</a></li>
|
83
|
-
</ul>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
<footer id="validator-badges" role="contentinfo">
|
89
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
90
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.8.1.
|
91
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
92
|
-
</footer>
|
93
|
-
|
94
|
-
</nav>
|
95
|
-
|
96
|
-
<main role="main" aria-labelledby="class-Data_storage_strategy">
|
97
|
-
<h1 id="class-Data_storage_strategy" class="anchor-link class">
|
98
|
-
class Data_storage_strategy
|
99
|
-
</h1>
|
100
|
-
|
101
|
-
<section class="description">
|
102
|
-
|
103
|
-
</section>
|
104
|
-
|
105
|
-
<section id="5Buntitled-5D" class="documentation-section anchor-link">
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
|
112
|
-
<header>
|
113
|
-
<h3>Public Instance Methods</h3>
|
114
|
-
</header>
|
115
|
-
|
116
|
-
<div id="method-i-read" class="method-detail anchor-link ">
|
117
|
-
<div class="method-header">
|
118
|
-
<div class="method-heading">
|
119
|
-
<a href="#method-i-read" title="Link to this method">
|
120
|
-
<span class="method-name">read</span>
|
121
|
-
<span class="method-args">(file_path)</span>
|
122
|
-
</a>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
|
126
|
-
<div class="method-controls">
|
127
|
-
<details class="method-source-toggle">
|
128
|
-
<summary>Source</summary>
|
129
|
-
</details>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
<div class="method-description">
|
133
|
-
<div class="method-source-code" id="read-source">
|
134
|
-
<pre><span class="ruby-comment"># File lib/models/data_storage_strategy/data_storage_strategy.rb, line 3</span>
|
135
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">read</span>(<span class="ruby-identifier">file_path</span>)
|
136
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>, <span class="ruby-string">'Not implemented'</span>
|
137
|
-
<span class="ruby-keyword">end</span></pre>
|
138
|
-
</div>
|
139
|
-
<p>read from file</p>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div id="method-i-write" class="method-detail anchor-link ">
|
146
|
-
<div class="method-header">
|
147
|
-
<div class="method-heading">
|
148
|
-
<a href="#method-i-write" title="Link to this method">
|
149
|
-
<span class="method-name">write</span>
|
150
|
-
<span class="method-args">(file_path, students)</span>
|
151
|
-
</a>
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div class="method-controls">
|
156
|
-
<details class="method-source-toggle">
|
157
|
-
<summary>Source</summary>
|
158
|
-
</details>
|
159
|
-
</div>
|
160
|
-
|
161
|
-
<div class="method-description">
|
162
|
-
<div class="method-source-code" id="write-source">
|
163
|
-
<pre><span class="ruby-comment"># File lib/models/data_storage_strategy/data_storage_strategy.rb, line 8</span>
|
164
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">write</span>(<span class="ruby-identifier">file_path</span>, <span class="ruby-identifier">students</span>)
|
165
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>, <span class="ruby-string">'Not implemented'</span>
|
166
|
-
<span class="ruby-keyword">end</span></pre>
|
167
|
-
</div>
|
168
|
-
<p>write to file</p>
|
169
|
-
</div>
|
170
|
-
|
171
|
-
|
172
|
-
</div>
|
173
|
-
|
174
|
-
</section>
|
175
|
-
|
176
|
-
</section>
|
177
|
-
</main>
|
178
|
-
|
data/doc/Data_table.html
DELETED
@@ -1,264 +0,0 @@
|
|
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 Data_table - RDoc Documentation</title>
|
9
|
-
|
10
|
-
<meta name="keywords" content="ruby,class,Data_table">
|
11
|
-
|
12
|
-
<meta name="description" content="Documentation for the Data_table 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">☰</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><a class="include" href="Deep_dup.html">Deep_dup</a>
|
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-col_count">col_count</a></li>
|
97
|
-
<li ><a href="#method-i-get">get</a></li>
|
98
|
-
<li ><a href="#method-i-row_count">row_count</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-Data_table">
|
113
|
-
<h1 id="class-Data_table" class="anchor-link class">
|
114
|
-
class Data_table
|
115
|
-
</h1>
|
116
|
-
|
117
|
-
<section class="description">
|
118
|
-
|
119
|
-
</section>
|
120
|
-
|
121
|
-
<section id="5Buntitled-5D" class="documentation-section anchor-link">
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section anchor-link">
|
128
|
-
<header>
|
129
|
-
<h3>Public Class Methods</h3>
|
130
|
-
</header>
|
131
|
-
|
132
|
-
<div id="method-c-new" class="method-detail anchor-link ">
|
133
|
-
<div class="method-header">
|
134
|
-
<div class="method-heading">
|
135
|
-
<a href="#method-c-new" title="Link to this method">
|
136
|
-
<span class="method-name">new</span>
|
137
|
-
<span class="method-args">(data)</span>
|
138
|
-
</a>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
|
142
|
-
<div class="method-controls">
|
143
|
-
<details class="method-source-toggle">
|
144
|
-
<summary>Source</summary>
|
145
|
-
</details>
|
146
|
-
</div>
|
147
|
-
|
148
|
-
<div class="method-description">
|
149
|
-
<div class="method-source-code" id="new-source">
|
150
|
-
<pre><span class="ruby-comment"># File lib/models/data_table/data_table.rb, line 7</span>
|
151
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">data</span>)
|
152
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">data</span> = <span class="ruby-identifier">data</span>
|
153
|
-
<span class="ruby-keyword">end</span></pre>
|
154
|
-
</div>
|
155
|
-
<p>constructor</p>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
|
159
|
-
</div>
|
160
|
-
|
161
|
-
</section>
|
162
|
-
|
163
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link">
|
164
|
-
<header>
|
165
|
-
<h3>Public Instance Methods</h3>
|
166
|
-
</header>
|
167
|
-
|
168
|
-
<div id="method-i-col_count" class="method-detail anchor-link ">
|
169
|
-
<div class="method-header">
|
170
|
-
<div class="method-heading">
|
171
|
-
<a href="#method-i-col_count" title="Link to this method">
|
172
|
-
<span class="method-name">col_count</span>
|
173
|
-
<span class="method-args">()</span>
|
174
|
-
</a>
|
175
|
-
</div>
|
176
|
-
</div>
|
177
|
-
|
178
|
-
<div class="method-controls">
|
179
|
-
<details class="method-source-toggle">
|
180
|
-
<summary>Source</summary>
|
181
|
-
</details>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
<div class="method-source-code" id="col_count-source">
|
186
|
-
<pre><span class="ruby-comment"># File lib/models/data_table/data_table.rb, line 17</span>
|
187
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">col_count</span>
|
188
|
-
<span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">data</span>.<span class="ruby-identifier">empty?</span>
|
189
|
-
<span class="ruby-keyword">return</span> <span class="ruby-value">0</span>
|
190
|
-
<span class="ruby-keyword">end</span>
|
191
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">data</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">size</span>
|
192
|
-
<span class="ruby-keyword">end</span></pre>
|
193
|
-
</div>
|
194
|
-
<p>column count</p>
|
195
|
-
</div>
|
196
|
-
|
197
|
-
|
198
|
-
</div>
|
199
|
-
|
200
|
-
<div id="method-i-get" class="method-detail anchor-link ">
|
201
|
-
<div class="method-header">
|
202
|
-
<div class="method-heading">
|
203
|
-
<a href="#method-i-get" title="Link to this method">
|
204
|
-
<span class="method-name">get</span>
|
205
|
-
<span class="method-args">(row, col)</span>
|
206
|
-
</a>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div class="method-controls">
|
211
|
-
<details class="method-source-toggle">
|
212
|
-
<summary>Source</summary>
|
213
|
-
</details>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
<div class="method-description">
|
217
|
-
<div class="method-source-code" id="get-source">
|
218
|
-
<pre><span class="ruby-comment"># File lib/models/data_table/data_table.rb, line 25</span>
|
219
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get</span>(<span class="ruby-identifier">row</span>, <span class="ruby-identifier">col</span>)
|
220
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">IndexError</span>, <span class="ruby-string">"Row out of bounds"</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">valid_row?</span>(<span class="ruby-identifier">row</span>)
|
221
|
-
<span class="ruby-identifier">raise</span> <span class="ruby-constant">IndexError</span>, <span class="ruby-string">"Column out of bounds"</span> <span class="ruby-keyword">unless</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">valid_col?</span>(<span class="ruby-identifier">col</span>)
|
222
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">deep_dup</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">data</span>[<span class="ruby-identifier">row</span>][<span class="ruby-identifier">col</span>])
|
223
|
-
<span class="ruby-keyword">end</span></pre>
|
224
|
-
</div>
|
225
|
-
<p>get element</p>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
|
229
|
-
</div>
|
230
|
-
|
231
|
-
<div id="method-i-row_count" class="method-detail anchor-link ">
|
232
|
-
<div class="method-header">
|
233
|
-
<div class="method-heading">
|
234
|
-
<a href="#method-i-row_count" title="Link to this method">
|
235
|
-
<span class="method-name">row_count</span>
|
236
|
-
<span class="method-args">()</span>
|
237
|
-
</a>
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
|
241
|
-
<div class="method-controls">
|
242
|
-
<details class="method-source-toggle">
|
243
|
-
<summary>Source</summary>
|
244
|
-
</details>
|
245
|
-
</div>
|
246
|
-
|
247
|
-
<div class="method-description">
|
248
|
-
<div class="method-source-code" id="row_count-source">
|
249
|
-
<pre><span class="ruby-comment"># File lib/models/data_table/data_table.rb, line 12</span>
|
250
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">row_count</span>
|
251
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">data</span>.<span class="ruby-identifier">size</span>
|
252
|
-
<span class="ruby-keyword">end</span></pre>
|
253
|
-
</div>
|
254
|
-
<p>row count</p>
|
255
|
-
</div>
|
256
|
-
|
257
|
-
|
258
|
-
</div>
|
259
|
-
|
260
|
-
</section>
|
261
|
-
|
262
|
-
</section>
|
263
|
-
</main>
|
264
|
-
|