Sha256: f7246f7281c1816c072067a7b6aa55c0aa33742545746bad8fd226d1f59dfd22

Contents?: true

Size: 172 Bytes

Versions: 10

Compression:

Stored size: 172 Bytes

Contents

module Compel
  module Coercion

    class Regexp < Type

      def coerce_value
        if value.is_a?(::Regexp)
          value
        end
      end

    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
compel-0.5.1 lib/compel/coercion/types/regexp.rb
compel-0.5.0 lib/compel/coercion/types/regexp.rb
compel-0.4.3 lib/compel/coercion/types/regexp.rb
compel-0.4.2 lib/compel/coercion/types/regexp.rb
compel-0.4.0 lib/compel/coercion/types/regexp.rb
compel-0.3.7 lib/compel/coercion/types/regexp.rb
compel-0.3.6 lib/compel/coercion/types/regexp.rb
compel-0.3.4 lib/compel/coercion/types/regexp.rb
compel-0.3.2 lib/compel/coercion/types/regexp.rb
compel-0.3.1 lib/compel/coercion/types/regexp.rb