Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed misuse of @overload.

  • Loading branch information...
commit 787e2ecb4edd08ed4ec047aa684d213a8958e065 1 parent 62ce930
Kaoru Kobo authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/rhook.rb
View
7 lib/rhook.rb
@@ -169,10 +169,9 @@ def does(name, opt = {}, &block)
# @example
# on_method :method_name
#
- # @overload on_method(name1, name2, ..., opt = {})
- # @param [String] name The method name. (can specify multiple.)
- # @param _and_opt [Hash] Options
- # * :ifdef => true - Don't raise error whenever the method is not defined.
+ # @overload on_method(*names, opt = {})
+ # @param [Symbol] names The method name(s).
+ # @option opt [Boolean] :ifdef If true, it doesn't raise error whenever the method is not defined.
# @raise [NameError] If the method is not defined.
# @return [Boolean] When :ifdef => true, returns sucess or not, otherwise always true.
def on_method(*names_and_opt)
Please sign in to comment.
Something went wrong with that request. Please try again.