lib/transproc/store.rb
def import_method(source, name, new_name = name)
      from = name.to_sym
      to   = new_name.to_sym

      fn = source.is_a?(Registry) ? source.fetch(from) : source.method(from)
      self.class.new(methods.merge(to => fn))
    end
def import_method(source, name, new_name = name)
      from = name.to_sym
      to   = new_name.to_sym

      fn = source.is_a?(Registry) ? source.fetch(from) : source.method(from)
      self.class.new(methods.merge(to => fn))
    end
Creates new immutable collection from the current one,
 updated with either the module's singleton method,
 or the proc having been imported from another module.

 @param [Module] source
 @param [Symbol] name
 @param [Symbol] new_name

 @return [Transproc::Store]