Skip to content

Adapters for dumping data into and loading from different content types.

License

Notifications You must be signed in to change notification settings

rspine/content_types

Repository files navigation

Spine::ContentTypes

Gem Version Dependency Status Code Climate security Inline docs

Provides encoding and decoding to content types. Supported types are plain text, HTML and JSON.

Installation

To install it, add the gem to your Gemfile:

gem 'spine-content_types'

Then run bundle. If you're not using Bundler, just gem install spine-content_types.

Usage

hash = Spine::ContentTypes::Json.load('{ "test": 12345 }')

json = Spine::ContentTypes::Json.dump(hash)

About

Adapters for dumping data into and loading from different content types.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages