Module: Fuby::MergeCSS
- Defined in:
- lib/fuby/merge_css.rb
Instance Method Summary collapse
Instance Method Details
#merge_css(*hashes) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/fuby/merge_css.rb', line 22 def merge_css *hashes hashes.inject ({}) do |memo, hash| memo.merge_css! hash end.tap do |hash| hash.each { |key, val| hash.merge_css! val if send k if respond_to? k if /\?$/ === key } hash.each { |key, val| hash.merge! val if send k.to_? if respond_to? k.to_? if /\!$/ === key } end end |