class Cssbt::TwbsGenerator

Public Instance Methods

copy() click to toggle source
# File lib/generators/cssbt/twbs/twbs_generator.rb, line 13
def copy
      copy_file "bootstrap.css", "app/assets/stylesheets/bootstrap.css"
      copy_file "bootstrap.js", "app/assets/javascripts/bootstrap.js"
end
insert() click to toggle source
# File lib/generators/cssbt/twbs/twbs_generator.rb, line 8
def insert
      insert_into_file "app/assets/stylesheets/application.css", "*= require bootstrap\n", :after => "*= require_self\n"
  insert_into_file "app/assets/javascripts/application.js", "//= require bootstrap\n", :after => "//= require jquery\n"
end