class Pry::Command::Whereami

def class_code

def class_code
  @class_code ||=
    begin
      mod = @method ? Pry::WrappedModule(@method.owner) : target_class
      idx = mod.candidates.find_index { |v| expand_path(v.source_file) == @file }
      idx && Pry::Code.from_module(mod, idx)
    end
end