Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.04 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.04 KB

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)