Method: Builder::CSS#method_missing

Defined in:
lib/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/css.rb

#method_missing(sym, *args, &block) ⇒ Object



171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/activesupport-2.2.2/lib/active_support/vendor/builder-2.1.2/builder/css.rb', line 171

def method_missing(sym, *args, &block)
  sym = "#{sym}:#{args.shift}" if args.first.kind_of?(Symbol)
  if block
    _start_container(sym, args.first)
    _css_block(block)
    _unify_block
  elsif @in_block
    _indent
    _css_line(sym, *args)
    _newline
    return self
  else
    _start_container(sym, args.first, false)
    _unify_block
  end
  self
end