Sha256: b89932b6569570bbc199f8c2b103a174ab339064080e6409f3b92cefbeb7130d

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

#Sloth

Sloth is a collection of helpers. A whole bunch of methods defind on ruby's inbuilt classes, just so you can code away without taking the pain of, say:  
  * removing every empty string literals from an array.
  * check whether that string is a valid json or
  * get all the values of a key in a hash.  

**Sloth** was born out of boredom. The need to write same code snippets over and over again. If you would like to add a method/helper that you think would be useful to others as well, please do send a pull request.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'sloth'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sloth

###Documentation
**Sloth** currently has helpers for:  
* Array  
  * [cleanup](https://github.com/midhunkrishna/sloth/wiki/Array#1-cleanup)  
  * [substring_search](https://github.com/midhunkrishna/sloth/wiki/Array#2-substring_searchsub_string)
* Hash  
  * [find_all_values_for(key)](https://github.com/midhunkrishna/sloth/wiki/Hash#find_all_values_forkey)

## Contributing

1. Fork it ( https://github.com/[my-github-username]/sloth/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sloth-rb-0.1.0 README.md