Rather than having a bunch of lame logic in your method_missing method, define separated regular expression methods that are called when no normally defined method matches.
Mike Nelson
gem "irregular_method", "~> 0.3.0"