Method: Pry::Method#super
- Defined in:
- lib/pry/method.rb
#super(times = 1) ⇒ Pry::Method?
417 418 419 420 421 422 423 424 425 |
# File 'lib/pry/method.rb', line 417 def super(times = 1) if @method.is_a?(UnboundMethod) sup = super_using_ancestors(Pry::Method.instance_resolution_order(owner), times) else sup = super_using_ancestors(Pry::Method.resolution_order(receiver), times) sup &&= sup.bind(receiver) end Pry::Method.new(sup) if sup end |