class Pry::BlockCommand

Create subclasses using {Pry::CommandSet#command}.
arguments and the right context.
This class ensures that the block is called with the correct number of
A super-class for Commands that are created with a single block.

def call(*args)

Returns:
  • (Object) - The return value of the block

Parameters:
  • args (Array) -- The arguments passed
def call(*args)
  instance_exec(*normalize_method_args(block, args), &block)
end

def help

def help
  "#{command_options[:listing].to_s.ljust(18)} #{description}"
end