Class: Compass::Frameworks::Framework

Inherits:
Object
  • Object
show all
Defined in:
lib/compass/frameworks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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)
  options = arguments.last.is_a?(Hash) ? arguments.pop : {}
  path = options[:path] || arguments.shift
  @name = name
  @templates_directory = options[:templates_directory] || File.join(path, 'templates')
  @stylesheets_directory = options[:stylesheets_directory] || File.join(path, 'stylesheets')
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/compass/frameworks.rb', line 5

def name
  @name
end

#stylesheets_directoryObject

Returns the value of attribute stylesheets_directory.



6
7
8
# File 'lib/compass/frameworks.rb', line 6

def stylesheets_directory
  @stylesheets_directory
end

#templates_directoryObject

Returns the value of attribute templates_directory.



6
7
8
# File 'lib/compass/frameworks.rb', line 6

def templates_directory
  @templates_directory
end