Method: CssBuilder#method_missing

Defined in:
lib/css_builder.rb

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

the magic



60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/css_builder.rb', line 60

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