DEV Community

loading...

Discussion on: How to Utilize Enum.any?, with a Refactoring Twist!

Collapse
noelworden profile image
Noel Worden Author

Hey David,

Thanks for pointing me to the with expression. I actually wrote a post of my own here. I am by no means an expert, but just writing the post helped me get a better handle on all the possibilities.

A big caveat we have in the project I'm working on is when/if to do the rounding. I ended up rolling my own module to simply add the $ and commas in the correct positions, since ultimately that's all we needed.

Thanks for reaching out, I appreciate the feedback and advice!

Collapse
wulymammoth profile image
David

Ah! Totally missed that! Hard to go back to Ruby after all this jazz, huh?

Forem Open with the Forem app