Category Archives: ruby

adding macruby to multiruby versions

Modified from Rob Seaman’s post. multiruby is a great way to make sure your ruby code runs on the multitude of ruby versions (it’s part of ZenTest). It doesn’t install macruby by default. Here are instructions on how to set it up. Since I installed macruby from the package installer my macruby files are in [...]
Also posted in tips | 1 Comment

tweet twitter util – cli feedback on tweet length

One of the nice things about the Twitter web-interface is that it gives you feedback on the number of characters you’ve typed so far. Since I use the command-line twitter gem (by John Nunemaker) I miss out on this feature and find myself using echo and wc to make sure I’m not over the limit. [...]
Also posted in shell, tips | Leave a comment

what does this return? or ‘why i love ruby’

def x 5 end   if false x = 3 end   puts x # => ?
Posted in ruby | Leave a comment