Created
June 16, 2015 20:22
-
-
Save crmaxx/1e9ca8b2cf249f3af4ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class String | |
| def is_number? | |
| true if Float(self) rescue false | |
| end | |
| def includes?(ary) | |
| ary.each do |el| | |
| return true if self.include?(el) | |
| end | |
| false | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment