grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Grape::Validations::Types::CustomTypeCoercer.build
Uses +Virtus::Attribute.build+ to build a new attribute that makes use of this class for coercion and type validation logic.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open lib/grape/validations/types/custom_type_coercer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Grape--Validations--Types--CustomTypeCoercer-build-for-pr
# Commit to gitgit add lib/grape/validations/types/custom_type_coercer.rbgit commit -m "better docs for Grape::Validations::Types::CustomTypeCoercer.build"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Grape--Validations--Types--CustomTypeCoercer-build-for-pr
hub pull-request
# Celebrate!