Forks

Revisions

gist: 216960 Download_button fork
public
Public Clone URL: git://gist.github.com/216960.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
module Ahoy
  def self.included(base)
    base.public_instance_methods.select {|m| m.to_s =~ /ar/ }.each do |method_name|
      base.class_eval("alias #{method_name.gsub("ar", "arrr")} #{method_name}")
    end
  end
end