Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
There is a variable called poem stuffed with toast.
In the lesson I can only change one instance with the suggestion offered (poem['toast'] = 'honeydew' ) But if I can change one instance of toast I feel I should be able to change all of them.
I'm more of a bacon lover than the bread hater the lesson prompt makes me out to be. Toast is ok, it really is. But just for funzies, could someone give me a hint as to how to select all ['toast'] and replace with ['bacon']?
P.S. I've tried poem.add('x', 'bacon') but it doesn't seem like the best way of doing this.
It's not an issue, but more of a request.
There is a variable called poem stuffed with toast.
In the lesson I can only change one instance with the suggestion offered (poem['toast'] = 'honeydew' ) But if I can change one instance of toast I feel I should be able to change all of them.
I'm more of a bacon lover than the bread hater the lesson prompt makes me out to be. Toast is ok, it really is. But just for funzies, could someone give me a hint as to how to select all ['toast'] and replace with ['bacon']?
P.S. I've tried poem.add('x', 'bacon') but it doesn't seem like the best way of doing this.