module Dry::Types::Options
Common API for types with options
@api private
Attributes
options[R]
@return [Hash]
Public Class Methods
new(*args, **options)
click to toggle source
@see Nominal#initialize
@api private
# File lib/dry/types/options.rb, line 15 def initialize(*args, **options) @__args__ = args.freeze @options = options.freeze end
Public Instance Methods
with(**new_options)
click to toggle source
@param [Hash] new_options
@return [Type]
@api private
# File lib/dry/types/options.rb, line 25 def with(**new_options) self.class.new(*@__args__, **options, **new_options) end