Open tonicblue opened 5 years ago
Hey @tonicblue , sorry for the slow response. We'll look into getting this merged once we identify why Travis didn't build properly.
Sorry for the slow response!
That's cool. Sorry I'm now slow to respond too! If it's a quick and easy to describe build issue that I can address just let me know and I'll give it a shot.
Cheers
As stated by @amycheng in issue "ALL conditional helpers can be inline #52",
compare
andmodulo
can both be used inline. It would be super useful to allowifAll
,ifNone
,ifAny
, andunlessAll
to work in the same way.Tried to keep things as simple as possible and copied the way you've written unit tests for everything so there is still the same coverage. I am now however returning
false
instead of an empty string. Am happy to continue to return an empty string if you'd prefer. Also, likemodulo
but unlike an inlineif
you cannot provide anelse="stuff"
.Hope this is all acceptable, Cheers for the module