TracNav

Source style

  • Two spaces, no tabs
  • Blocks use { } if its a one liner, otherwise use do ... end
  • Surround equal signs with spaces, @myvar = 'foo', not @myvar='foo'
  • Surround hash assignments with spaces, :foo => 'bar', not :foo=>'bar'
  • Class.method(my_arg) -- not method( my_arg ) or method my_arg
  • Follow the conventions you see used in the source already

Also available in: HTML TXT