summaryrefslogtreecommitdiff
path: root/lib/pry/commands/play.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pry/commands/play.rb')
-rw-r--r--lib/pry/commands/play.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pry/commands/play.rb b/lib/pry/commands/play.rb
index 9dc18731..abaac722 100644
--- a/lib/pry/commands/play.rb
+++ b/lib/pry/commands/play.rb
@@ -71,6 +71,10 @@ class Pry
def perform_play
process_non_opt
+ if in_pipe?
+ self.content = pipe.read
+ end
+
if opts.present?(:lines)
self.content = restrict_to_lines(self.content, opts[:l])
end