Sha256: 701cd3057fb892541f95719cd70db59089cbf340fe503fdfcf03bdfc65de2840

Contents?: true

Size: 246 Bytes

Versions: 20

Compression:

Stored size: 246 Bytes

Contents

class Dry::Initializer::Errors::DefaultValueError < TypeError
  def initialize(name, value)
    super "Cannot set #{value.inspect} directly as a default value" \
          " of the argument '#{name}'. Wrap it to either proc or lambda."
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dry-initializer-0.11.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.10.2 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.10.1 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.10.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.9.3 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.9.2 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.9.1 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.9.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.8.1 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.8.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.7.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.6.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.5.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.4.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.3.3 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.3.2 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.3.1 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.3.0 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.2.1 lib/dry/initializer/errors/default_value_error.rb
dry-initializer-0.2.0 lib/dry/initializer/errors/default_value_error.rb