grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Grape::Validations::Types.recognized?
Does the given class implement a type system that Grape (i.e. the underlying virtus attribute system) supports out-of-the-box? Currently supported are +axiom-types+ and +virtus+. The type will be passed to +Virtus::Attribute.build+, and the resulting attribute object will be expected to respond correctly to +coerce+ and +value_coerced?+.
Edit
git clone [email protected]:intridea/grape.git
cd grape
open lib/grape/validations/types.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Grape--Validations--Types-recognized--for-pr
# Commit to gitgit add lib/grape/validations/types.rbgit commit -m "better docs for Grape::Validations::Types.recognized?"
# 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-recognized--for-pr
hub pull-request
# Celebrate!