Class: Preseason::Recipe::Bourbon
- Inherits:
-
Preseason::Recipe
- Object
- Preseason::Recipe
- Preseason::Recipe::Bourbon
- Defined in:
- lib/preseason/recipe/bourbon.rb
Instance Attribute Summary
Attributes inherited from Preseason::Recipe
Instance Method Summary collapse
Methods inherited from Preseason::Recipe
#initialize, #post_install_hook, #recipe_root
Methods included from Colorize
Methods included from GeneratorContext
Constructor Details
This class inherits a constructor from Preseason::Recipe
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Preseason::GeneratorContext
Instance Method Details
#add_neat ⇒ Object
13 14 15 16 17 |
# File 'lib/preseason/recipe/bourbon.rb', line 13 def add_neat insert_into_file 'app/assets/stylesheets/application.scss', after: "@import 'bourbon';\n" do "@import 'neat';\n" end end |
#configure_bourbon ⇒ Object
7 8 9 10 11 |
# File 'lib/preseason/recipe/bourbon.rb', line 7 def configure_bourbon remove_file 'app/assets/stylesheets/application.css' create_file 'app/assets/stylesheets/application.scss' append_to_file 'app/assets/stylesheets/application.scss', "@import 'bourbon';\n" end |
#prepare ⇒ Object
2 3 4 5 |
# File 'lib/preseason/recipe/bourbon.rb', line 2 def prepare configure_bourbon add_neat end |