Skip to content

roor0/dashed_map

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DashedMap

Do you ever find yourself wishing you had a method that takes an array of words and then return an array of words, some of them combined by a dash? Well you're in luck!

Installation

Add the following to your Gemfile:

gem 'dashed_map'

Usage

Just call dashed_map anywhere. ANYWHERE. It's on Object.

If you need it on BasicObject as well (which you probably do), you'll want to run the following code:

BasicObject.send :include, DashedMap

Why does it return an array?

I don't know.

How does it decide where to put dashes?

Good question.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published