Sha256: 26663ffa2d8280457791c7492fc3fc86515e2c289b3859e81135e575238c1beb
Contents?: true
Size: 371 Bytes
Versions: 14
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true 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
14 entries across 14 versions & 1 rubygems