Method: Blueprint::Namespace#initialize

Defined in:
lib/blueprint-css/lib/blueprint/namespace.rb

#initialize(path, namespace) ⇒ Namespace

Read html to string, remove namespace if any, set the new namespace, and update the test file.



6
7
8
9
10
11
# File 'lib/blueprint-css/lib/blueprint/namespace.rb', line 6

def initialize(path, namespace)
  html = File.path_to_string(path)
  remove_current_namespace(html)
  add_namespace(html, namespace)
  File.string_to_file(html, path)
end