Method: Unify::CSS#_
- Defined in:
- lib/unify/css.rb
#_(name, properties = {}, &block) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/unify/css.rb', line 18 def _(name, properties = {}, &block) @selector_stack.push(name.to_s) (@styles[@selector_stack.join(' ')] ||= {}).merge!(properties) if block_given? instance_eval(&block) end @selector_stack.pop end |