Class: Logger::LogDevice

Inherits:
Object
  • Object
show all
Defined in:
lib/ansi/logger.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ansicolor=(value) ⇒ Object (writeonly)

:nodoc:


36
37
38
# File 'lib/ansi/logger.rb', line 36

def ansicolor=(value)
  @ansicolor = value
end

Instance Method Details

#ansicolor?Boolean

Returns:

  • (Boolean)

38
39
40
# File 'lib/ansi/logger.rb', line 38

def ansicolor?
  @ansicolor.nil? ? true : @ansicolor
end