Class: Compass::Commands::ProjectBase
- Defined in:
- lib/compass/commands/project_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#project_directory ⇒ Object
writeonly
Sets the attribute project_directory.
-
#project_name ⇒ Object
Returns the value of attribute project_name.
Attributes inherited from Base
Attributes included from Actions
Instance Method Summary collapse
-
#initialize(working_path, options = {}) ⇒ ProjectBase
constructor
A new instance of ProjectBase.
Methods inherited from Base
Methods included from Actions
#basename, #compile, #copy, #directory, #relativize, #separate, #strip_trailing_separator, #write_file
Constructor Details
#initialize(working_path, options = {}) ⇒ ProjectBase
Returns a new instance of ProjectBase.
12 13 14 15 16 |
# File 'lib/compass/commands/project_base.rb', line 12 def initialize(working_path, = {}) super(working_path, ) self.project_name = determine_project_name(working_path, ) Compass.configuration.project_path = determine_project_directory(working_path, ) end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/compass/commands/project_base.rb', line 10 def @options end |
#project_directory=(value) ⇒ Object
Sets the attribute project_directory
10 11 12 |
# File 'lib/compass/commands/project_base.rb', line 10 def project_directory=(value) @project_directory = value end |
#project_name ⇒ Object
Returns the value of attribute project_name.
10 11 12 |
# File 'lib/compass/commands/project_base.rb', line 10 def project_name @project_name end |