Class: Styles::Properties::TextDecoration

Inherits:
Base
  • Object
show all
Defined in:
lib/styles/properties/text_decoration.rb

Constant Summary collapse

VALUES =

CSS value is line-through and not strikethrough, but include strikethrough as well

[:none, :underline, :line_through, :strikethrough, :blink].freeze

Instance Attribute Summary

Attributes inherited from Base

#name, #selector, #value

Instance Method Summary collapse

Methods inherited from Base

#colors, #initialize, multiple_names?, names, other_names, sub_engine, sub_engines, to_sym

Constructor Details

This class inherits a constructor from Styles::Properties::Base

Instance Method Details

#color_to_useObject



9
10
11
12
13
14
15
16
17
# File 'lib/styles/properties/text_decoration.rb', line 9

def color_to_use
  if value == :line_through
    :strikethrough
  elsif value == :none
    :no_text_decoration
  else
    value
  end
end