class T::Props::Private::ApplyEmptyHashDefault

Special case since it's so common, and a literal `{}` is meaningfully faster than falling back to ApplyComplexDefault or even calling `some_empty_hash.dup`

Public Instance Methods

default() click to toggle source
# File lib/types/props/private/apply_default.rb, line 132
def default
  {}
end
set_default(instance) click to toggle source
# File lib/types/props/private/apply_default.rb, line 126
def set_default(instance)
  instance.instance_variable_set(@accessor_key, {})
end