Sha256: bc1e5573c768e318c0fbd1ab11baa8dcd8ae9538bd70a6d6bd7c3d63807d1529
Contents?: true
Size: 582 Bytes
Versions: 20
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true module Dry module Types # Common API for types with options # # @api private module Options # @return [Hash] attr_reader :options # @see Nominal#initialize # # @api private def initialize(*args, **options) @__args__ = args.freeze @options = options.freeze end # @param [Hash] new_options # # @return [Type] # # @api private def with(**new_options) self.class.new(*@__args__, **options, **new_options) end end end end
Version data entries
20 entries across 20 versions & 2 rubygems