Module: Ampt::User

Defined in:
lib/ampt.rb

Overview

Class to hold all of the user-defined functions and variables

Class Method Summary collapse

Class Method Details

.parent_config=(p) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/ampt.rb', line 28

def self.parent_config=(p)
    p.public_methods(false).each do |m|
        (class << self; self; end).class_eval do
            define_method m do |*args, &b|
                p.send m, *args, &b
            end
        end
    end
end