Class: Narou::LoggerError

Inherits:
StringIO
  • Object
show all
Includes:
LoggerModule
Defined in:
lib/narou_logger.rb

Instance Attribute Summary

Attributes included from LoggerModule

#capturing

Instance Method Summary collapse

Methods included from LoggerModule

#capture, #copy_instance, #error, #initialize, #save, #silence, #silent, #silent=, #strip_color, #warn, #write_base, #write_console

Instance Method Details

#tty?Boolean

Returns:

  • (Boolean)


154
155
156
# File 'lib/narou_logger.rb', line 154

def tty?
  STDERR.tty?
end

#write(str) ⇒ Object



149
150
151
152
# File 'lib/narou_logger.rb', line 149

def write(str)
  write_base(str, STDERR)
  super(str)
end