[Ironruby-core] class question.
Unnikrishnan Nair
ksunair at yahoo.com
Wed Apr 30 16:51:45 EDT 2008
Please bear with me if it is already discussed; I am running the following code
class Tester
def sayHello
hi
puts "I am saying hello"
end
private
def hi
puts "Did I say hi?"
end
private :hi #doube checking private
end
p = Tester.new
p.hi
p.sayHello
As per ruby, it should fail but Ironruby runs through without any error. I am going through the code to see where it is performed.
Thanks.
Unni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080430/47da21e8/attachment.html>
More information about the Ironruby-core
mailing list