Module: RailsParam

Defined in:
lib/rails_param/version.rb,
lib/rails_param/param.rb,
lib/rails_param/coercion.rb,
lib/rails_param/parameter.rb,
lib/rails_param/validator.rb,
lib/rails_param/validator/in.rb,
lib/rails_param/validator/is.rb,
lib/rails_param/validator/max.rb,
lib/rails_param/validator/min.rb,
lib/rails_param/param_evaluator.rb,
lib/rails_param/validator/blank.rb,
lib/rails_param/validator/custom.rb,
lib/rails_param/validator/format.rb,
lib/rails_param/validator/required.rb,
lib/rails_param/coercion/hash_param.rb,
lib/rails_param/coercion/time_param.rb,
lib/rails_param/coercion/array_param.rb,
lib/rails_param/coercion/float_param.rb,
lib/rails_param/validator/max_length.rb,
lib/rails_param/validator/min_length.rb,
lib/rails_param/coercion/string_param.rb,
lib/rails_param/coercion/boolean_param.rb,
lib/rails_param/coercion/integer_param.rb,
lib/rails_param/coercion/virtual_param.rb,
lib/rails_param/invalid_parameter_error.rb,
lib/rails_param/coercion/big_decimal_param.rb

Overview

:nodoc

Defined Under Namespace

Classes: Coercion, InvalidParameterError, ParamEvaluator, Parameter, Validator

Constant Summary collapse

VERSION =
"1.3.1"

Instance Method Summary collapse

Instance Method Details

#param!(name, type, options = {}, &block) ⇒ Object



2
3
4
# File 'lib/rails_param/param.rb', line 2

def param!(name, type, options = {}, &block)
  ParamEvaluator.new(params).param!(name, type, options, &block)
end