Skip to content
Browse files

Be less codey...

  • Loading branch information...
1 parent 5e32fd3 commit 9c1ec5386174bdac53a2c7fe581632661901065f @ConradIrwin ConradIrwin committed Apr 16, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 lib/pry/default_commands/ls.rb
View
5 lib/pry/default_commands/ls.rb
@@ -88,10 +88,7 @@ def process
if show_self_methods
methods = all_methods(obj, true).select{ |m| m.owner == obj && m.name =~ grep_regex }
- if methods.first
- methods_here = format_methods(methods.select{ |m| m.name =~ grep_regex })
- output_section "#{Pry::WrappedModule.new(methods.first.owner).method_prefix}methods", methods_here
- end
+ output_section "#{Pry::WrappedModule.new(obj).method_prefix}methods", format_methods(methods)
end
if show_ivars

0 comments on commit 9c1ec53

Please sign in to comment.
Something went wrong with that request. Please try again.