These are chat archives for dry-rb/chat

27th
Dec 2016
Steve
@dnd
Dec 27 2016 01:58
is there any kind of built in predicate to check whether a field is true or not? I have a form that has a valid? method, and rather than make a custom predicate or something, I was hoping something already existed to do it in a generic way
Christopher Dennl-Ortega Arrieta
@cdennl
Dec 27 2016 08:14
or do you mean truey?@dnd
truey? doesnt exist built in
Piotr Solnica
@solnic
Dec 27 2016 10:18
@dnd there’s bool? and true? and false?
@cdennl no need for truthy/falsy because coercion will turn values into booleans prior validation :)
Christopher Dennl-Ortega Arrieta
@cdennl
Dec 27 2016 10:24
@solnic I know, was just a reply to dnd
Steve
@dnd
Dec 27 2016 14:38
@timriley yeah. true? was what I was looking for. I needed to nest the schema, and I just brainfarted. Thanks