Class: String
Instance Method Summary collapse
- #contain?(value) ⇒ Boolean (also: #contains?)
- #match?(regex) ⇒ Boolean (also: #matches?)
Instance Method Details
#contain?(value) ⇒ Boolean Also known as: contains?
2 3 4 |
# File 'lib/merb-core/test/test_ext/string.rb', line 2 def contain?(value) self.include?(value) end |
#match?(regex) ⇒ Boolean Also known as: matches?
8 9 10 |
# File 'lib/merb-core/test/test_ext/string.rb', line 8 def match?(regex) self.match(regex) end |