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.
-
#stylesheets_directory ⇒ Object
Returns the value of attribute stylesheets_directory.
-
#templates_directory ⇒ Object
Returns the value of attribute templates_directory.
Instance Method Summary collapse
-
#initialize(name, *arguments) ⇒ Framework
constructor
A new instance of Framework.
Constructor Details
#initialize(name, *arguments) ⇒ Framework
Returns a new instance of Framework.
7 8 9 10 11 12 13 |
# File 'lib/compass/frameworks.rb', line 7 def initialize(name, *arguments) = arguments.last.is_a?(Hash) ? arguments.pop : {} path = [:path] || arguments.shift @name = name @templates_directory = [:templates_directory] || File.join(path, 'templates') @stylesheets_directory = [:stylesheets_directory] || File.join(path, 'stylesheets') 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 |
#stylesheets_directory ⇒ Object
Returns the value of attribute stylesheets_directory.
6 7 8 |
# File 'lib/compass/frameworks.rb', line 6 def stylesheets_directory @stylesheets_directory end |
#templates_directory ⇒ Object
Returns the value of attribute templates_directory.
6 7 8 |
# File 'lib/compass/frameworks.rb', line 6 def templates_directory @templates_directory end |