Class: Compass::Frameworks::Framework
- Inherits:
-
Object
- Object
- Compass::Frameworks::Framework
- Defined in:
- lib/compass/frameworks.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Framework
constructor
A new instance of Framework.
- #stylesheets_directory ⇒ Object
- #template_directory ⇒ Object
Constructor Details
#initialize(name, path) ⇒ Framework
Returns a new instance of Framework.
7 8 9 10 |
# File 'lib/compass/frameworks.rb', line 7 def initialize(name, path) self.name = name self.path = path end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/compass/frameworks.rb', line 5 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/compass/frameworks.rb', line 6 def path @path end |
Instance Method Details
#stylesheets_directory ⇒ Object
14 15 16 |
# File 'lib/compass/frameworks.rb', line 14 def stylesheets_directory File.join(self.path, 'stylesheets') end |
#template_directory ⇒ Object
11 12 13 |
# File 'lib/compass/frameworks.rb', line 11 def template_directory File.join(self.path, 'templates') end |