[Ironruby-core] Sealed method can be overriden
Shay Friedman
lists at ruby-forum.com
Sat Jun 13 15:03:21 EDT 2009
There is a slight difference though.
In the example:
puts NewSquare.new.get_number_of_sizes # => 99
puts NewSquare.new.GetNumberOfSizes # => 4
If I change the example to a regular method (not sealed), the output is
slightly different:
puts NewSquare.new.get_number_of_sizes # => 99
puts NewSquare.new.GetNumberOfSizes # => 99
Thanks,
Shay.
----------------------------
Shay Friedman
http://www.ironshay.com
Follow me: http://twitter.com/ironshay
--
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core
mailing list