Ruby reserved class method names -
in ruby, there methods reserved or have default meanings? discovered initialize one. there others should aware of when naming methods? (vi not giving me coloring clues other ides give reserved names.)
in particular, names have meaning in other languages run, main, tostring, onexit, etc.
you can see list of methods implemented default every class:
class try end t = try.new puts t.methods.sort edit: may want @ private methods (where initialize is):
puts t.private_methods.sort
Comments
Post a Comment