Sha256: 830a0c651e171c4ae1146b35f0d66891a9c64f336b9992c80475f6c3958bfc43
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
class CharacterSet module CoreExt module RegexpExt def character_set CharacterSet.of_regexp(self) end def covered_by_character_set?(other) other.superset?(character_set) end def uses_character_set?(other) other.intersect?(character_set) end end end end ::Regexp.instance_eval { include CharacterSet::CoreExt::RegexpExt }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
character_set-1.8.0-java | lib/character_set/core_ext/regexp_ext.rb |
character_set-1.8.0 | lib/character_set/core_ext/regexp_ext.rb |