lib/rubigen/helpers/generator_test_helper.rb
# Silences the logger temporarily and returns the output as a String
Silences the logger temporarily and returns the output as a String
Silences the logger temporarily and returns the output as a String
def silence_generator
      logger_original      = RubiGen::Base.logger
      myout                = StringIO.new
      RubiGen::Base.logger = RubiGen::SimpleLogger.new(myout)
      yield if block_given?
      RubiGen::Base.logger = logger_original
      myout.string
    end
def silence_generator logger_original = RubiGen :: Base . logger myout = StringIO . new RubiGen :: Base . logger = RubiGen :: SimpleLogger . new ( myout ) yield if block_given? RubiGen :: Base . logger = logger_original myout . string end
Silences the logger temporarily and returns the output as a String
Silences the logger temporarily and returns the output as a String