class Pry::CommandState

@api private
@since v0.13.0
command.
subsequent command invocations. All state saved here is unique to the
Pry commands can store arbitrary state here. This state persists between
CommandState is a data structure to hold per-command state.

def self.default

def self.default
  @default ||= new
end

def initialize

def initialize
  @command_state = {}
end

def reset(command_name)

def reset(command_name)
  @command_state[command_name] = OpenStruct.new
end

def state_for(command_name)

def state_for(command_name)
  @command_state[command_name] ||= OpenStruct.new
end