Project

word

0.0
No commit activity in last 3 years
No release in over 3 years
Extends String with word matching capabilities
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 1.0.0
 Project Readme

Word¶ ↑

Extends String with word matching capabilities

Installation¶ ↑

Install the gem:

gem install word

Add it to your Gemfile:

gem "word"

Usage¶ ↑

You can use ‘has_none?`, `has_any?`, `has_all?` to check if a string contain some word

"penguin guy".has_any? "bear"               # false
"penguin guy".has_any? "bear", "penguin"    # true

You can also use array of string as input

"penguin guy".has_none? ["bear", "penguin"] # false
"penguin guy".has_all? ["guy", "penguin"]   # true

License¶ ↑

MIT License. Copyright 2011 Mohammad Satrio.