diff options
Diffstat (limited to 'lib/pry/helpers/module_introspection_helpers.rb')
| -rw-r--r-- | lib/pry/helpers/module_introspection_helpers.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pry/helpers/module_introspection_helpers.rb b/lib/pry/helpers/module_introspection_helpers.rb index 77e31df9..e44d2369 100644 --- a/lib/pry/helpers/module_introspection_helpers.rb +++ b/lib/pry/helpers/module_introspection_helpers.rb @@ -69,7 +69,11 @@ class Pry command_error("#{saught_in_vain} `#{input}'", true) end - render_output(code_or_doc, opts) + if !out_pipe? + render_output(code_or_doc, opts) + else + pipe.write(code_or_doc) + end end def process_blank |
