lib/bovem/command.rb in bovem-3.0.3 vs lib/bovem/command.rb in bovem-3.0.4
- old
+ new
@@ -507,10 +507,10 @@
end
# Assigns a hook to a command.
#
# @param method [String|Symbol|NilClass] The method of the application to hookup.
- # @param block [Proc] The block to hookup if method is not provided.
+ # @param hook [Proc] The block to hookup if method is not provided.
def assign_hook(method, &hook)
assigned = nil
assigned = method if method.is_a?(::String) || method.is_a?(::Symbol)
assigned = hook if !assigned && hook && hook.arity == 1
assigned
\ No newline at end of file