Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 20th, 2018
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.12 KB
| None
|
0
0
raw
download
clone
embed
print
report
def sum_of_letters(string)
letters = string.downcase.scan(/[a-z]/)
letters.inject(0) { |sum, x| sum + x[0] - 96 }
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Dart | 16 min ago | 2.70 KB
fusao mekanism
Lua | 41 min ago | 1.73 KB
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 1 hour ago | 0.41 KB
Image W/Gallery Expandable Image Features
HTML | 1 hour ago | 0.41 KB
2024-03-28_stats.json
JSON | 1 hour ago | 3.60 KB
2024-03-28_stats.json
JSON | 1 hour ago | 3.59 KB
2024-03-28_stats.json
JSON | 1 hour ago | 3.58 KB
count query
MySQL | 1 hour ago | 1.18 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!