Permalink
Browse files

Dont spam large methods to the console

  • Loading branch information...
ConradIrwin committed Apr 14, 2012
1 parent 71a3021 commit 511eba56dd042dcc7c12fb4a84aa17498b2c46c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/default_commands/context.rb
@@ -57,7 +57,7 @@ def process
private
def show_method?
- @method && !@method.instance_of?(Pry::Method::Disowned)
+ @method && !@method.instance_of?(Pry::Method::Disowned) && @method.source_range.count < 20
end
def invalid_file?(file)

0 comments on commit 511eba5

Please sign in to comment.