I'm trying to find out about the can? method used by cancancan gem.
I tried here, but cannot locate the method can?:
As suggested here, I tried these:
can?.arity
NoMethodError: undefined method `can?' for main:Object
can?.parameters
NoMethodError: undefined method `can?' for main:Object
I'm simply trying to find out what parameters can? (the cancancan method used in the view) wants to receive, but this example is a good opportunity to learn how to do this for other methods as well, hence I hope for a general solution (one that will allow me to look up documentation for methods beyond the one asked in this specific example).
Thanks in advance for all help/pointers!




