Post

Ruby Tips 12 - Launch a Windows Application from Ruby

Some times, you want to be able to launch a Windows Command file from a Ruby script. This is the easy way to do it.

>
1
2
h = Hash.new
z = h[key] || some_default

In all honesty, I wrote this because I forget these things – and often end up rewriting it in application code myself. Hope you found it useful. If there are more things that you find useful to do, just add them in the comments below.

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.