module Main::Logger::OnOff
Public Instance Methods
turn(which)
click to toggle source
# File lib/main/logger.rb, line 41 def turn which @turned = which.to_s =~ /on/i ? :on : :off end
write(message)
click to toggle source
Calls superclass method
# File lib/main/logger.rb, line 45 def write message return message.to_s.size if @turned == :off super end