lib/erbook/rdoc.rb
def decl
      a = params.dup

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

      full_name << a
    end
##
# Returns a complete method declaration with block parameters and all.
#
Returns a complete method declaration with block parameters and all.
Returns a complete method declaration with block parameters and all .
def decl
      a = params.dup
      if b = block_params
        a.sub! %r/\s*\#.*(?=.$)/, '' 
        a << " {|#{b}| ... }"
      end
      full_name << a
    end
def decl a = params . dup if b = block_params a . sub! %r/ \s * \# .*(?=.$) / , '' a << " {|#{b}| ... }" end full_name << a end
Returns a complete method declaration with block parameters and all.
Returns a complete method declaration with block parameters and all .
# remove "# :yields: ..." string