data_structure_type 0.1.0 → 0.1.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.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +23 -5
- data/lib/data_structure_type/stack.rb +4 -4
- data/lib/data_structure_type/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a80305ee546f4fc05bd096fb60f91fb3a2c33a3aef528aa16592094cc65d7ecf
|
4
|
+
data.tar.gz: bb9e29adda37db637f31cfb1f2f677534bb6efdbd79021963bdb4205d6126aa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f662b450a4617a0e1714e80fb11de01defcd7bf797f6d5e1f0b23de6d943cc94dd652b3213a75623033b325fd7c7da28abb033a24148ab1f408741337000ac11
|
7
|
+
data.tar.gz: f6064a5bac5f47dc6da7150b6e28111d5e274fba791d9890d5c5f38f03f36c5c0778b684b0dad6baede3598d95f8e3fe519ac2611c22ea306f8971eeeed39cc5
|
data/.idea/workspace.xml
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
-
<list default="true" id="b42f3081-5935-4a10-8bda-d750b841f385" name="Default Changelist" comment="
|
5
|
-
<change beforePath="$PROJECT_DIR$/.
|
4
|
+
<list default="true" id="b42f3081-5935-4a10-8bda-d750b841f385" name="Default Changelist" comment="초기화 에러 수정, 함수명 변경">
|
5
|
+
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
6
|
+
<change beforePath="$PROJECT_DIR$/lib/data_structure_type/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/data_structure_type/version.rb" afterDir="false" />
|
6
7
|
</list>
|
7
8
|
<option name="SHOW_DIALOG" value="false" />
|
8
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -29,6 +30,7 @@
|
|
29
30
|
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
30
31
|
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
31
32
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
33
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
32
34
|
<property name="settings.editor.selected.configurable" value="configurable.group.tools" />
|
33
35
|
<property name="vue.rearranger.settings.migration" value="true" />
|
34
36
|
</component>
|
@@ -42,7 +44,7 @@
|
|
42
44
|
<option name="presentableId" value="Default" />
|
43
45
|
<updated>1630461365819</updated>
|
44
46
|
<workItem from="1630461367021" duration="134000" />
|
45
|
-
<workItem from="1630461503975" duration="
|
47
|
+
<workItem from="1630461503975" duration="7215000" />
|
46
48
|
</task>
|
47
49
|
<task id="LOCAL-00001" summary="Rroject Setting">
|
48
50
|
<created>1630463666163</created>
|
@@ -58,7 +60,21 @@
|
|
58
60
|
<option name="project" value="LOCAL" />
|
59
61
|
<updated>1630465689523</updated>
|
60
62
|
</task>
|
61
|
-
<
|
63
|
+
<task id="LOCAL-00003" summary="ignore 추가">
|
64
|
+
<created>1630465727674</created>
|
65
|
+
<option name="number" value="00003" />
|
66
|
+
<option name="presentableId" value="LOCAL-00003" />
|
67
|
+
<option name="project" value="LOCAL" />
|
68
|
+
<updated>1630465727674</updated>
|
69
|
+
</task>
|
70
|
+
<task id="LOCAL-00004" summary="초기화 에러 수정, 함수명 변경">
|
71
|
+
<created>1630470402625</created>
|
72
|
+
<option name="number" value="00004" />
|
73
|
+
<option name="presentableId" value="LOCAL-00004" />
|
74
|
+
<option name="project" value="LOCAL" />
|
75
|
+
<updated>1630470402625</updated>
|
76
|
+
</task>
|
77
|
+
<option name="localTasksCounter" value="5" />
|
62
78
|
<servers />
|
63
79
|
</component>
|
64
80
|
<component name="TypeScriptGeneratedFilesManager">
|
@@ -79,6 +95,8 @@
|
|
79
95
|
<component name="VcsManagerConfiguration">
|
80
96
|
<MESSAGE value="Rroject Setting" />
|
81
97
|
<MESSAGE value="Stack 추가" />
|
82
|
-
<
|
98
|
+
<MESSAGE value="ignore 추가" />
|
99
|
+
<MESSAGE value="초기화 에러 수정, 함수명 변경" />
|
100
|
+
<option name="LAST_COMMIT_MESSAGE" value="초기화 에러 수정, 함수명 변경" />
|
83
101
|
</component>
|
84
102
|
</project>
|
@@ -2,7 +2,7 @@ module DataStructureType
|
|
2
2
|
class Stack
|
3
3
|
|
4
4
|
def initialize
|
5
|
-
@stack =
|
5
|
+
@stack = []
|
6
6
|
end
|
7
7
|
|
8
8
|
def add(data)
|
@@ -10,14 +10,14 @@ module DataStructureType
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def peek
|
13
|
-
@stack.last unless @stack.
|
13
|
+
@stack.last unless @stack.empty?
|
14
14
|
end
|
15
15
|
|
16
16
|
def pop
|
17
|
-
@stack.pop unless @stack.
|
17
|
+
@stack.pop unless @stack.empty?
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
20
|
+
def empty?
|
21
21
|
@stack.empty?
|
22
22
|
end
|
23
23
|
end
|