Sha256: 6b40f19ce1b23e95f4e2dfdd6590728e7de578692d5617d3dc6a928505a9eb46
Contents?: true
Size: 340 Bytes
Versions: 28
Compression:
Stored size: 340 Bytes
Contents
module OptParseValidator # Implementation of the Regexp Option # See http://ruby-doc.org/core-2.2.1/Regexp.html#method-c-new for expected values in :options class OptRegexp < OptBase # @param [ String ] value # # @return [ Regexp ] def validate(value) Regexp.new(super(value), attrs[:options]) end end end
Version data entries
28 entries across 28 versions & 1 rubygems