Sha256: 8641d747d456c128cf77d92c7c402376c170b6035900b00746ef265b7738a02a

Contents?: true

Size: 181 Bytes

Versions: 3

Compression:

Stored size: 181 Bytes

Contents

module Compel
  module Coercion

    class String < Type

      def coerce
        if !value.is_a?(::String)
          fail
        end

        value
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
compel-0.1.3 lib/compel/coercion/string.rb
compel-0.1.2 lib/compel/coercion/string.rb
compel-0.1.1 lib/compel/coercion/string.rb