lib/simple/cli/runner/command_help.rb in simple-cli-0.1.2 vs lib/simple/cli/runner/command_help.rb in simple-cli-0.1.3
- old
+ new
@@ -8,9 +8,10 @@
rescue NameError
[]
end
def initialize(mod, method)
+ raise(ArgumentError) unless method.is_a?(Symbol)
@mod = mod
@method = method
end
# First line of the help as read from the method comments.