We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 875ca64 + 4031662 commit f033ff2Copy full SHA for f033ff2
Acronym/instructions.txt
@@ -0,0 +1,6 @@
1
+Acronym
2
+Convert a phrase to its acronym.
3
+
4
+Techies love their TLA (Three Letter Acronyms)!
5
6
+Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG).
Acronym/ruby_solution.rb
@@ -0,0 +1,13 @@
+def abbreviate(string)
+ string_arr = string.scan(/\b\w/)
+ string_arr.join.upcase
+end
7
+# begin
8
+# >> abbreviate("Portable Network Graphics")
9
+# => "PNG"
10
+# >> abbreviate("Ruby on Rails")
11
+# => "ROR"
12
+# >> abbreviate("GNU Image Manipulation Program")
13
+# => "GIMP"
0 commit comments