tainbox
tainbox copied to clipboard
Strict mode
I.e.
class Foo
include Tainbox
self.strict_constructor = true
attribute :foo, default: :bar
end
Foo.new(foo: 123).foo # => 123
Foo.new.foo # => :bar
Foo.new(bar: 123) # => raise ArgumentError