Class: Pry::Pager

Inherits:
Object
  • Object
show all
Defined in:
lib/mind_control/pry_monkey_patches.rb

Defined Under Namespace

Classes: MindControlPager

Instance Method Summary collapse

Instance Method Details

#best_availableObject



7
8
9
10
11
12
13
14
15
# File 'lib/mind_control/pry_monkey_patches.rb', line 7

def best_available
  # If we inside mind-control session
  if _pry_ == Pry.current[ :mind_control_pry_instance ]
    # Use our custom pager
    MindControlPager.new( _pry_.input, _pry_.output )
  else
    vanilla_best_available
  end
end

#vanilla_best_availableObject



5
# File 'lib/mind_control/pry_monkey_patches.rb', line 5

alias :vanilla_best_available :best_available