Skip to content

dry-initializer: `to_s': wrong number of arguments (1 for 0) #1462

@deepj

Description

@deepj

This failed under truffleruby-1.0.0.rc9. No issue under MRI.

require 'dry-initializer'

class Test
  extend Dry::Initializer

  param :foo, proc(&:to_s)
end

Test.new(:FOO)

Error:

dry-initializer.rb:6:in `to_s': wrong number of arguments (1 for 0) (ArgumentError)
	from dry-initializer.rb:6:in `to_s'
	from (eval):5:in `call'
	from (eval):5:in `__dry_initializer_initialize__'
	from ~/.gem/truffleruby/2.4.4/gems/dry-initializer-2.5.0/lib/dry/initializer/mixin/root.rb:7:in `initialize'
	from dry-initializer.rb:9:in `new'
	from dry-initializer.rb:9:in `<main>'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions