class Module

Public Instance Methods

include_aliasing(m, suffix="ruby") click to toggle source
# File lib/statsample.rb, line 44
def include_aliasing(m, suffix="ruby")
  m.instance_methods.each do |f|
    if instance_methods.include? f
      alias_method("#{f}_#{suffix}",f) 
      remove_method f
    end
  end
  include m
end