module Marten::HTTP::Params::Core
Direct including types
Defined in:
marten/http/params/concerns/core.crInstance Method Summary
-
#[](name : String | Symbol)
Returns the last value associated with the passed parameter name.
- #[]=(*args, **options)
- #[]=(*args, **options, &)
-
#[]?(name : String | Symbol)
Returns the last value associated with the passed parameter name or
nil
if the parameter is not present. -
#each(*args, **options)
Allows to iterate over all the parameters.
-
#each(*args, **options, &)
Allows to iterate over all the parameters.
-
#empty?(*args, **options)
Returns
true
if no parameters are present. -
#empty?(*args, **options, &)
Returns
true
if no parameters are present. -
#fetch(name : String | Symbol, default = nil)
Returns the last value for the specified parameter name or fallback to the provided default value (which is
nil
by default). -
#fetch(name : String | Symbol, &)
Returns the last value for the specified parameter name or calls the block with the name when not found.
-
#fetch_all(name : String | Symbol, default = nil)
Returns all the values for a specified parameter name.
-
#has_key?(name : String | Symbol)
Returns
true
if the parameter with the provided name exists. -
#size
Returns the number of parameters.
-
#to_s(*args, **options)
Returns the hash represention of the parameters.
-
#to_s(*args, **options, &)
Returns the hash represention of the parameters.
Instance Method Detail
Returns the last value associated with the passed parameter name or nil
if the parameter is not present.
Returns the last value for the specified parameter name or fallback to the provided default value (which is
nil
by default).
Returns the last value for the specified parameter name or calls the block with the name when not found.
Returns all the values for a specified parameter name.