Sha256: a60d8aeeb856efe0c739c2144a39f6612cb25de3ed69d4ff4c9fab6fbadf8858
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true module RubyJard module Commands # Command used to explore stacktrace. class OutputCommand < Pry::ClassCommand group 'RubyJard' description 'Show all current program output' match 'output' banner <<-BANNER Usage: output BANNER def self.output_storage RubyJard::ScreenManager.instance.output_storage end def process pry_instance.pager.open(force_open: true, pager_start_at_the_end: true) do |pager| self.class.output_storage.rewind pager.write self.class.output_storage.read_nonblock(2048) until self.class.output_storage.eof? end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_jard-0.2.3 | lib/ruby_jard/commands/jard/output_command.rb |