module Dry::Concrete::Extensions::Default
Public Instance Methods
to_default()
click to toggle source
@example A string type with a proc default value
Dry::Types['string'].default { 'default' }
@return [#call(Dry::Types::Type)]
# File lib/dry/concrete/extensions/default.rb, line 12 def to_default -> type { type[call] }.freeze end