Skip to content
instance method

Hash#default=

(V arg0) -> V
default = value → object

Sets the default value to value; returns value:

Example
h = {}
h.default # => nil
h.default = false # => false
h.default # => false

See Hash Default.