Class: Styles::SubEngines::Layout

Inherits:
Base
  • Object
show all
Defined in:
lib/styles/sub_engines/layout.rb

Instance Method Summary collapse

Instance Method Details

#process(line) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/styles/sub_engines/layout.rb', line 7

def process(line)
  layout_sub_engine_properties = extract_sub_engine_properties line.applicable_properties

  if should_hide?(line)
    line.text = nil
    return line
  end

  apply_width_and_text_align(line)
  apply_padding_border_margin(line)

  line
end