Module: Cyberweb::CssStyle

Defined in:
lib/cyberweb/modules/css_style.rb

Overview

Cyberweb::CssStyle

Class Method Summary collapse

Class Method Details

.style(i = '') ⇒ Object

#

Cyberweb::CssStyle.style

This method will return the <style> tag. It is no longer that relevant since as of May 2023, as we will instead use the HtmlTags gem.

#


22
23
24
25
26
27
# File 'lib/cyberweb/modules/css_style.rb', line 22

def self.style(i = '')
  if i.is_a? Array
    i = i.first
  end
  return "<style>\n#{i}\n</style>\n" # Trailing newline is mandatory.
end