search for: methodnamestr

Displaying 1 result from an estimated 1 matches for "methodnamestr".

2006 Jul 02
7
Generic SingleTable inheritance
...oncrete (sub)classes for our concrete domain objects but the property handling is not yet "intuitive". Enter ''method_missing''-hook class AbstractGenericThing # all methods which are not defined are handled as # properties def method_missing(methodname, *args) methodnameStr = methodname.to_s if (methodnameStr.include? "=") # it''s a setter! # remove the trailing = methodnameStr.chop! return setProperty(methodnameStr, args[0]) else # it''s a getter! return getProperty(methodnameStr) end end...