[Rubycocoa-devel 791] Minor issue with self.privateMethod

Zurück zum Archiv-Index

Jacob Wallström jacob****@ghost*****
Thu Mar 1 00:53:30 JST 2007


I discovered that the following won't work using Rubycocoa-unstable  
(revision 1600).

class MyClass < OSX::NSObject

	def publicMethod
		self.privateMethod # gives error method not found
		privateMethod        # works
	end

	private

	def privateMethod
	end
end

Since it is valid to call private methods in ruby using the self  
notation, I think it should work in RubyCocoa too.

Best regards,
Jacob Wallström
http://ghostparksoftware.com





More information about the Rubycocoa-devel mailing list
Zurück zum Archiv-Index