class Import_Module::Target
Public Class Methods
new(klass)
click to toggle source
# File lib/algebra/import-module-single-thread.rb, line 62 def initialize(klass) @scopes = {} @klass = klass @publics = @klass.public_instance_methods(true) # .find_all{|m| @klass.public_method_defined? m} @privates = @klass.private_instance_methods(true) # .find_all{|m| @klass.private_method_defined? m} @protecteds = @klass.protected_instance_methods(true) # .find_all{|m| @klass.protected_method_defined? m} @orig_methods = {} @saved_methods = {} resist_orig_methods @stack = Stack.new([{}]) # diff end