class WWW_App

WWW_App ====================================================

Constants

ALWAYS_END_TAGS
BANG
BLANK
BODY
DOT
HASH
HTML_ID_Duplicate
IMAGE_AT_END
INVALID_ATTR_CHARS
Invalid_Type
MULTI_DEFINED_METHS
NEW_LINE
Not_Unique
SPACE
UNDERSCORE
Unescaped
Wrong_Parent

Attributes

blok[R]

Public Instance Methods

alter_css_property(name, *args) click to toggle source
# File lib/www_app/CSS.rb, line 295
def alter_css_property name, *args
  if !@tag
    self._
    @tag[:closed!] = true
  end

  if tag?(:style)
    create :group
    create :_
    go_up
    @tag[:closed!] = true
  end

  @tag[:css] ||= {}
  @tag[:css][name] = args.size == 1 ? args.first : args
  self
end
style() { || ... } click to toggle source
# File lib/www_app/CSS.rb, line 313
def style
  create :style, :type=>'text/css', :groups=>true
  close { yield }
end