module Marten::HTTP::Params::Core

Direct including types

Defined in:

marten/http/params/concerns/core.cr

Instance Method Summary

Instance Method Detail

def [](name : String | Symbol) #

Returns the last value associated with the passed parameter name.


[View source]
def []=(*args, **options) #

[View source]
def []=(*args, **options, &) #

[View source]
def []?(name : String | Symbol) #

Returns the last value associated with the passed parameter name or nil if the parameter is not present.


[View source]
def each(*args, **options) #

Allows to iterate over all the parameters.


[View source]
def each(*args, **options, &) #

Allows to iterate over all the parameters.


[View source]
def empty?(*args, **options) #

Returns true if no parameters are present.


[View source]
def empty?(*args, **options, &) #

Returns true if no parameters are present.


[View source]
def 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).


[View source]
def fetch(name : String | Symbol, &) #

Returns the last value for the specified parameter name or calls the block with the name when not found.


[View source]
def fetch_all(name : String | Symbol, default = nil) #

Returns all the values for a specified parameter name.


[View source]
def has_key?(name : String | Symbol) #

Returns true if the parameter with the provided name exists.


[View source]
def size #

Returns the number of parameters.


[View source]
def to_s(*args, **options) #

Returns the hash represention of the parameters.


[View source]
def to_s(*args, **options, &) #

Returns the hash represention of the parameters.


[View source]