# File lib/blueprint/namespace.rb, line 14 def add_namespace(html, namespace) html.gsub!(/(class=")([a-zA-Z0-9\-_ ]*)(")/) do |m| classes = m.to_s.split('"')[1].split(' ') classes.map! { |c| c = namespace + c } 'class="' + classes.join(' ') + '"' end html end