rdoc for generated methods

Discussion in 'Ruby' started by Bret Pettichord, Aug 15, 2005.

  1. 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
    Bret Pettichord, Aug 15, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Schwarz
    Replies:
    6
    Views:
    241
    Randy W. Sims
    Jan 1, 2004
  2. Brian Schröder
    Replies:
    5
    Views:
    126
    Dave Thomas
    Sep 18, 2004
  3. Daniel Berger
    Replies:
    1
    Views:
    138
    Dave Thomas
    Nov 2, 2004
  4. James Britt
    Replies:
    28
    Views:
    429
    Jim Weirich
    Nov 8, 2004
  5. Iwan van der Kleyn

    rdoc: how to add readme.rdoc as index.html?

    Iwan van der Kleyn, Apr 26, 2005, in forum: Ruby
    Replies:
    1
    Views:
    218
    Stefan Lang
    Apr 26, 2005
Loading...

Share This Page