Sha256: f1bc80fb1ec4b2618f8c2c307ccfc18360f1296f7dd5ce0ad790d8db671c211c
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true require "dry/configurable/errors" module Dry module Configurable # Common API for both classes and instances # # @api public module Methods # @api public def configure(&block) raise FrozenConfig, "Cannot modify frozen config" if frozen? yield(config) if block self end # Finalize and freeze configuration # # @return [Dry::Configurable::Config] # # @api public def finalize!(freeze_values: false) config.finalize!(freeze_values: freeze_values) self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-configurable-0.15.0 | lib/dry/configurable/methods.rb |