I refactored a bunch of code, removing duplication and ending up with this:
def self.def_wrap_guard(method_name)
class_eval "def #{method_name}
assert_exists
begin
@o.invoke('#{method_name}')
rescue
''
end
end"
end
def_wrap_guard :type
def_wrap_guard :name
#...
This works fine, but in the process, i lost the rdoc for the methods (type, name, etc).
Any suggestions on how i can get rdoc generated for these methods?
Bret
···
_____________________
Bret Pettichord
www.pettichord.com