lib/neutrino/gateway/responses/response_handler.rb
# Checks for methods of form if_<code>_raise, where <code> is a valid HTTP status code
#
# @param [String] name of the method
# @return [ResponseHandler] `self`, for method chaining
# @raise [NoMethodError] when name doesn't match `if_<code>_raise` where <code> is a valid
#   HTTP status code
# @raise [Object] the custom exception passed as `args[0]`, when the status code specified
#   in the method name (<code>) is the same as the response code
Checks for methods of form if__raise, where  is a valid HTTP status code
Checks for methods of form if__raise where is a valid HTTP status code
def method_missing(name, *args, &block)
          ensure_format_and_bounds_are_observed_by(name)
          if_asked_code_is_the_same_as_response_code_then_raise(args[0])
          self
        end
def method_missing ( name , * args , & block ) ensure_format_and_bounds_are_observed_by ( name ) if_asked_code_is_the_same_as_response_code_then_raise ( args [ 0 ] ) self end
Checks for methods of form if_<code>_raise, where <code> is a valid HTTP status code
Checks for methods of form if_<code > _raise where <code > is a valid HTTP status code
`self`, for method chaining
` self ` for method chaining
ResponseHandler
[NoMethodError] when name doesn't match `if__raise` where  is a valid HTTP status code
[ NoMethodError ] when name doesn ' t match ` if__raise ` where is a valid HTTP status code
[Object] the custom exception passed as `args[0]`, when the status code specified in the method name () is the same as the response code
[ Object ] the custom exception passed as ` args [ 0 ] ` when the status code specified in the method name () is the same as the response code
name
<not_specific>
args
<not_specific>
block
<not_specific>
<not_specific>
name of the method
name of the method