Class: String

Inherits:
Object show all
Defined in:
lib/merb-core/test/test_ext/string.rb

Instance Method Summary collapse

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