| Class | Pry::BlockCommand |
| In: |
lib/pry/command.rb
|
| Parent: | Command |
A super-class for Commands that are created with a single block.
This class ensures that the block is called with the correct number of arguments and the right context.
Create subclasses using {Pry::CommandSet#command}.
| context | -> | opts |
| backwards compatibility | ||
Call the block that was registered with this command. @param [Array<String>] args The arguments passed @return [Object] The return value of the block