Parent

Class/Module Index [+]

Quicksearch

Module

Public Instance Methods

include_aliasing(m, suffix="ruby") click to toggle source
# File lib/statsample.rb, line 45
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.