Method: Pry::Slop#command

Defined in:
lib/pry/slop.rb

#command(command, options = {}, &block) ⇒ Object

Add a new command.

command - The Symbol or String used to identify this command. options - A Hash of configuration options (see Slop::new)

Returns a new instance of Slop mapped to this command.



196
197
198
# File 'lib/pry/slop.rb', line 196

def command(command, options = {}, &block)
  @commands[command.to_s] = Pry::Slop.new(options, &block)
end