class T::Props::Private::ApplyEmptyArrayDefault

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

Public Instance Methods

default() click to toggle source
# File lib/types/props/private/apply_default.rb, line 115
def default
  []
end
set_default(instance) click to toggle source
# File lib/types/props/private/apply_default.rb, line 109
def set_default(instance)
  instance.instance_variable_set(@accessor_key, [])
end