This gem will help you extend the functionality of some standard Ruby classes. It also provides some custom methods.
[1, 1, 1, 1, 1, 2, 2, 3, 4].count_elements # will return {1=>5, 2=>2, 3=>1, 4=>1}
[1, 2, 3, 4].increase_with_index # will return [1, 3, 5, 7]
[1, 2, 3, 4].increase_with_position # will return [2, 4, 6, 8]
[1, 1, 2, 2, 2, 2, 2, 2, 3, 4].select_solo # will return [3, 4]
[1, 1, 2, 2, 2, 2, 2, 2, 3, 4].split_by_parity # will return [[2, 2, 2, 2, 2, 2, 4], [1, 1, 3]]
camelcase
convert dash/underscore delimited words into camel casing. The first word within the output capitalized only if the original word was capitalized
'the-stealth_warrior'.camelcase # will return 'theStealthWarrior'
'Hello world'.count_chars # will return {"H"=>1, "e"=>1, "l"=>3, "o"=>2, " "=>1, "w"=>1, "r"=>1, "d"=>1}
'Hello'.palindrome? # will return false
'loL'.palindrome? # will return true
Zandelok::Functions.multiply(1, 2, 3, 4) # will return 24
Zandelok::Functions.missing_numbers([1, 2, 3, 10]) # will return [4, 5, 6, 7, 8, 9]
Zandelok::Functions.generate_hashtag([1, 2, 3, 10]) # will return '#12310'
Zandelok::Functions.generate_hashtag('Hello world with ruby') # will return '#HelloWorldWithRuby'