class Pry::CodeObject
def lookup_super(obj, super_level)
-
super_level
(Fixnum
) -- How far up the super chain to ascend. -
obj
(Object
) --
def lookup_super(obj, super_level) return unless obj sup = obj.super(super_level) raise Pry::CommandError, "No superclass found for #{obj.wrapped}" unless sup sup end