Skip to content

robuye/gandalf_to_stuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gandalf_to_stuff

Syntatic sugar for Enumerable

Installation

Add in your gemfile:

gem 'gandalf_to_stuff', git: 'git://github.com/robuye/gandalf_to_stuff.git'

in your application add:

require 'gandalf_to_stuff'

Usage

Now, when reject is not enough you can call Gandalf to help you:

['Aragorn', 'Faramir', 'Legolas', 'Baldor', 'Frodo'].gandalf_to_stuff_you_shall_not_pass {|s| s == 'Baldor'}

# => ['Aragorn', 'Faramir', 'Legolas', 'Frodo']

About

Syntatic sugar for Enumerable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages