-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathex40.rb
61 lines (46 loc) · 1.26 KB
/
ex40.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
class Song
def initialize(lyrics)
@lyrics = lyrics
end
def sing_me_a_song
@lyrics.each{|line| puts line}
end
end
#gbday_lyric =["Happy birthday to you", "I don't want to get sued","So I'll stop right there"]
#happy_bday = Song.new(gbday_lyric)
#bop_lyric = ["They rally around the family","With pockets full of shells"]
#bull_on_parade = Song.new(bop_lyric)
#happy_bday.sing_me_a_song
#bull_on_parade.sing_me_a_song
puts '-' * 10
pkmn_lyric = ["I wanna be the very best",
"Like no one ever was",
"To catch them is my real test",
"To train them is my cause",
"\n",
"I will travel across the land",
"Searching far and wide",
"Each Pokemon to understand",
"The power that's inside",
"\n",
"Pokemon, its you and me",
"I know its my destiny",
"Pokemon, oh, you're my best friend",
"In a world we must defend",
"Pokemon, a heart so true",
"Our courage will pull us through",
"\n",
"You teach me and I'll teach you",
"Pokemon, gotta catch 'em all",
"\n",
"Every challenge along the way",
"With courage I will face",
"I will battle every day",
"To claim my rightful place",
"\n",
"Come with me, the time is right",
"There's no better team",
"Arm in arm we'll win the fight",
"It's always been our dream "]
pokemon = Song.new(pkmn_lyric)
pokemon.sing_me_a_song