-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Documentation says this should work:
string :style, default: "flat", validator: ->(v) {
raise "style can't be empty" if v.empty?
}
But I'm getting an error with that construction:
ArgumentError:
wrong number of arguments (given 2, expected 1)
Instead what works is this:
string :style, default: "flat", validator: ->(v, _options) {
raise "style can't be empty" if v.empty?
}
Metadata
Metadata
Assignees
Labels
No labels