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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -