Friday, April 02, 2010

How to use Active Support Rails library in Ruby scripts

#!/usr/bin/ruby
require 'rubygems'
require 'active_support/inflector'

puts Inflector.singularize('inflections')