Class: Logger::LogDevice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ansicolor=(value) ⇒ Object (writeonly)

Sets the attribute ansicolor

Parameters:

  • value

    the value to set the attribute ansicolor to.



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

def ansicolor=(value)
  @ansicolor = value
end

Instance Method Details

#ansicolor?Boolean

Returns:

  • (Boolean)


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

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