This website requires JavaScript.
Explore
Help
Sign In
walkah
/
exercism
Watch
1
Star
0
Fork
0
You've already forked exercism
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
exercism
/
ruby
/
acronym
/
acronym.rb
6 lines
96 B
Ruby
Raw
Normal View
History
Unescape
Escape
ruby - acronym
2018-09-21 09:06:59 -04:00
class
Acronym
def
self
.
abbreviate
(
long_name
)
ruby - acronym * split -> scan much cleaner!
2018-09-23 17:26:38 -05:00
long_name
.
scan
(
/
\
b
\
w
/
)
.
join
.
upcase
ruby - acronym
2018-09-21 09:06:59 -04:00
end
end
Reference in New Issue
Copy Permalink