3 ms·
You can setup your method to accept a hash, and then do something like this... syntax = options[:syntax] || "default value" ...in the method body. Still, it w
by learc83 14y ago
You can setup your method to accept a hash, and then do something like this...
syntax = options[:syntax] || "default value"
...in the method body. Still, it would be nice to have it built in.