Method: WWW_App::CSS#__

Defined in:
lib/www_app/CSS.rb

#__Object

Ex:

style {
  div.^(:bad).__.div {
  }


100
101
102
103
104
105
106
107
108
109
110
# File 'lib/www_app/CSS.rb', line 100

def __
  fail "Can only be used inside :style tag" unless ancestor?(:style)

  if !@tag || (@tag[:tag_name] == :group || @tag[:tag_name] == :groups)
    fail "Can only be used after an HTML element is created: #{@tag[:tag_name].inspect}"
  end

  @tag[:__] = true
  go_up
  self
end