Method: CssBuilder#method_missing

Defined in:
lib/css_builder.rb

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



26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/css_builder.rb', line 26

def method_missing(m, *args, &block)

  if block
    _start_tag(m, *args, &block)
  else
    _indent
    css! _dasherize m
    css! " : #{args.first};"
    _newline
  end
 
  @css
end