Class: Stencil::BackgroundColor

Inherits:
ForegroundColor show all
Defined in:
lib/stencil/directives/term-style.rb

Instance Method Summary collapse

Methods inherited from ForegroundColor

#setup_parameters

Methods inherited from TermStyleDirective

#code_for, #escape_codes, #initialize, #old_style, #render, #style

Methods inherited from Block

#add, #ended, #initialize, #inspect, #parsed, #render

Methods inherited from Directive

#checked_render, create, #initialize, #inspect, #inspect_args, #interpret, #parsed, #postrender, #pre_end, #prerender, register, #render, #render_end, #setup_parameters

Constructor Details

This class inherits a constructor from Stencil::TermStyleDirective

Instance Method Details

#update_style(style, state) ⇒ Object



121
122
123
# File 'lib/stencil/directives/term-style.rb', line 121

def update_style(style, state)
  return style.merge(:background => interpret(@color_text, state))
end