I guess it may be a little late to mention that I am new to Ruby…
My apologizes for the mistakes, I posted with my phone and didn’t have
the actual code with me.
As for the XY problem… You may be right.
I would like certain keywords to have a numeric value.
When a keyword is found, then the numeric value is returned.
I guess it may be a little late to mention that I am new to Ruby…
My apologizes for the mistakes, I posted with my phone and didn’t have
the actual code with me.
As for the XY problem… You may be right.
I would like certain keywords to have a numeric value.
When a keyword is found, then the numeric value is returned.
Thanks!
Hash might help
“”"
A Hash is a dictionary-like collection of unique keys and their values.
Also called associative arrays, they are similar to Arrays, but where an
Array uses integers as its index, a Hash allows you to use any object
type.
“”"