quote_machine 0.1.5 → 0.1.6
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/Gemfile.lock +1 -1
- data/lib/quote_machine/version.rb +1 -1
- data/lib/quote_machine.rb +5 -4
- 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: 75ec4af4e49cc53931d261df84f1d68c4a4502414bf13d1b26358e58521836e0
|
|
4
|
+
data.tar.gz: b7ce46a63a00334d044e0b65384e0e123c2a236090e14204ee022e30a70cc92d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04e0d38333bd9c85bdcd953cb4b24892022dc5190214ce7292fd93cb136f828b381c9dd525407d4dbf5f2afcb13a1c7193e549cde4e2e31871fc83454745d128
|
|
7
|
+
data.tar.gz: 12f9c858812aa1dfc655b4c3f8b1ab1a51cda386f6830ac552f1648c7e5fa0db2e2c069c8aa5b0859871744cdb4d6058624167e067563137a18598438a14f9c1
|
data/Gemfile.lock
CHANGED
data/lib/quote_machine.rb
CHANGED
|
@@ -6,7 +6,7 @@ require "quote_machine/version"
|
|
|
6
6
|
# end
|
|
7
7
|
|
|
8
8
|
# declare instance variables
|
|
9
|
-
def
|
|
9
|
+
def declare_instance_variables
|
|
10
10
|
@poem = []
|
|
11
11
|
@stanza_pick = 0
|
|
12
12
|
@stanza_current = 0
|
|
@@ -141,8 +141,9 @@ end
|
|
|
141
141
|
# Main Program
|
|
142
142
|
|
|
143
143
|
def main_program
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
declare_instance_variables
|
|
145
|
+
init_poem
|
|
146
|
+
show_section
|
|
146
147
|
# display_interface
|
|
147
148
|
end
|
|
148
149
|
|
|
@@ -182,7 +183,7 @@ end
|
|
|
182
183
|
|
|
183
184
|
|
|
184
185
|
def init_poem
|
|
185
|
-
|
|
186
|
+
declare_instance_variables
|
|
186
187
|
text = read_poem('complete_verse.txt')
|
|
187
188
|
text_array = convert_text_to_array(text)
|
|
188
189
|
create_final_poem_array(text_array)
|