Class: Sassic::Generator
- Inherits:
-
Object
- Object
- Sassic::Generator
- Defined in:
- lib/sassic/generator.rb
Constant Summary collapse
- DIRECTORIES =
['images', 'sass', 'javascripts', 'templates']
- FILES =
{ 'layout.html.erb' => 'templates/layout.html.erb', 'index.html.erb' => 'templates/index.html.erb', 'screen.sass' => 'sass/screen.sass' }
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target) ⇒ Generator
constructor
A new instance of Generator.
- #run! ⇒ Object
Constructor Details
#initialize(target) ⇒ Generator
Returns a new instance of Generator.
12 13 14 |
# File 'lib/sassic/generator.rb', line 12 def initialize(target) @target = target end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
10 11 12 |
# File 'lib/sassic/generator.rb', line 10 def target @target end |
Instance Method Details
#run! ⇒ Object
16 17 18 19 |
# File 'lib/sassic/generator.rb', line 16 def run! create_directories! create_files! end |