Project

General

Profile

« Previous | Next » 

Revision d5495a1e

Added by Marc Dequènes almost 14 years ago

  • ID d5495a1e3c2945e526c432f4e905cda137548869

[fix] DNS fixes

View differences:

lib/cyborghood/cyborg/interface.rb
attr_accessor :exported_methods
attr_accessor :auto_export_public_instance_methods
def export_method(syms)
def export_method(*syms)
syms = [syms] unless syms.is_a? Array
self.exported_methods ||= []
self.exported_methods += syms.collect{|m| m.to_s }
end
def unexport_method(syms)
def unexport_method(*syms)
syms = [syms] unless syms.is_a? Array
self.exported_methods ||= []
self.exported_methods -= syms.collect{|m| m.to_s }
end
def export_parent_methods
self.export_method self.superclass.public_instance_methods(false)
self.export_method *self.superclass.public_instance_methods(false)
end
end

Also available in: Unified diff