module Mixes::Extender

Public Class Methods

perform(target, source) click to toggle source
# File lib/mixes/extender.rb, line 3
def perform(target, source)
  target.send(:extend, source.const_get(:ClassMethods)) if source.const_defined?(:ClassMethods)
  target.send(:include, source)
end

Private Instance Methods

perform(target, source) click to toggle source
# File lib/mixes/extender.rb, line 3
def perform(target, source)
  target.send(:extend, source.const_get(:ClassMethods)) if source.const_defined?(:ClassMethods)
  target.send(:include, source)
end