class Compass::Frameworks::Framework
Attributes
name[RW]
path[RW]
stylesheets_directory[RW]
templates_directory[RW]
version[RW]
Public Class Methods
new(name, *arguments)
click to toggle source
# File lib/compass/frameworks.rb, line 12 def initialize(name, *arguments) options = arguments.last.is_a?(Hash) ? arguments.pop : {} self.path = path = options[:path] || arguments.shift @name = name @templates_directory = options[:templates_directory] @templates_directory ||= File.join(path, 'templates') if path @stylesheets_directory = options[:stylesheets_directory] @stylesheets_directory ||= File.join(path, 'stylesheets') if path @version = options[:version] end
Public Instance Methods
manifest(pattern, options = {})
click to toggle source
# File lib/compass/frameworks.rb, line 35 def manifest(pattern, options = {}) options[:pattern_name] ||= pattern Compass::Installers::Manifest.new(manifest_file(pattern), options) end
manifest_file(pattern)
click to toggle source
# File lib/compass/frameworks.rb, line 31 def manifest_file(pattern) File.join(templates_directory, pattern.to_s, "manifest.rb") end
template_directories()
click to toggle source
# File lib/compass/frameworks.rb, line 23 def template_directories if templates_directory Dir.glob(File.join(templates_directory, "*")).map{|f| File.basename(f)} else [] end end