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
FreedomCoder-utility_belt-1.1.1.2 lib/utility_belt/irb_verbosity_control.rb
FreedomCoder-utility_belt-1.1.1 lib/utility_belt/irb_verbosity_control.rb
akitaonrails-utility_belt-1.0.10 lib/utility_belt/irb_verbosity_control.rb
akitaonrails-utility_belt-1.0.11 lib/utility_belt/irb_verbosity_control.rb
akitaonrails-utility_belt-1.0.12 lib/utility_belt/irb_verbosity_control.rb
mguterl-utility_belt-1.0.7 lib/utility_belt/irb_verbosity_control.rb
rwilcox-utility_belt-1.0.7 lib/utility_belt/irb_verbosity_control.rb
rwilcox-utility_belt-1.0.9 lib/utility_belt/irb_verbosity_control.rb
timocratic-utility_belt-1.0.7.1 lib/utility_belt/irb_verbosity_control.rb
timocratic-utility_belt-1.0.7.2 lib/utility_belt/irb_verbosity_control.rb
timocratic-utility_belt-1.0.7.3 lib/utility_belt/irb_verbosity_control.rb
flyrb-1.0.0.c lib/flyrb/irb_verbosity_control.rb
flyrb-1.0.0.b lib/flyrb/irb_verbosity_control.rb
flyrb-1.0.0.a lib/flyrb/irb_verbosity_control.rb
akitaonrails-utility_belt-1.0.13 lib/utility_belt/irb_verbosity_control.rb
utility_belt-1.1.0 lib/utility_belt/irb_verbosity_control.rb
utility_belt-1.0.3 lib/irb_verbosity_control.rb
utility_belt-1.0.0 lib/irb_verbosity_control.rb
utility_belt-1.0.5 lib/irb_verbosity_control.rb
utility_belt-1.0.2 lib/irb_verbosity_control.rb