Skip to content

kasthor/kim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kim

This is just a compilation of all some frequent includes I do on my ruby code

Hash

deep_merge

When merging Hashes it will take care of merging nested hashes

deep_has_key?

Provide multiple keys and it will tell you if they are contained in the current hash, taking nesting into account

deep_value

Finds a value taking nesting into account

select_keys

Receive a list of keys and return a hash subset containing the keys specified

Fixnum

sign

Returns 1 or -1 matching the sign of the current fixnum

Array


all_equal?

Return true if all the items of the array are equal Note: an empty array will solve to true while i'm unsure it's desired behavior

About

Improvements to several Ruby classes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages