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}.
Call the block that was registered with this command. @param [Array<String>] args The arguments passed @return [Object] The return value of the block
# File lib/pry/command.rb, line 431 def call(*args) instance_exec(*correct_arg_arity(block.arity, args), &block) end
Generated with the Darkfish Rdoc Generator 2.