Sha256: a5fd52aacc4870de55f8ad190c3759ae4091252f207abed54a9c218bb105b55f
Contents?: true
Size: 559 Bytes
Versions: 23
Compression:
Stored size: 559 Bytes
Contents
# IRB verbosity: http://groups.google.com/group/ruby-talk-google/browse_thread/thread/9c1febbe05513dc0 module IRB def self.result_format conf[:PROMPT][conf[:PROMPT_MODE]][:RETURN] end def self.result_format=(str) result_format.replace(str) end def self.show_results self.result_format = "=> %s\n" end def self.hide_results self.result_format = '' end end class Object def verbose IRB.show_results end alias :v :verbose def quiet IRB.hide_results end alias :q :quiet alias :x :exit end
Version data entries
23 entries across 23 versions & 7 rubygems
Version | Path |
---|---|
utility_belt-1.0.4 | lib/irb_verbosity_control.rb |
utility_belt-1.0.6 | lib/irb_verbosity_control.rb |
utility_belt-1.0.1 | lib/irb_verbosity_control.rb |