Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 314 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 314 Bytes

inn gem

Adds the .in? method to objects in other objects that respond to an .include? method.

Usage

$ gem install inn
$ irb

> require 'inn'

> musician1 = "john"
> musician2 = "pete"
> beatles = ["john","paul","george","ringo"]

> musician1.in? beatles
=> true

musician2.in? beatles
=> false