Methods
C
D
F
T
Instance Public methods
comment_html()

Returns a HTML version of this method’s comment.

# File lib/erbook/rdoc.rb, line 116
    def comment_html
      DummyMarkup.new.markup comment
    end
decl()

Returns a complete method declaration with block parameters and all.

# File lib/erbook/rdoc.rb, line 102
    def decl
      a = params.dup

      if b = block_params
        a.sub! %r/\s*\#.*(?=.$)/, '' # remove "# :yields: ..." string
        a << " {|#{b}| ... }"
      end

      full_name << a
    end
full_name()

Returns the fully qualified name of this method.

# File lib/erbook/rdoc.rb, line 95
    def full_name
      [parent.full_name, name].join(singleton ? '::' : '#')
    end
top_level()

Returns the RDoc::TopLevel object which contains this method.

# File lib/erbook/rdoc.rb, line 123
    def top_level
      n = parent

      while n && n.parent
        n = n.parent
      end

      n
    end