boot/fancy_ext/class.rb in fancy-0.7.0 vs boot/fancy_ext/class.rb in fancy-0.8.0
- old
+ new
@@ -10,18 +10,16 @@
# contains only the rest of the method name, not including the
# "initialize:" or "new:", so we'll have to prepend it ourselves
define_method("define_constructor_class_method:") do |method_name|
self.metaclass.send(:define_method, "new:" + method_name) do |*args|
obj = self.allocate
- obj.send("initialize:" + method_name, *args)
+ obj.__send__("initialize:" + method_name, *args)
return obj
end
end
define_method(":define_forward_method_missing") do
define_method("method_missing") do |method_name, *args|
- self.send("unknown_message:with_params:", method_name, args)
+ self.__send__("unknown_message:with_params:", method_name, args)
end
end
-
- public :public, :private, :protected, :include, :extend
end