Class: String
- Defined in:
- lib/merb-core/test/test_ext/string.rb,
lib/merb-core/vendor/facets/inflect.rb
Instance Method Summary collapse
- #contain?(value) ⇒ Boolean (also: #contains?)
- #match?(regex) ⇒ Boolean (also: #matches?)
- #plural ⇒ Object (also: #pluralize)
- #singular ⇒ Object (also: #singularize)
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 |