Sha256: 6c57537fa61096bfea91866e6a7b535699a3926c9950fbfb2db98ba9cd0c2d49
Contents?: true
Size: 295 Bytes
Versions: 1
Compression:
Stored size: 295 Bytes
Contents
require 'stringio' module Kernel def command_result(command) output = StringIO.new pager = Pry.config.pager Pry.config.pager = false Pry.run_command(command, output: output, show_output: true) output.string ensure Pry.config.pager = pager output.close end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pry-command_result-0.0.1 | lib/pry-command_result/kernel_ext.rb |