Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (20 sloc) 840 Bytes

Sherry?

The proper response to this is always “Rather.” Therefore, this gem, when loaded, attaches the method sherry? and alfred? to all objects. sherry? will always return the string “Rather.” alfred? will always return the string “Yes, m’lord?”

Install

gem install sherry

or in your Gemfile:

gem 'sherry'

Usage

irb> require 'sherry'
=> true
irb> Object.sherry?
=> "Rather."
irb> Object.alfred?
=> "Yes, m'lord?"

Acknowledgements

Written by: Bradley Grzesiak and Devin Walters of Bendyworks

Inspired by a night after RailsConf 2011 with:

Something went wrong with that request. Please try again.