class

WillPaginate::Deprecation::Hash(K, V)

Inherits Hash < Iterable < Enumerable < Reference < Object

Порт Deprecation::Hash: хэш, ключи которого можно пометить устаревшими (deprecate_key); запись в такой ключ печатает warning.

Constructors

new

Instance methods

[]=(key : K, value : V)

Sets the value of key to the given value.

h = {} of String => String
h["foo"] = "bar"
h["foo"] # => "bar"
deprecate_key(*keys : K, &message : K, V -> String | Nil)
deprecate_key(*keys : K, message : String)