Module: Tomo::Colors

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.enabled=(value) ⇒ Object (writeonly)

Sets the attribute enabled

Parameters:

  • value

    the value to set the attribute enabled to.



15
16
17
# File 'lib/tomo/colors.rb', line 15

def enabled=(value)
  @enabled = value
end

Class Method Details

.enabled?Boolean

Returns:

  • (Boolean)


17
18
19
20
21
# File 'lib/tomo/colors.rb', line 17

def enabled?
  return @enabled if defined?(@enabled)

  @enabled = determine_color_support
end