grape
https://github.com/intridea/grape
Ruby
An opinionated framework for creating REST-like APIs in Ruby.
Grape::Validations::Types::MultipleTypeCoercer#success?
This method is called from somewhere within
+Virtus::Attribute::value_coerced?+ in order to
assert that the value has been coerced successfully.
Due to Grape's design this will in fact only be called
if a custom coercion method is being used, since {#call}
returns an {InvalidValue} object if the value could not
be coerced.Edit
git clone [email protected]:intridea/grape.git
cd grape
open lib/grape/validations/types/multiple_type_coercer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Grape--Validations--Types--MultipleTypeCoercer-success--for-pr
# Commit to gitgit add lib/grape/validations/types/multiple_type_coercer.rbgit commit -m "better docs for Grape::Validations::Types::MultipleTypeCoercer#success?"
# 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--MultipleTypeCoercer-success--for-pr
hub pull-request
# Celebrate!