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.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open lib/grape/validations/types/multiple_type_coercer.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Grape--Validations--Types--MultipleTypeCoercer-success--for-pr


# Commit to git

git add lib/grape/validations/types/multiple_type_coercer.rbgit commit -m "better docs for Grape::Validations::Types::MultipleTypeCoercer#success?"


# Open pull request

gem 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!