Arto's Notes re: Ruby

sudo /usr/bin/gem uninstall -aIx

brew install ruby
gem install bundler

Directory Structure

.git
.gitignore
.yardoc
.yardopts
AUTHORS
CREDITS
Gemfile
README -> README.rst
README.rst
Rakefile
UNLICENSE
VERSION
bin/
doc/
etc/
lib/
spec/
foobar.gemspec

Miscellaneous

  • main(*ARGV) if __FILE__ == $0
  • Use %w[...] instead of %w(...).