Sha256: 2f256833120c44b6ea329a6ec60c6ad604f4f83e7c07473749639e2a56147509

Contents?: true

Size: 143 Bytes

Versions: 3

Compression:

Stored size: 143 Bytes

Contents

module Compel
  module Coercion

    class Hash < Type

      def coerce
        Hashie::Mash.new(value).to_hash
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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