Sha256: d72ec12fe4d205a6edc49c9a03c8422784c1059502ef982551b061a2f3364628

Contents?: true

Size: 131 Bytes

Versions: 3

Compression:

Stored size: 131 Bytes

Contents

module Compel
  module Coercion

    class JSON < Type

      def coerce
        ::JSON.parse(value)
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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