I know that in Ruby you can create hash maps like this: 

hash = {"name"=&gt;"John"}


But is it possible to have a hash map of methods:

hash = {"v"=&gt; show_version}


and when calling hash["v"] either to execute the show_version function, or to return some kind on pointer that passed to some special method, to execute the function from the hash?

What I am trying to achieve, is to have a hash map of methods, instead of using a case/when construction, as it looks too verbose to me.


Question: How can I make particles rise softly?
Answer: Instead of using wind etc. to blow the particles upwards, try disabling gravity for just the particles:



In this case the emitter plane's normal is facing upwards, so the particles start with a initial upwards motion.

I've also added a turbulence force field along with some random initial and brownian velocity, to give it a bit of randomness.