Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
def format_method text, line
line.match /^(\s*)/
spaces = $1
text.match /^(\s*)([\w\d\s\_]+)\s*\((.*)\)/
formatted = "#{$2}(\n#{spaces}\t"
formatted += $3.
gsub(" ", "").
gsub(",", ",\n#{spaces}\t").
# config/initializers/authlogic.rb
Authlogic::I18n.translator = FixedAuthlogicI18n::Translator.new