Monthly Archives: March 2013

Using __LINE__ in dynamic methods

I’ve been digging into active_support to see how config_accessor was working. This is the code I found:       def config_accessor(*names)         options = names.extract_options!         names.each do |name|         … Continue reading

Posted in Ruby | Comments Off on Using __LINE__ in dynamic methods