Sha256: 29db51368f679dd00a955d2547c633172d24364e625e1b328de32088e8f97ce1
Contents?: true
Size: 412 Bytes
Versions: 4
Compression:
Stored size: 412 Bytes
Contents
# This file is part of the "Utopia Framework" project, and is released under the MIT license. # Copyright 2010 Samuel Williams. All rights reserved. # See <utopia.rb> for licensing details. class Regexp def self.starts_with(string) return /^#{Regexp.escape(string)}/ end def self.ends_with(string) return /#{Regexp.escape(string)}$/ end def self.contains(string) return Regexp.new(string) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
utopia-0.10.0 | lib/utopia/extensions/regexp.rb |
utopia-0.9.61 | lib/utopia/extensions/regexp.rb |
utopia-0.9.60 | lib/utopia/extensions/regexp.rb |
utopia-0.9.59 | lib/utopia/extensions/regexp.rb |